Changeset 53

Show
Ignore:
Timestamp:
03/24/10 04:20:45 (2 years ago)
Author:
andy
Message:
 
Location:
BuisnessLogic/FitStylr/FitStylr
Files:
7 modified

Legend:

Unmodified
Added
Removed
  • BuisnessLogic/FitStylr/FitStylr/FitStylr/FitStylr.csproj

    r52 r53  
    1111    <RootNamespace>FitStylr</RootNamespace> 
    1212    <AssemblyName>FitStylr</AssemblyName> 
    13     <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> 
     13    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion> 
    1414    <FileAlignment>512</FileAlignment> 
    1515    <IsWebBootstrapper>false</IsWebBootstrapper> 
     
    3232    <UseApplicationTrust>false</UseApplicationTrust> 
    3333    <BootstrapperEnabled>true</BootstrapperEnabled> 
     34    <TargetFrameworkProfile /> 
    3435  </PropertyGroup> 
    3536  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> 
  • BuisnessLogic/FitStylr/FitStylr/FitStylr/Properties/Settings.Designer.cs

    r23 r53  
    22// <auto-generated> 
    33//     This code was generated by a tool. 
    4 //     Runtime Version:4.0.21006.1 
     4//     Runtime Version:4.0.30128.1 
    55// 
    66//     Changes to this file may cause incorrect behavior and will be lost if 
  • BuisnessLogic/FitStylr/FitStylr/FitStylr/app.config

    r52 r53  
    1 <?xml version="1.0" encoding="utf-8"?> 
     1<?xml version="1.0"?> 
    22<configuration> 
    33  <configSections> 
     
    55  <connectionStrings> 
    66 
    7 <add name="FitStylrEntities" connectionString="metadata=res://*/FitStylrModel.csdl|res://*/FitStylrModel.ssdl|res://*/FitStylrModel.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=DEV\SQLEXPRESS;Initial Catalog=FitStylr;Integrated Security=True;MultipleActiveResultSets=True&quot;" providerName="System.Data.EntityClient" /></connectionStrings> 
    8 </configuration> 
     7<add name="FitStylrEntities" connectionString="metadata=res://*/FitStylrModel.csdl|res://*/FitStylrModel.ssdl|res://*/FitStylrModel.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=DEV\SQLEXPRESS;Initial Catalog=FitStylr;Integrated Security=True;MultipleActiveResultSets=True&quot;" providerName="System.Data.EntityClient"/></connectionStrings> 
     8<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration> 
  • BuisnessLogic/FitStylr/FitStylr/FitStylr/fitStylrModel.Designer.cs

    r51 r53  
    11//------------------------------------------------------------------------------ 
    22// <auto-generated> 
    3 //     This code was generated by a tool. 
    4 //     Runtime Version:4.0.21006.1 
     3//    This code was generated from a template. 
    54// 
    6 //     Changes to this file may cause incorrect behavior and will be lost if 
    7 //    the code is regenerated. 
     5//    Manual changes to this file may cause unexpected behavior in your application. 
     6//    Manual changes to this file will be overwritten if the code is regenerated. 
    87// </auto-generated> 
    98//------------------------------------------------------------------------------ 
    109 
    11 [assembly: global::System.Data.Objects.DataClasses.EdmSchemaAttribute()] 
    12  
    13 // Original file name: 
    14 // Generation date: 2/02/2010 4:28:20 PM 
     10using System; 
     11using System.Data.Objects; 
     12using System.Data.Objects.DataClasses; 
     13using System.Data.EntityClient; 
     14using System.ComponentModel; 
     15using System.Xml.Serialization; 
     16using System.Runtime.Serialization; 
     17 
     18[assembly: EdmSchemaAttribute()] 
     19 
    1520namespace FitStylr 
    1621{ 
     22    #region Contexts 
    1723     
    1824    /// <summary> 
    19     /// There are no comments for FitStylrEntities in the schema. 
     25    /// No Metadata Documentation available. 
    2026    /// </summary> 
    21     public partial class FitStylrEntities : global::System.Data.Objects.ObjectContext 
     27    public partial class FitStylrEntities : ObjectContext 
    2228    { 
     29        #region Constructors 
     30     
    2331        /// <summary> 
    2432        /// Initializes a new FitStylrEntities object using the connection string found in the 'FitStylrEntities' section of the application configuration file. 
    2533        /// </summary> 
    26         public FitStylrEntities() :  
    27                 base("name=FitStylrEntities", "FitStylrEntities") 
    28         { 
    29             this.OnContextCreated(); 
    30         } 
     34        public FitStylrEntities() : base("name=FitStylrEntities", "FitStylrEntities") 
     35        { 
     36            OnContextCreated(); 
     37        } 
     38     
    3139        /// <summary> 
    3240        /// Initialize a new FitStylrEntities object. 
    3341        /// </summary> 
    34         public FitStylrEntities(string connectionString) :  
    35                 base(connectionString, "FitStylrEntities") 
    36         { 
    37             this.OnContextCreated(); 
    38         } 
     42        public FitStylrEntities(string connectionString) : base(connectionString, "FitStylrEntities") 
     43        { 
     44            OnContextCreated(); 
     45        } 
     46     
    3947        /// <summary> 
    4048        /// Initialize a new FitStylrEntities object. 
    4149        /// </summary> 
    42         public FitStylrEntities(global::System.Data.EntityClient.EntityConnection connection) :  
    43                 base(connection, "FitStylrEntities") 
    44         { 
    45             this.OnContextCreated(); 
    46         } 
     50        public FitStylrEntities(EntityConnection connection) : base(connection, "FitStylrEntities") 
     51        { 
     52            OnContextCreated(); 
     53        } 
     54     
     55        #endregion 
     56     
     57        #region Partial Methods 
     58     
    4759        partial void OnContextCreated(); 
    48         /// <summary> 
    49         /// There are no comments for Attributes in the schema. 
    50         /// </summary> 
    51         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    52         public global::System.Data.Objects.ObjectQuery<Attribute> Attributes 
    53         { 
    54             get 
    55             { 
    56                 if ((this._Attributes == null)) 
     60     
     61        #endregion 
     62     
     63        #region ObjectSet Properties 
     64     
     65        /// <summary> 
     66        /// No Metadata Documentation available. 
     67        /// </summary> 
     68        public ObjectSet<Attribute> Attributes 
     69        { 
     70            get 
     71            { 
     72                if ((_Attributes == null)) 
    5773                { 
    58                     this._Attributes = base.CreateQuery<Attribute>("[Attributes]"); 
     74                    _Attributes = base.CreateObjectSet<Attribute>("Attributes"); 
    5975                } 
    60                 return this._Attributes; 
    61             } 
    62         } 
    63         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    64         private global::System.Data.Objects.ObjectQuery<Attribute> _Attributes; 
    65         /// <summary> 
    66         /// There are no comments for Measurements in the schema. 
    67         /// </summary> 
    68         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    69         public global::System.Data.Objects.ObjectQuery<Measurement> Measurements 
    70         { 
    71             get 
    72             { 
    73                 if ((this._Measurements == null)) 
     76                return _Attributes; 
     77            } 
     78        } 
     79        private ObjectSet<Attribute> _Attributes; 
     80     
     81        /// <summary> 
     82        /// No Metadata Documentation available. 
     83        /// </summary> 
     84        public ObjectSet<Measurement> Measurements 
     85        { 
     86            get 
     87            { 
     88                if ((_Measurements == null)) 
    7489                { 
    75                     this._Measurements = base.CreateQuery<Measurement>("[Measurements]"); 
     90                    _Measurements = base.CreateObjectSet<Measurement>("Measurements"); 
    7691                } 
    77                 return this._Measurements; 
    78             } 
    79         } 
    80         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    81         private global::System.Data.Objects.ObjectQuery<Measurement> _Measurements; 
    82         /// <summary> 
    83         /// There are no comments for Profiles in the schema. 
    84         /// </summary> 
    85         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    86         public global::System.Data.Objects.ObjectQuery<Profile> Profiles 
    87         { 
    88             get 
    89             { 
    90                 if ((this._Profiles == null)) 
     92                return _Measurements; 
     93            } 
     94        } 
     95        private ObjectSet<Measurement> _Measurements; 
     96     
     97        /// <summary> 
     98        /// No Metadata Documentation available. 
     99        /// </summary> 
     100        public ObjectSet<Profile> Profiles 
     101        { 
     102            get 
     103            { 
     104                if ((_Profiles == null)) 
    91105                { 
    92                     this._Profiles = base.CreateQuery<Profile>("[Profiles]"); 
     106                    _Profiles = base.CreateObjectSet<Profile>("Profiles"); 
    93107                } 
    94                 return this._Profiles; 
    95             } 
    96         } 
    97         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    98         private global::System.Data.Objects.ObjectQuery<Profile> _Profiles; 
    99         /// <summary> 
    100         /// There are no comments for Users in the schema. 
    101         /// </summary> 
    102         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    103         public global::System.Data.Objects.ObjectQuery<User> Users 
    104         { 
    105             get 
    106             { 
    107                 if ((this._Users == null)) 
     108                return _Profiles; 
     109            } 
     110        } 
     111        private ObjectSet<Profile> _Profiles; 
     112     
     113        /// <summary> 
     114        /// No Metadata Documentation available. 
     115        /// </summary> 
     116        public ObjectSet<User> Users 
     117        { 
     118            get 
     119            { 
     120                if ((_Users == null)) 
    108121                { 
    109                     this._Users = base.CreateQuery<User>("[Users]"); 
     122                    _Users = base.CreateObjectSet<User>("Users"); 
    110123                } 
    111                 return this._Users; 
    112             } 
    113         } 
    114         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    115         private global::System.Data.Objects.ObjectQuery<User> _Users; 
    116         /// <summary> 
    117         /// There are no comments for Attributes in the schema. 
    118         /// </summary> 
    119         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
     124                return _Users; 
     125            } 
     126        } 
     127        private ObjectSet<User> _Users; 
     128 
     129        #endregion 
     130        #region AddTo Methods 
     131     
     132        /// <summary> 
     133        /// Deprecated Method for adding a new object to the Attributes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead. 
     134        /// </summary> 
    120135        public void AddToAttributes(Attribute attribute) 
    121136        { 
    122137            base.AddObject("Attributes", attribute); 
    123138        } 
    124         /// <summary> 
    125         /// There are no comments for Measurements in the schema. 
    126         /// </summary> 
    127         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
     139     
     140        /// <summary> 
     141        /// Deprecated Method for adding a new object to the Measurements EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead. 
     142        /// </summary> 
    128143        public void AddToMeasurements(Measurement measurement) 
    129144        { 
    130145            base.AddObject("Measurements", measurement); 
    131146        } 
    132         /// <summary> 
    133         /// There are no comments for Profiles in the schema. 
    134         /// </summary> 
    135         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
     147     
     148        /// <summary> 
     149        /// Deprecated Method for adding a new object to the Profiles EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead. 
     150        /// </summary> 
    136151        public void AddToProfiles(Profile profile) 
    137152        { 
    138153            base.AddObject("Profiles", profile); 
    139154        } 
    140         /// <summary> 
    141         /// There are no comments for Users in the schema. 
    142         /// </summary> 
    143         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
     155     
     156        /// <summary> 
     157        /// Deprecated Method for adding a new object to the Users EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead. 
     158        /// </summary> 
    144159        public void AddToUsers(User user) 
    145160        { 
    146161            base.AddObject("Users", user); 
    147162        } 
     163 
     164        #endregion 
    148165    } 
     166     
     167 
     168    #endregion 
     169     
     170    #region Entities 
     171     
    149172    /// <summary> 
    150     /// There are no comments for FitStylrModel.Attribute in the schema. 
     173    /// No Metadata Documentation available. 
    151174    /// </summary> 
    152     /// <KeyProperties> 
    153     /// id 
    154     /// </KeyProperties> 
    155     [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="FitStylrModel", Name="Attribute")] 
    156     [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)] 
    157     [global::System.Serializable()] 
    158     public partial class Attribute : global::System.Data.Objects.DataClasses.EntityObject 
     175    [EdmEntityTypeAttribute(NamespaceName="FitStylrModel", Name="Attribute")] 
     176    [Serializable()] 
     177    [DataContractAttribute(IsReference=true)] 
     178    public partial class Attribute : EntityObject 
    159179    { 
     180        #region Factory Method 
     181     
    160182        /// <summary> 
    161183        /// Create a new Attribute object. 
    162184        /// </summary> 
    163         /// <param name="id">Initial value of id.</param> 
    164         /// <param name="name">Initial value of name.</param> 
    165         /// <param name="description">Initial value of description.</param> 
    166         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    167         public static Attribute CreateAttribute(int id, string name, string description) 
     185        /// <param name="id">Initial value of the id property.</param> 
     186        /// <param name="name">Initial value of the name property.</param> 
     187        /// <param name="description">Initial value of the description property.</param> 
     188        public static Attribute CreateAttribute(global::System.Int32 id, global::System.String name, global::System.String description) 
    168189        { 
    169190            Attribute attribute = new Attribute(); 
     
    173194            return attribute; 
    174195        } 
    175         /// <summary> 
    176         /// There are no comments for property id in the schema. 
    177         /// </summary> 
    178         [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] 
    179         [global::System.Runtime.Serialization.DataMemberAttribute()] 
    180         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    181         public int id 
    182         { 
    183             get 
    184             { 
    185                 return this._id; 
    186             } 
    187             set 
    188             { 
    189                 this.OnidChanging(value); 
    190                 this.ReportPropertyChanging("id"); 
    191                 this._id = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); 
    192                 this.ReportPropertyChanged("id"); 
    193                 this.OnidChanged(); 
    194             } 
    195         } 
    196         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    197         private int _id; 
    198         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    199         partial void OnidChanging(int value); 
    200         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
     196 
     197        #endregion 
     198        #region Primitive Properties 
     199     
     200        /// <summary> 
     201        /// No Metadata Documentation available. 
     202        /// </summary> 
     203        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] 
     204        [DataMemberAttribute()] 
     205        public global::System.Int32 id 
     206        { 
     207            get 
     208            { 
     209                return _id; 
     210            } 
     211            set 
     212            { 
     213                if (_id != value) 
     214                { 
     215                    OnidChanging(value); 
     216                    ReportPropertyChanging("id"); 
     217                    _id = StructuralObject.SetValidValue(value); 
     218                    ReportPropertyChanged("id"); 
     219                    OnidChanged(); 
     220                } 
     221            } 
     222        } 
     223        private global::System.Int32 _id; 
     224        partial void OnidChanging(global::System.Int32 value); 
    201225        partial void OnidChanged(); 
    202         /// <summary> 
    203         /// There are no comments for property name in the schema. 
    204         /// </summary> 
    205         [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] 
    206         [global::System.Runtime.Serialization.DataMemberAttribute()] 
    207         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    208         public string name 
    209         { 
    210             get 
    211             { 
    212                 return this._name; 
    213             } 
    214             set 
    215             { 
    216                 this.OnnameChanging(value); 
    217                 this.ReportPropertyChanging("name"); 
    218                 this._name = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false); 
    219                 this.ReportPropertyChanged("name"); 
    220                 this.OnnameChanged(); 
    221             } 
    222         } 
    223         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    224         private string _name; 
    225         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    226         partial void OnnameChanging(string value); 
    227         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
     226     
     227        /// <summary> 
     228        /// No Metadata Documentation available. 
     229        /// </summary> 
     230        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] 
     231        [DataMemberAttribute()] 
     232        public global::System.String name 
     233        { 
     234            get 
     235            { 
     236                return _name; 
     237            } 
     238            set 
     239            { 
     240                OnnameChanging(value); 
     241                ReportPropertyChanging("name"); 
     242                _name = StructuralObject.SetValidValue(value, false); 
     243                ReportPropertyChanged("name"); 
     244                OnnameChanged(); 
     245            } 
     246        } 
     247        private global::System.String _name; 
     248        partial void OnnameChanging(global::System.String value); 
    228249        partial void OnnameChanged(); 
    229         /// <summary> 
    230         /// There are no comments for property description in the schema. 
    231         /// </summary> 
    232         [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] 
    233         [global::System.Runtime.Serialization.DataMemberAttribute()] 
    234         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    235         public string description 
    236         { 
    237             get 
    238             { 
    239                 return this._description; 
    240             } 
    241             set 
    242             { 
    243                 this.OndescriptionChanging(value); 
    244                 this.ReportPropertyChanging("description"); 
    245                 this._description = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false); 
    246                 this.ReportPropertyChanged("description"); 
    247                 this.OndescriptionChanged(); 
    248             } 
    249         } 
    250         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    251         private string _description; 
    252         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    253         partial void OndescriptionChanging(string value); 
    254         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
     250     
     251        /// <summary> 
     252        /// No Metadata Documentation available. 
     253        /// </summary> 
     254        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] 
     255        [DataMemberAttribute()] 
     256        public global::System.String description 
     257        { 
     258            get 
     259            { 
     260                return _description; 
     261            } 
     262            set 
     263            { 
     264                OndescriptionChanging(value); 
     265                ReportPropertyChanging("description"); 
     266                _description = StructuralObject.SetValidValue(value, false); 
     267                ReportPropertyChanged("description"); 
     268                OndescriptionChanged(); 
     269            } 
     270        } 
     271        private global::System.String _description; 
     272        partial void OndescriptionChanging(global::System.String value); 
    255273        partial void OndescriptionChanged(); 
     274 
     275        #endregion 
     276     
    256277    } 
     278     
    257279    /// <summary> 
    258     /// There are no comments for FitStylrModel.Measurement in the schema. 
     280    /// No Metadata Documentation available. 
    259281    /// </summary> 
    260     /// <KeyProperties> 
    261     /// id 
    262     /// </KeyProperties> 
    263     [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="FitStylrModel", Name="Measurement")] 
    264     [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)] 
    265     [global::System.Serializable()] 
    266     public partial class Measurement : global::System.Data.Objects.DataClasses.EntityObject 
     282    [EdmEntityTypeAttribute(NamespaceName="FitStylrModel", Name="Measurement")] 
     283    [Serializable()] 
     284    [DataContractAttribute(IsReference=true)] 
     285    public partial class Measurement : EntityObject 
    267286    { 
     287        #region Factory Method 
     288     
    268289        /// <summary> 
    269290        /// Create a new Measurement object. 
    270291        /// </summary> 
    271         /// <param name="id">Initial value of id.</param> 
    272         /// <param name="userId">Initial value of userId.</param> 
    273         /// <param name="attributeId">Initial value of attributeId.</param> 
    274         /// <param name="value">Initial value of value.</param> 
    275         /// <param name="date">Initial value of date.</param> 
    276         /// <param name="is_latest">Initial value of is_latest.</param> 
    277         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    278         public static Measurement CreateMeasurement(int id, int userId, int attributeId, decimal value, global::System.DateTime date, bool is_latest) 
     292        /// <param name="id">Initial value of the id property.</param> 
     293        /// <param name="userId">Initial value of the userId property.</param> 
     294        /// <param name="attributeId">Initial value of the attributeId property.</param> 
     295        /// <param name="value">Initial value of the value property.</param> 
     296        /// <param name="date">Initial value of the date property.</param> 
     297        /// <param name="is_latest">Initial value of the is_latest property.</param> 
     298        public static Measurement CreateMeasurement(global::System.Int32 id, global::System.Int32 userId, global::System.Int32 attributeId, global::System.Decimal value, global::System.DateTime date, global::System.Boolean is_latest) 
    279299        { 
    280300            Measurement measurement = new Measurement(); 
     
    287307            return measurement; 
    288308        } 
    289         /// <summary> 
    290         /// There are no comments for property id in the schema. 
    291         /// </summary> 
    292         [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] 
    293         [global::System.Runtime.Serialization.DataMemberAttribute()] 
    294         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    295         public int id 
    296         { 
    297             get 
    298             { 
    299                 return this._id; 
    300             } 
    301             set 
    302             { 
    303                 this.OnidChanging(value); 
    304                 this.ReportPropertyChanging("id"); 
    305                 this._id = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); 
    306                 this.ReportPropertyChanged("id"); 
    307                 this.OnidChanged(); 
    308             } 
    309         } 
    310         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    311         private int _id; 
    312         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    313         partial void OnidChanging(int value); 
    314         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
     309 
     310        #endregion 
     311        #region Primitive Properties 
     312     
     313        /// <summary> 
     314        /// No Metadata Documentation available. 
     315        /// </summary> 
     316        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] 
     317        [DataMemberAttribute()] 
     318        public global::System.Int32 id 
     319        { 
     320            get 
     321            { 
     322                return _id; 
     323            } 
     324            set 
     325            { 
     326                if (_id != value) 
     327                { 
     328                    OnidChanging(value); 
     329                    ReportPropertyChanging("id"); 
     330                    _id = StructuralObject.SetValidValue(value); 
     331                    ReportPropertyChanged("id"); 
     332                    OnidChanged(); 
     333                } 
     334            } 
     335        } 
     336        private global::System.Int32 _id; 
     337        partial void OnidChanging(global::System.Int32 value); 
    315338        partial void OnidChanged(); 
    316         /// <summary> 
    317         /// There are no comments for property userId in the schema. 
    318         /// </summary> 
    319         [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] 
    320         [global::System.Runtime.Serialization.DataMemberAttribute()] 
    321         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    322         public int userId 
    323         { 
    324             get 
    325             { 
    326                 return this._userId; 
    327             } 
    328             set 
    329             { 
    330                 this.OnuserIdChanging(value); 
    331                 this.ReportPropertyChanging("userId"); 
    332                 this._userId = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); 
    333                 this.ReportPropertyChanged("userId"); 
    334                 this.OnuserIdChanged(); 
    335             } 
    336         } 
    337         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    338         private int _userId; 
    339         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    340         partial void OnuserIdChanging(int value); 
    341         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
     339     
     340        /// <summary> 
     341        /// No Metadata Documentation available. 
     342        /// </summary> 
     343        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] 
     344        [DataMemberAttribute()] 
     345        public global::System.Int32 userId 
     346        { 
     347            get 
     348            { 
     349                return _userId; 
     350            } 
     351            set 
     352            { 
     353                OnuserIdChanging(value); 
     354                ReportPropertyChanging("userId"); 
     355                _userId = StructuralObject.SetValidValue(value); 
     356                ReportPropertyChanged("userId"); 
     357                OnuserIdChanged(); 
     358            } 
     359        } 
     360        private global::System.Int32 _userId; 
     361        partial void OnuserIdChanging(global::System.Int32 value); 
    342362        partial void OnuserIdChanged(); 
    343         /// <summary> 
    344         /// There are no comments for property attributeId in the schema. 
    345         /// </summary> 
    346         [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] 
    347         [global::System.Runtime.Serialization.DataMemberAttribute()] 
    348         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    349         public int attributeId 
    350         { 
    351             get 
    352             { 
    353                 return this._attributeId; 
    354             } 
    355             set 
    356             { 
    357                 this.OnattributeIdChanging(value); 
    358                 this.ReportPropertyChanging("attributeId"); 
    359                 this._attributeId = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); 
    360                 this.ReportPropertyChanged("attributeId"); 
    361                 this.OnattributeIdChanged(); 
    362             } 
    363         } 
    364         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    365         private int _attributeId; 
    366         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    367         partial void OnattributeIdChanging(int value); 
    368         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
     363     
     364        /// <summary> 
     365        /// No Metadata Documentation available. 
     366        /// </summary> 
     367        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] 
     368        [DataMemberAttribute()] 
     369        public global::System.Int32 attributeId 
     370        { 
     371            get 
     372            { 
     373                return _attributeId; 
     374            } 
     375            set 
     376            { 
     377                OnattributeIdChanging(value); 
     378                ReportPropertyChanging("attributeId"); 
     379                _attributeId = StructuralObject.SetValidValue(value); 
     380                ReportPropertyChanged("attributeId"); 
     381                OnattributeIdChanged(); 
     382            } 
     383        } 
     384        private global::System.Int32 _attributeId; 
     385        partial void OnattributeIdChanging(global::System.Int32 value); 
    369386        partial void OnattributeIdChanged(); 
    370         /// <summary> 
    371         /// There are no comments for property value in the schema. 
    372         /// </summary> 
    373         [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] 
    374         [global::System.Runtime.Serialization.DataMemberAttribute()] 
    375         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    376         public decimal value 
    377         { 
    378             get 
    379             { 
    380                 return this._value; 
    381             } 
    382             set 
    383             { 
    384                 this.OnvalueChanging(value); 
    385                 this.ReportPropertyChanging("value"); 
    386                 this._value = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); 
    387                 this.ReportPropertyChanged("value"); 
    388                 this.OnvalueChanged(); 
    389             } 
    390         } 
    391         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    392         private decimal _value; 
    393         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    394         partial void OnvalueChanging(decimal value); 
    395         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
     387     
     388        /// <summary> 
     389        /// No Metadata Documentation available. 
     390        /// </summary> 
     391        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] 
     392        [DataMemberAttribute()] 
     393        public global::System.Decimal value 
     394        { 
     395            get 
     396            { 
     397                return _value; 
     398            } 
     399            set 
     400            { 
     401                OnvalueChanging(value); 
     402                ReportPropertyChanging("value"); 
     403                _value = StructuralObject.SetValidValue(value); 
     404                ReportPropertyChanged("value"); 
     405                OnvalueChanged(); 
     406            } 
     407        } 
     408        private global::System.Decimal _value; 
     409        partial void OnvalueChanging(global::System.Decimal value); 
    396410        partial void OnvalueChanged(); 
    397         /// <summary> 
    398         /// There are no comments for property date in the schema. 
    399         /// </summary> 
    400         [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] 
    401         [global::System.Runtime.Serialization.DataMemberAttribute()] 
    402         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
     411     
     412        /// <summary> 
     413        /// No Metadata Documentation available. 
     414        /// </summary> 
     415        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] 
     416        [DataMemberAttribute()] 
    403417        public global::System.DateTime date 
    404418        { 
    405419            get 
    406420            { 
    407                 return this._date; 
    408             } 
    409             set 
    410             { 
    411                 this.OndateChanging(value); 
    412                 this.ReportPropertyChanging("date"); 
    413                 this._date = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); 
    414                 this.ReportPropertyChanged("date"); 
    415                 this.OndateChanged(); 
    416             } 
    417         } 
    418         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
     421                return _date; 
     422            } 
     423            set 
     424            { 
     425                OndateChanging(value); 
     426                ReportPropertyChanging("date"); 
     427                _date = StructuralObject.SetValidValue(value); 
     428                ReportPropertyChanged("date"); 
     429                OndateChanged(); 
     430            } 
     431        } 
    419432        private global::System.DateTime _date; 
    420         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    421433        partial void OndateChanging(global::System.DateTime value); 
    422         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    423434        partial void OndateChanged(); 
    424         /// <summary> 
    425         /// There are no comments for property is_latest in the schema. 
    426         /// </summary> 
    427         [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] 
    428         [global::System.Runtime.Serialization.DataMemberAttribute()] 
    429         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    430         public bool is_latest 
    431         { 
    432             get 
    433             { 
    434                 return this._is_latest; 
    435             } 
    436             set 
    437             { 
    438                 this.Onis_latestChanging(value); 
    439                 this.ReportPropertyChanging("is_latest"); 
    440                 this._is_latest = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); 
    441                 this.ReportPropertyChanged("is_latest"); 
    442                 this.Onis_latestChanged(); 
    443             } 
    444         } 
    445         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    446         private bool _is_latest; 
    447         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    448         partial void Onis_latestChanging(bool value); 
    449         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
     435     
     436        /// <summary> 
     437        /// No Metadata Documentation available. 
     438        /// </summary> 
     439        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] 
     440        [DataMemberAttribute()] 
     441        public global::System.Boolean is_latest 
     442        { 
     443            get 
     444            { 
     445                return _is_latest; 
     446            } 
     447            set 
     448            { 
     449                Onis_latestChanging(value); 
     450                ReportPropertyChanging("is_latest"); 
     451                _is_latest = StructuralObject.SetValidValue(value); 
     452                ReportPropertyChanged("is_latest"); 
     453                Onis_latestChanged(); 
     454            } 
     455        } 
     456        private global::System.Boolean _is_latest; 
     457        partial void Onis_latestChanging(global::System.Boolean value); 
    450458        partial void Onis_latestChanged(); 
     459 
     460        #endregion 
     461     
    451462    } 
     463     
    452464    /// <summary> 
    453     /// There are no comments for FitStylrModel.Profile in the schema. 
     465    /// No Metadata Documentation available. 
    454466    /// </summary> 
    455     /// <KeyProperties> 
    456     /// userId 
    457     /// </KeyProperties> 
    458     [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="FitStylrModel", Name="Profile")] 
    459     [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)] 
    460     [global::System.Serializable()] 
    461     public partial class Profile : global::System.Data.Objects.DataClasses.EntityObject 
     467    [EdmEntityTypeAttribute(NamespaceName="FitStylrModel", Name="Profile")] 
     468    [Serializable()] 
     469    [DataContractAttribute(IsReference=true)] 
     470    public partial class Profile : EntityObject 
    462471    { 
     472        #region Factory Method 
     473     
    463474        /// <summary> 
    464475        /// Create a new Profile object. 
    465476        /// </summary> 
    466         /// <param name="userId">Initial value of userId.</param> 
    467         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    468         public static Profile CreateProfile(int userId) 
     477        /// <param name="userId">Initial value of the userId property.</param> 
     478        public static Profile CreateProfile(global::System.Int32 userId) 
    469479        { 
    470480            Profile profile = new Profile(); 
     
    472482            return profile; 
    473483        } 
    474         /// <summary> 
    475         /// There are no comments for property userId in the schema. 
    476         /// </summary> 
    477         [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] 
    478         [global::System.Runtime.Serialization.DataMemberAttribute()] 
    479         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    480         public int userId 
    481         { 
    482             get 
    483             { 
    484                 return this._userId; 
    485             } 
    486             set 
    487             { 
    488                 this.OnuserIdChanging(value); 
    489                 this.ReportPropertyChanging("userId"); 
    490                 this._userId = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); 
    491                 this.ReportPropertyChanged("userId"); 
    492                 this.OnuserIdChanged(); 
    493             } 
    494         } 
    495         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    496         private int _userId; 
    497         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    498         partial void OnuserIdChanging(int value); 
    499         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
     484 
     485        #endregion 
     486        #region Primitive Properties 
     487     
     488        /// <summary> 
     489        /// No Metadata Documentation available. 
     490        /// </summary> 
     491        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] 
     492        [DataMemberAttribute()] 
     493        public global::System.Int32 userId 
     494        { 
     495            get 
     496            { 
     497                return _userId; 
     498            } 
     499            set 
     500            { 
     501                if (_userId != value) 
     502                { 
     503                    OnuserIdChanging(value); 
     504                    ReportPropertyChanging("userId"); 
     505                    _userId = StructuralObject.SetValidValue(value); 
     506                    ReportPropertyChanged("userId"); 
     507                    OnuserIdChanged(); 
     508                } 
     509            } 
     510        } 
     511        private global::System.Int32 _userId; 
     512        partial void OnuserIdChanging(global::System.Int32 value); 
    500513        partial void OnuserIdChanged(); 
    501         /// <summary> 
    502         /// There are no comments for property firstName in the schema. 
    503         /// </summary> 
    504         [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] 
    505         [global::System.Runtime.Serialization.DataMemberAttribute()] 
    506         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    507         public string firstName 
    508         { 
    509             get 
    510             { 
    511                 return this._firstName; 
    512             } 
    513             set 
    514             { 
    515                 this.OnfirstNameChanging(value); 
    516                 this.ReportPropertyChanging("firstName"); 
    517                 this._firstName = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); 
    518                 this.ReportPropertyChanged("firstName"); 
    519                 this.OnfirstNameChanged(); 
    520             } 
    521         } 
    522         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    523         private string _firstName; 
    524         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    525         partial void OnfirstNameChanging(string value); 
    526         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
     514     
     515        /// <summary> 
     516        /// No Metadata Documentation available. 
     517        /// </summary> 
     518        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] 
     519        [DataMemberAttribute()] 
     520        public global::System.String firstName 
     521        { 
     522            get 
     523            { 
     524                return _firstName; 
     525            } 
     526            set 
     527            { 
     528                OnfirstNameChanging(value); 
     529                ReportPropertyChanging("firstName"); 
     530                _firstName = StructuralObject.SetValidValue(value, true); 
     531                ReportPropertyChanged("firstName"); 
     532                OnfirstNameChanged(); 
     533            } 
     534        } 
     535        private global::System.String _firstName; 
     536        partial void OnfirstNameChanging(global::System.String value); 
    527537        partial void OnfirstNameChanged(); 
    528         /// <summary> 
    529         /// There are no comments for property surname in the schema. 
    530         /// </summary> 
    531         [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] 
    532         [global::System.Runtime.Serialization.DataMemberAttribute()] 
    533         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    534         public string surname 
    535         { 
    536             get 
    537             { 
    538                 return this._surname; 
    539             } 
    540             set 
    541             { 
    542                 this.OnsurnameChanging(value); 
    543                 this.ReportPropertyChanging("surname"); 
    544                 this._surname = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); 
    545                 this.ReportPropertyChanged("surname"); 
    546                 this.OnsurnameChanged(); 
    547             } 
    548         } 
    549         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    550         private string _surname; 
    551         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    552         partial void OnsurnameChanging(string value); 
    553         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
     538     
     539        /// <summary> 
     540        /// No Metadata Documentation available. 
     541        /// </summary> 
     542        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] 
     543        [DataMemberAttribute()] 
     544        public global::System.String surname 
     545        { 
     546            get 
     547            { 
     548                return _surname; 
     549            } 
     550            set 
     551            { 
     552                OnsurnameChanging(value); 
     553                ReportPropertyChanging("surname"); 
     554                _surname = StructuralObject.SetValidValue(value, true); 
     555                ReportPropertyChanged("surname"); 
     556                OnsurnameChanged(); 
     557            } 
     558        } 
     559        private global::System.String _surname; 
     560        partial void OnsurnameChanging(global::System.String value); 
    554561        partial void OnsurnameChanged(); 
    555         /// <summary> 
    556         /// There are no comments for property DOB in the schema. 
    557         /// </summary> 
    558         [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] 
    559         [global::System.Runtime.Serialization.DataMemberAttribute()] 
    560         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    561         public global::System.Nullable<global::System.DateTime> DOB 
    562         { 
    563             get 
    564             { 
    565                 return this._DOB; 
    566             } 
    567             set 
    568             { 
    569                 this.OnDOBChanging(value); 
    570                 this.ReportPropertyChanging("DOB"); 
    571                 this._DOB = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); 
    572                 this.ReportPropertyChanged("DOB"); 
    573                 this.OnDOBChanged(); 
    574             } 
    575         } 
    576         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    577         private global::System.Nullable<global::System.DateTime> _DOB; 
    578         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    579         partial void OnDOBChanging(global::System.Nullable<global::System.DateTime> value); 
    580         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
     562     
     563        /// <summary> 
     564        /// No Metadata Documentation available. 
     565        /// </summary> 
     566        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] 
     567        [DataMemberAttribute()] 
     568        public Nullable<global::System.DateTime> DOB 
     569        { 
     570            get 
     571            { 
     572                return _DOB; 
     573            } 
     574            set 
     575            { 
     576                OnDOBChanging(value); 
     577                ReportPropertyChanging("DOB"); 
     578                _DOB = StructuralObject.SetValidValue(value); 
     579                ReportPropertyChanged("DOB"); 
     580                OnDOBChanged(); 
     581            } 
     582        } 
     583        private Nullable<global::System.DateTime> _DOB; 
     584        partial void OnDOBChanging(Nullable<global::System.DateTime> value); 
    581585        partial void OnDOBChanged(); 
    582         /// <summary> 
    583         /// There are no comments for property aboutMe in the schema. 
    584         /// </summary> 
    585         [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] 
    586         [global::System.Runtime.Serialization.DataMemberAttribute()] 
    587         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    588         public string aboutMe 
    589         { 
    590             get 
    591             { 
    592                 return this._aboutMe; 
    593             } 
    594             set 
    595             { 
    596                 this.OnaboutMeChanging(value); 
    597                 this.ReportPropertyChanging("aboutMe"); 
    598                 this._aboutMe = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); 
    599                 this.ReportPropertyChanged("aboutMe"); 
    600                 this.OnaboutMeChanged(); 
    601             } 
    602         } 
    603         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    604         private string _aboutMe; 
    605         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    606         partial void OnaboutMeChanging(string value); 
    607         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
     586     
     587        /// <summary> 
     588        /// No Metadata Documentation available. 
     589        /// </summary> 
     590        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] 
     591        [DataMemberAttribute()] 
     592        public global::System.String aboutMe 
     593        { 
     594            get 
     595            { 
     596                return _aboutMe; 
     597            } 
     598            set 
     599            { 
     600                OnaboutMeChanging(value); 
     601                ReportPropertyChanging("aboutMe"); 
     602                _aboutMe = StructuralObject.SetValidValue(value, true); 
     603                ReportPropertyChanged("aboutMe"); 
     604                OnaboutMeChanged(); 
     605            } 
     606        } 
     607        private global::System.String _aboutMe; 
     608        partial void OnaboutMeChanging(global::System.String value); 
    608609        partial void OnaboutMeChanged(); 
    609         /// <summary> 
    610         /// There are no comments for property occupation in the schema. 
    611         /// </summary> 
    612         [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] 
    613         [global::System.Runtime.Serialization.DataMemberAttribute()] 
    614         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    615         public string occupation 
    616         { 
    617             get 
    618             { 
    619                 return this._occupation; 
    620             } 
    621             set 
    622             { 
    623                 this.OnoccupationChanging(value); 
    624                 this.ReportPropertyChanging("occupation"); 
    625                 this._occupation = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); 
    626                 this.ReportPropertyChanged("occupation"); 
    627                 this.OnoccupationChanged(); 
    628             } 
    629         } 
    630         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    631         private string _occupation; 
    632         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    633         partial void OnoccupationChanging(string value); 
    634         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
     610     
     611        /// <summary> 
     612        /// No Metadata Documentation available. 
     613        /// </summary> 
     614        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] 
     615        [DataMemberAttribute()] 
     616        public global::System.String occupation 
     617        { 
     618            get 
     619            { 
     620                return _occupation; 
     621            } 
     622            set 
     623            { 
     624                OnoccupationChanging(value); 
     625                ReportPropertyChanging("occupation"); 
     626                _occupation = StructuralObject.SetValidValue(value, true); 
     627                ReportPropertyChanged("occupation"); 
     628                OnoccupationChanged(); 
     629            } 
     630        } 
     631        private global::System.String _occupation; 
     632        partial void OnoccupationChanging(global::System.String value); 
    635633        partial void OnoccupationChanged(); 
    636         /// <summary> 
    637         /// There are no comments for property country in the schema. 
    638         /// </summary> 
    639         [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] 
    640         [global::System.Runtime.Serialization.DataMemberAttribute()] 
    641         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    642         public string country 
    643         { 
    644             get 
    645             { 
    646                 return this._country; 
    647             } 
    648             set 
    649             { 
    650                 this.OncountryChanging(value); 
    651                 this.ReportPropertyChanging("country"); 
    652                 this._country = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); 
    653                 this.ReportPropertyChanged("country"); 
    654                 this.OncountryChanged(); 
    655             } 
    656         } 
    657         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    658         private string _country; 
    659         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    660         partial void OncountryChanging(string value); 
    661         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
     634     
     635        /// <summary> 
     636        /// No Metadata Documentation available. 
     637        /// </summary> 
     638        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] 
     639        [DataMemberAttribute()] 
     640        public global::System.String country 
     641        { 
     642            get 
     643            { 
     644                return _country; 
     645            } 
     646            set 
     647            { 
     648                OncountryChanging(value); 
     649                ReportPropertyChanging("country"); 
     650                _country = StructuralObject.SetValidValue(value, true); 
     651                ReportPropertyChanged("country"); 
     652                OncountryChanged(); 
     653            } 
     654        } 
     655        private global::System.String _country; 
     656        partial void OncountryChanging(global::System.String value); 
    662657        partial void OncountryChanged(); 
    663         /// <summary> 
    664         /// There are no comments for property state in the schema. 
    665         /// </summary> 
    666         [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] 
    667         [global::System.Runtime.Serialization.DataMemberAttribute()] 
    668         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    669         public string state 
    670         { 
    671             get 
    672             { 
    673                 return this._state; 
    674             } 
    675             set 
    676             { 
    677                 this.OnstateChanging(value); 
    678                 this.ReportPropertyChanging("state"); 
    679                 this._state = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); 
    680                 this.ReportPropertyChanged("state"); 
    681                 this.OnstateChanged(); 
    682             } 
    683         } 
    684         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    685         private string _state; 
    686         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    687         partial void OnstateChanging(string value); 
    688         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
     658     
     659        /// <summary> 
     660        /// No Metadata Documentation available. 
     661        /// </summary> 
     662        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] 
     663        [DataMemberAttribute()] 
     664        public global::System.String state 
     665        { 
     666            get 
     667            { 
     668                return _state; 
     669            } 
     670            set 
     671            { 
     672                OnstateChanging(value); 
     673                ReportPropertyChanging("state"); 
     674                _state = StructuralObject.SetValidValue(value, true); 
     675                ReportPropertyChanged("state"); 
     676                OnstateChanged(); 
     677            } 
     678        } 
     679        private global::System.String _state; 
     680        partial void OnstateChanging(global::System.String value); 
    689681        partial void OnstateChanged(); 
    690         /// <summary> 
    691         /// There are no comments for property zipcode in the schema. 
    692         /// </summary> 
    693         [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] 
    694         [global::System.Runtime.Serialization.DataMemberAttribute()] 
    695         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    696         public global::System.Nullable<int> zipcode 
    697         { 
    698             get 
    699             { 
    700                 return this._zipcode; 
    701             } 
    702             set 
    703             { 
    704                 this.OnzipcodeChanging(value); 
    705                 this.ReportPropertyChanging("zipcode"); 
    706                 this._zipcode = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); 
    707                 this.ReportPropertyChanged("zipcode"); 
    708                 this.OnzipcodeChanged(); 
    709             } 
    710         } 
    711         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    712         private global::System.Nullable<int> _zipcode; 
    713         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    714         partial void OnzipcodeChanging(global::System.Nullable<int> value); 
    715         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
     682     
     683        /// <summary> 
     684        /// No Metadata Documentation available. 
     685        /// </summary> 
     686        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] 
     687        [DataMemberAttribute()] 
     688        public Nullable<global::System.Int32> zipcode 
     689        { 
     690            get 
     691            { 
     692                return _zipcode; 
     693            } 
     694            set 
     695            { 
     696                OnzipcodeChanging(value); 
     697                ReportPropertyChanging("zipcode"); 
     698                _zipcode = StructuralObject.SetValidValue(value); 
     699                ReportPropertyChanged("zipcode"); 
     700                OnzipcodeChanged(); 
     701            } 
     702        } 
     703        private Nullable<global::System.Int32> _zipcode; 
     704        partial void OnzipcodeChanging(Nullable<global::System.Int32> value); 
    716705        partial void OnzipcodeChanged(); 
    717         /// <summary> 
    718         /// There are no comments for property address_1 in the schema. 
    719         /// </summary> 
    720         [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] 
    721         [global::System.Runtime.Serialization.DataMemberAttribute()] 
    722         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    723         public string address_1 
    724         { 
    725             get 
    726             { 
    727                 return this._address_1; 
    728             } 
    729             set 
    730             { 
    731                 this.Onaddress_1Changing(value); 
    732                 this.ReportPropertyChanging("address_1"); 
    733                 this._address_1 = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); 
    734                 this.ReportPropertyChanged("address_1"); 
    735                 this.Onaddress_1Changed(); 
    736             } 
    737         } 
    738         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    739         private string _address_1; 
    740         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    741         partial void Onaddress_1Changing(string value); 
    742         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
     706     
     707        /// <summary> 
     708        /// No Metadata Documentation available. 
     709        /// </summary> 
     710        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] 
     711        [DataMemberAttribute()] 
     712        public global::System.String address_1 
     713        { 
     714            get 
     715            { 
     716                return _address_1; 
     717            } 
     718            set 
     719            { 
     720                Onaddress_1Changing(value); 
     721                ReportPropertyChanging("address_1"); 
     722                _address_1 = StructuralObject.SetValidValue(value, true); 
     723                ReportPropertyChanged("address_1"); 
     724                Onaddress_1Changed(); 
     725            } 
     726        } 
     727        private global::System.String _address_1; 
     728        partial void Onaddress_1Changing(global::System.String value); 
    743729        partial void Onaddress_1Changed(); 
    744         /// <summary> 
    745         /// There are no comments for property address_2 in the schema. 
    746         /// </summary> 
    747         [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] 
    748         [global::System.Runtime.Serialization.DataMemberAttribute()] 
    749         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    750         public string address_2 
    751         { 
    752             get 
    753             { 
    754                 return this._address_2; 
    755             } 
    756             set 
    757             { 
    758                 this.Onaddress_2Changing(value); 
    759                 this.ReportPropertyChanging("address_2"); 
    760                 this._address_2 = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); 
    761                 this.ReportPropertyChanged("address_2"); 
    762                 this.Onaddress_2Changed(); 
    763             } 
    764         } 
    765         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    766         private string _address_2; 
    767         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    768         partial void Onaddress_2Changing(string value); 
    769         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
     730     
     731        /// <summary> 
     732        /// No Metadata Documentation available. 
     733        /// </summary> 
     734        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] 
     735        [DataMemberAttribute()] 
     736        public global::System.String address_2 
     737        { 
     738            get 
     739            { 
     740                return _address_2; 
     741            } 
     742            set 
     743            { 
     744                Onaddress_2Changing(value); 
     745                ReportPropertyChanging("address_2"); 
     746                _address_2 = StructuralObject.SetValidValue(value, true); 
     747                ReportPropertyChanged("address_2"); 
     748                Onaddress_2Changed(); 
     749            } 
     750        } 
     751        private global::System.String _address_2; 
     752        partial void Onaddress_2Changing(global::System.String value); 
    770753        partial void Onaddress_2Changed(); 
    771         /// <summary> 
    772         /// There are no comments for property homepage in the schema. 
    773         /// </summary> 
    774         [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] 
    775         [global::System.Runtime.Serialization.DataMemberAttribute()] 
    776         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    777         public string homepage 
    778         { 
    779             get 
    780             { 
    781                 return this._homepage; 
    782             } 
    783             set 
    784             { 
    785                 this.OnhomepageChanging(value); 
    786                 this.ReportPropertyChanging("homepage"); 
    787                 this._homepage = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); 
    788                 this.ReportPropertyChanged("homepage"); 
    789                 this.OnhomepageChanged(); 
    790             } 
    791         } 
    792         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    793         private string _homepage; 
    794         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    795         partial void OnhomepageChanging(string value); 
    796         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
     754     
     755        /// <summary> 
     756        /// No Metadata Documentation available. 
     757        /// </summary> 
     758        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] 
     759        [DataMemberAttribute()] 
     760        public global::System.String homepage 
     761        { 
     762            get 
     763            { 
     764                return _homepage; 
     765            } 
     766            set 
     767            { 
     768                OnhomepageChanging(value); 
     769                ReportPropertyChanging("homepage"); 
     770                _homepage = StructuralObject.SetValidValue(value, true); 
     771                ReportPropertyChanged("homepage"); 
     772                OnhomepageChanged(); 
     773            } 
     774        } 
     775        private global::System.String _homepage; 
     776        partial void OnhomepageChanging(global::System.String value); 
    797777        partial void OnhomepageChanged(); 
    798         /// <summary> 
    799         /// There are no comments for property phone in the schema. 
    800         /// </summary> 
    801         [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] 
    802         [global::System.Runtime.Serialization.DataMemberAttribute()] 
    803         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    804         public global::System.Nullable<int> phone 
    805         { 
    806             get 
    807             { 
    808                 return this._phone; 
    809             } 
    810             set 
    811             { 
    812                 this.OnphoneChanging(value); 
    813                 this.ReportPropertyChanging("phone"); 
    814                 this._phone = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); 
    815                 this.ReportPropertyChanged("phone"); 
    816                 this.OnphoneChanged(); 
    817             } 
    818         } 
    819         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    820         private global::System.Nullable<int> _phone; 
    821         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    822         partial void OnphoneChanging(global::System.Nullable<int> value); 
    823         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
     778     
     779        /// <summary> 
     780        /// No Metadata Documentation available. 
     781        /// </summary> 
     782        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] 
     783        [DataMemberAttribute()] 
     784        public Nullable<global::System.Int32> phone 
     785        { 
     786            get 
     787            { 
     788                return _phone; 
     789            } 
     790            set 
     791            { 
     792                OnphoneChanging(value); 
     793                ReportPropertyChanging("phone"); 
     794                _phone = StructuralObject.SetValidValue(value); 
     795                ReportPropertyChanged("phone"); 
     796                OnphoneChanged(); 
     797            } 
     798        } 
     799        private Nullable<global::System.Int32> _phone; 
     800        partial void OnphoneChanging(Nullable<global::System.Int32> value); 
    824801        partial void OnphoneChanged(); 
    825         /// <summary> 
    826         /// There are no comments for property mobile in the schema. 
    827         /// </summary> 
    828         [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] 
    829         [global::System.Runtime.Serialization.DataMemberAttribute()] 
    830         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    831         public global::System.Nullable<int> mobile 
    832         { 
    833             get 
    834             { 
    835                 return this._mobile; 
    836             } 
    837             set 
    838             { 
    839                 this.OnmobileChanging(value); 
    840                 this.ReportPropertyChanging("mobile"); 
    841                 this._mobile = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); 
    842                 this.ReportPropertyChanged("mobile"); 
    843                 this.OnmobileChanged(); 
    844             } 
    845         } 
    846         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    847         private global::System.Nullable<int> _mobile; 
    848         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    849         partial void OnmobileChanging(global::System.Nullable<int> value); 
    850         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
     802     
     803        /// <summary> 
     804        /// No Metadata Documentation available. 
     805        /// </summary> 
     806        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] 
     807        [DataMemberAttribute()] 
     808        public Nullable<global::System.Int32> mobile 
     809        { 
     810            get 
     811            { 
     812                return _mobile; 
     813            } 
     814            set 
     815            { 
     816                OnmobileChanging(value); 
     817                ReportPropertyChanging("mobile"); 
     818                _mobile = StructuralObject.SetValidValue(value); 
     819                ReportPropertyChanged("mobile"); 
     820                OnmobileChanged(); 
     821            } 
     822        } 
     823        private Nullable<global::System.Int32> _mobile; 
     824        partial void OnmobileChanging(Nullable<global::System.Int32> value); 
    851825        partial void OnmobileChanged(); 
    852         /// <summary> 
    853         /// There are no comments for property twitterAccount in the schema. 
    854         /// </summary> 
    855         [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] 
    856         [global::System.Runtime.Serialization.DataMemberAttribute()] 
    857         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    858         public string twitterAccount 
    859         { 
    860             get 
    861             { 
    862                 return this._twitterAccount; 
    863             } 
    864             set 
    865             { 
    866                 this.OntwitterAccountChanging(value); 
    867                 this.ReportPropertyChanging("twitterAccount"); 
    868                 this._twitterAccount = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); 
    869                 this.ReportPropertyChanged("twitterAccount"); 
    870                 this.OntwitterAccountChanged(); 
    871             } 
    872         } 
    873         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    874         private string _twitterAccount; 
    875         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    876         partial void OntwitterAccountChanging(string value); 
    877         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
     826     
     827        /// <summary> 
     828        /// No Metadata Documentation available. 
     829        /// </summary> 
     830        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] 
     831        [DataMemberAttribute()] 
     832        public global::System.String twitterAccount 
     833        { 
     834            get 
     835            { 
     836                return _twitterAccount; 
     837            } 
     838            set 
     839            { 
     840                OntwitterAccountChanging(value); 
     841                ReportPropertyChanging("twitterAccount"); 
     842                _twitterAccount = StructuralObject.SetValidValue(value, true); 
     843                ReportPropertyChanged("twitterAccount"); 
     844                OntwitterAccountChanged(); 
     845            } 
     846        } 
     847        private global::System.String _twitterAccount; 
     848        partial void OntwitterAccountChanging(global::System.String value); 
    878849        partial void OntwitterAccountChanged(); 
    879         /// <summary> 
    880         /// There are no comments for property facebookId in the schema. 
    881         /// </summary> 
    882         [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] 
    883         [global::System.Runtime.Serialization.DataMemberAttribute()] 
    884         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    885         public string facebookId 
    886         { 
    887             get 
    888             { 
    889                 return this._facebookId; 
    890             } 
    891             set 
    892             { 
    893                 this.OnfacebookIdChanging(value); 
    894                 this.ReportPropertyChanging("facebookId"); 
    895                 this._facebookId = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); 
    896                 this.ReportPropertyChanged("facebookId"); 
    897                 this.OnfacebookIdChanged(); 
    898             } 
    899         } 
    900         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    901         private string _facebookId; 
    902         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    903         partial void OnfacebookIdChanging(string value); 
    904         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
     850     
     851        /// <summary> 
     852        /// No Metadata Documentation available. 
     853        /// </summary> 
     854        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] 
     855        [DataMemberAttribute()] 
     856        public global::System.String facebookId 
     857        { 
     858            get 
     859            { 
     860                return _facebookId; 
     861            } 
     862            set 
     863            { 
     864                OnfacebookIdChanging(value); 
     865                ReportPropertyChanging("facebookId"); 
     866                _facebookId = StructuralObject.SetValidValue(value, true); 
     867                ReportPropertyChanged("facebookId"); 
     868                OnfacebookIdChanged(); 
     869            } 
     870        } 
     871        private global::System.String _facebookId; 
     872        partial void OnfacebookIdChanging(global::System.String value); 
    905873        partial void OnfacebookIdChanged(); 
     874 
     875        #endregion 
     876     
    906877    } 
     878     
    907879    /// <summary> 
    908     /// There are no comments for FitStylrModel.User in the schema. 
     880    /// No Metadata Documentation available. 
    909881    /// </summary> 
    910     /// <KeyProperties> 
    911     /// id 
    912     /// </KeyProperties> 
    913     [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="FitStylrModel", Name="User")] 
    914     [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)] 
    915     [global::System.Serializable()] 
    916     public partial class User : global::System.Data.Objects.DataClasses.EntityObject 
     882    [EdmEntityTypeAttribute(NamespaceName="FitStylrModel", Name="User")] 
     883    [Serializable()] 
     884    [DataContractAttribute(IsReference=true)] 
     885    public partial class User : EntityObject 
    917886    { 
     887        #region Factory Method 
     888     
    918889        /// <summary> 
    919890        /// Create a new User object. 
    920891        /// </summary> 
    921         /// <param name="id">Initial value of id.</param> 
    922         /// <param name="username">Initial value of username.</param> 
    923         /// <param name="password">Initial value of password.</param> 
    924         /// <param name="email">Initial value of email.</param> 
    925         /// <param name="createdOn">Initial value of createdOn.</param> 
    926         /// <param name="is_active">Initial value of is_active.</param> 
    927         /// <param name="userType">Initial value of userType.</param> 
    928         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    929         public static User CreateUser(int id, string username, string password, string email, global::System.DateTime createdOn, bool is_active, string userType) 
     892        /// <param name="id">Initial value of the id property.</param> 
     893        /// <param name="username">Initial value of the username property.</param> 
     894        /// <param name="password">Initial value of the password property.</param> 
     895        /// <param name="email">Initial value of the email property.</param> 
     896        /// <param name="createdOn">Initial value of the createdOn property.</param> 
     897        /// <param name="is_active">Initial value of the is_active property.</param> 
     898        /// <param name="userType">Initial value of the userType property.</param> 
     899        public static User CreateUser(global::System.Int32 id, global::System.String username, global::System.String password, global::System.String email, global::System.DateTime createdOn, global::System.Boolean is_active, global::System.String userType) 
    930900        { 
    931901            User user = new User(); 
     
    939909            return user; 
    940910        } 
    941         /// <summary> 
    942         /// There are no comments for property id in the schema. 
    943         /// </summary> 
    944         [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] 
    945         [global::System.Runtime.Serialization.DataMemberAttribute()] 
    946         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    947         public int id 
    948         { 
    949             get 
    950             { 
    951                 return this._id; 
    952             } 
    953             set 
    954             { 
    955                 this.OnidChanging(value); 
    956                 this.ReportPropertyChanging("id"); 
    957                 this._id = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); 
    958                 this.ReportPropertyChanged("id"); 
    959                 this.OnidChanged(); 
    960             } 
    961         } 
    962         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    963         private int _id; 
    964         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    965         partial void OnidChanging(int value); 
    966         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
     911 
     912        #endregion 
     913        #region Primitive Properties 
     914     
     915        /// <summary> 
     916        /// No Metadata Documentation available. 
     917        /// </summary> 
     918        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] 
     919        [DataMemberAttribute()] 
     920        public global::System.Int32 id 
     921        { 
     922            get 
     923            { 
     924                return _id; 
     925            } 
     926            set 
     927            { 
     928                if (_id != value) 
     929                { 
     930                    OnidChanging(value); 
     931                    ReportPropertyChanging("id"); 
     932                    _id = StructuralObject.SetValidValue(value); 
     933                    ReportPropertyChanged("id"); 
     934                    OnidChanged(); 
     935                } 
     936            } 
     937        } 
     938        private global::System.Int32 _id; 
     939        partial void OnidChanging(global::System.Int32 value); 
    967940        partial void OnidChanged(); 
    968         /// <summary> 
    969         /// There are no comments for property username in the schema. 
    970         /// </summary> 
    971         [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] 
    972         [global::System.Runtime.Serialization.DataMemberAttribute()] 
    973         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    974         public string username 
    975         { 
    976             get 
    977             { 
    978                 return this._username; 
    979             } 
    980             set 
    981             { 
    982                 this.OnusernameChanging(value); 
    983                 this.ReportPropertyChanging("username"); 
    984                 this._username = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false); 
    985                 this.ReportPropertyChanged("username"); 
    986                 this.OnusernameChanged(); 
    987             } 
    988         } 
    989         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    990         private string _username; 
    991         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    992         partial void OnusernameChanging(string value); 
    993         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
     941     
     942        /// <summary> 
     943        /// No Metadata Documentation available. 
     944        /// </summary> 
     945        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] 
     946        [DataMemberAttribute()] 
     947        public global::System.String username 
     948        { 
     949            get 
     950            { 
     951                return _username; 
     952            } 
     953            set 
     954            { 
     955                OnusernameChanging(value); 
     956                ReportPropertyChanging("username"); 
     957                _username = StructuralObject.SetValidValue(value, false); 
     958                ReportPropertyChanged("username"); 
     959                OnusernameChanged(); 
     960            } 
     961        } 
     962        private global::System.String _username; 
     963        partial void OnusernameChanging(global::System.String value); 
    994964        partial void OnusernameChanged(); 
    995         /// <summary> 
    996         /// There are no comments for property password in the schema. 
    997         /// </summary> 
    998         [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] 
    999         [global::System.Runtime.Serialization.DataMemberAttribute()] 
    1000         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    1001         public string password 
    1002         { 
    1003             get 
    1004             { 
    1005                 return this._password; 
    1006             } 
    1007             set 
    1008             { 
    1009                 this.OnpasswordChanging(value); 
    1010                 this.ReportPropertyChanging("password"); 
    1011                 this._password = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false); 
    1012                 this.ReportPropertyChanged("password"); 
    1013                 this.OnpasswordChanged(); 
    1014             } 
    1015         } 
    1016         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    1017         private string _password; 
    1018         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    1019         partial void OnpasswordChanging(string value); 
    1020         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
     965     
     966        /// <summary> 
     967        /// No Metadata Documentation available. 
     968        /// </summary> 
     969        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] 
     970        [DataMemberAttribute()] 
     971        public global::System.String password 
     972        { 
     973            get 
     974            { 
     975                return _password; 
     976            } 
     977            set 
     978            { 
     979                OnpasswordChanging(value); 
     980                ReportPropertyChanging("password"); 
     981                _password = StructuralObject.SetValidValue(value, false); 
     982                ReportPropertyChanged("password"); 
     983                OnpasswordChanged(); 
     984            } 
     985        } 
     986        private global::System.String _password; 
     987        partial void OnpasswordChanging(global::System.String value); 
    1021988        partial void OnpasswordChanged(); 
    1022         /// <summary> 
    1023         /// There are no comments for property email in the schema. 
    1024         /// </summary> 
    1025         [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] 
    1026         [global::System.Runtime.Serialization.DataMemberAttribute()] 
    1027         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    1028         public string email 
    1029         { 
    1030             get 
    1031             { 
    1032                 return this._email; 
    1033             } 
    1034             set 
    1035             { 
    1036                 this.OnemailChanging(value); 
    1037                 this.ReportPropertyChanging("email"); 
    1038                 this._email = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false); 
    1039                 this.ReportPropertyChanged("email"); 
    1040                 this.OnemailChanged(); 
    1041             } 
    1042         } 
    1043         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    1044         private string _email; 
    1045         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    1046         partial void OnemailChanging(string value); 
    1047         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
     989     
     990        /// <summary> 
     991        /// No Metadata Documentation available. 
     992        /// </summary> 
     993        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] 
     994        [DataMemberAttribute()] 
     995        public global::System.String email 
     996        { 
     997            get 
     998            { 
     999                return _email; 
     1000            } 
     1001            set 
     1002            { 
     1003                OnemailChanging(value); 
     1004                ReportPropertyChanging("email"); 
     1005                _email = StructuralObject.SetValidValue(value, false); 
     1006                ReportPropertyChanged("email"); 
     1007                OnemailChanged(); 
     1008            } 
     1009        } 
     1010        private global::System.String _email; 
     1011        partial void OnemailChanging(global::System.String value); 
    10481012        partial void OnemailChanged(); 
    1049         /// <summary> 
    1050         /// There are no comments for property createdOn in the schema. 
    1051         /// </summary> 
    1052         [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] 
    1053         [global::System.Runtime.Serialization.DataMemberAttribute()] 
    1054         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
     1013     
     1014        /// <summary> 
     1015        /// No Metadata Documentation available. 
     1016        /// </summary> 
     1017        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] 
     1018        [DataMemberAttribute()] 
    10551019        public global::System.DateTime createdOn 
    10561020        { 
    10571021            get 
    10581022            { 
    1059                 return this._createdOn; 
    1060             } 
    1061             set 
    1062             { 
    1063                 this.OncreatedOnChanging(value); 
    1064                 this.ReportPropertyChanging("createdOn"); 
    1065                 this._createdOn = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); 
    1066                 this.ReportPropertyChanged("createdOn"); 
    1067                 this.OncreatedOnChanged(); 
    1068             } 
    1069         } 
    1070         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
     1023                return _createdOn; 
     1024            } 
     1025            set 
     1026            { 
     1027                OncreatedOnChanging(value); 
     1028                ReportPropertyChanging("createdOn"); 
     1029                _createdOn = StructuralObject.SetValidValue(value); 
     1030                ReportPropertyChanged("createdOn"); 
     1031                OncreatedOnChanged(); 
     1032            } 
     1033        } 
    10711034        private global::System.DateTime _createdOn; 
    1072         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    10731035        partial void OncreatedOnChanging(global::System.DateTime value); 
    1074         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    10751036        partial void OncreatedOnChanged(); 
    1076         /// <summary> 
    1077         /// There are no comments for property is_active in the schema. 
    1078         /// </summary> 
    1079         [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] 
    1080         [global::System.Runtime.Serialization.DataMemberAttribute()] 
    1081         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    1082         public bool is_active 
    1083         { 
    1084             get 
    1085             { 
    1086                 return this._is_active; 
    1087             } 
    1088             set 
    1089             { 
    1090                 this.Onis_activeChanging(value); 
    1091                 this.ReportPropertyChanging("is_active"); 
    1092                 this._is_active = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); 
    1093                 this.ReportPropertyChanged("is_active"); 
    1094                 this.Onis_activeChanged(); 
    1095             } 
    1096         } 
    1097         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    1098         private bool _is_active; 
    1099         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    1100         partial void Onis_activeChanging(bool value); 
    1101         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
     1037     
     1038        /// <summary> 
     1039        /// No Metadata Documentation available. 
     1040        /// </summary> 
     1041        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] 
     1042        [DataMemberAttribute()] 
     1043        public global::System.Boolean is_active 
     1044        { 
     1045            get 
     1046            { 
     1047                return _is_active; 
     1048            } 
     1049            set 
     1050            { 
     1051                Onis_activeChanging(value); 
     1052                ReportPropertyChanging("is_active"); 
     1053                _is_active = StructuralObject.SetValidValue(value); 
     1054                ReportPropertyChanged("is_active"); 
     1055                Onis_activeChanged(); 
     1056            } 
     1057        } 
     1058        private global::System.Boolean _is_active; 
     1059        partial void Onis_activeChanging(global::System.Boolean value); 
    11021060        partial void Onis_activeChanged(); 
    1103         /// <summary> 
    1104         /// There are no comments for property lastLogin in the schema. 
    1105         /// </summary> 
    1106         [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] 
    1107         [global::System.Runtime.Serialization.DataMemberAttribute()] 
    1108         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    1109         public global::System.Nullable<global::System.DateTime> lastLogin 
    1110         { 
    1111             get 
    1112             { 
    1113                 return this._lastLogin; 
    1114             } 
    1115             set 
    1116             { 
    1117                 this.OnlastLoginChanging(value); 
    1118                 this.ReportPropertyChanging("lastLogin"); 
    1119                 this._lastLogin = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); 
    1120                 this.ReportPropertyChanged("lastLogin"); 
    1121                 this.OnlastLoginChanged(); 
    1122             } 
    1123         } 
    1124         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    1125         private global::System.Nullable<global::System.DateTime> _lastLogin; 
    1126         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    1127         partial void OnlastLoginChanging(global::System.Nullable<global::System.DateTime> value); 
    1128         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
     1061     
     1062        /// <summary> 
     1063        /// No Metadata Documentation available. 
     1064        /// </summary> 
     1065        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] 
     1066        [DataMemberAttribute()] 
     1067        public Nullable<global::System.DateTime> lastLogin 
     1068        { 
     1069            get 
     1070            { 
     1071                return _lastLogin; 
     1072            } 
     1073            set 
     1074            { 
     1075                OnlastLoginChanging(value); 
     1076                ReportPropertyChanging("lastLogin"); 
     1077                _lastLogin = StructuralObject.SetValidValue(value); 
     1078                ReportPropertyChanged("lastLogin"); 
     1079                OnlastLoginChanged(); 
     1080            } 
     1081        } 
     1082        private Nullable<global::System.DateTime> _lastLogin; 
     1083        partial void OnlastLoginChanging(Nullable<global::System.DateTime> value); 
    11291084        partial void OnlastLoginChanged(); 
    1130         /// <summary> 
    1131         /// There are no comments for property userType in the schema. 
    1132         /// </summary> 
    1133         [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] 
    1134         [global::System.Runtime.Serialization.DataMemberAttribute()] 
    1135         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    1136         public string userType 
    1137         { 
    1138             get 
    1139             { 
    1140                 return this._userType; 
    1141             } 
    1142             set 
    1143             { 
    1144                 this.OnuserTypeChanging(value); 
    1145                 this.ReportPropertyChanging("userType"); 
    1146                 this._userType = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false); 
    1147                 this.ReportPropertyChanged("userType"); 
    1148                 this.OnuserTypeChanged(); 
    1149             } 
    1150         } 
    1151         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    1152         private string _userType; 
    1153         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
    1154         partial void OnuserTypeChanging(string value); 
    1155         [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] 
     1085     
     1086        /// <summary> 
     1087        /// No Metadata Documentation available. 
     1088        /// </summary> 
     1089        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] 
     1090        [DataMemberAttribute()] 
     1091        public global::System.String userType 
     1092        { 
     1093            get 
     1094            { 
     1095                return _userType; 
     1096            } 
     1097            set 
     1098            { 
     1099                OnuserTypeChanging(value); 
     1100                ReportPropertyChanging("userType"); 
     1101                _userType = StructuralObject.SetValidValue(value, false); 
     1102                ReportPropertyChanged("userType"); 
     1103                OnuserTypeChanged(); 
     1104            } 
     1105        } 
     1106        private global::System.String _userType; 
     1107        partial void OnuserTypeChanging(global::System.String value); 
    11561108        partial void OnuserTypeChanged(); 
     1109 
     1110        #endregion 
     1111     
    11571112    } 
     1113 
     1114    #endregion 
     1115     
    11581116} 
  • BuisnessLogic/FitStylr/FitStylr/FitStylr/fitStylrModel.edmx

    r51 r53  
    11<?xml version="1.0" encoding="utf-8"?> 
    2 <edmx:Edmx Version="1.0" xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx"> 
     2<edmx:Edmx Version="2.0" xmlns:edmx="http://schemas.microsoft.com/ado/2008/10/edmx"> 
    33  <!-- EF Runtime content --> 
    44  <edmx:Runtime> 
    55    <!-- SSDL content --> 
    66    <edmx:StorageModels> 
    7       <Schema Namespace="FitStylrModel.Store" Alias="Self" Provider="System.Data.SqlClient" ProviderManifestToken="2008" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns="http://schemas.microsoft.com/ado/2006/04/edm/ssdl"> 
     7      <Schema Namespace="FitStylrModel.Store" Alias="Self" Provider="System.Data.SqlClient" ProviderManifestToken="2008" xmlns="http://schemas.microsoft.com/ado/2009/02/edm/ssdl"> 
    88        <EntityContainer Name="FitStylrModelStoreContainer"> 
    9           <EntitySet Name="Attribute" EntityType="FitStylrModel.Store.Attribute" store:Type="Tables" Schema="dbo" /> 
    10           <EntitySet Name="Measurement" EntityType="FitStylrModel.Store.Measurement" store:Type="Tables" Schema="dbo" /> 
    11           <EntitySet Name="Profile" EntityType="FitStylrModel.Store.Profile" store:Type="Tables" Schema="dbo" /> 
    12           <EntitySet Name="User" EntityType="FitStylrModel.Store.User" store:Type="Tables" Schema="dbo" /> 
     9          <EntitySet Name="Attribute" EntityType="FitStylrModel.Store.Attribute" store:Type="Tables" Schema="dbo" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" /> 
     10          <EntitySet Name="Measurement" EntityType="FitStylrModel.Store.Measurement" store:Type="Tables" Schema="dbo" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" /> 
     11          <EntitySet Name="Profile" EntityType="FitStylrModel.Store.Profile" store:Type="Tables" Schema="dbo" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" /> 
     12          <EntitySet Name="User" EntityType="FitStylrModel.Store.User" store:Type="Tables" Schema="dbo" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" /> 
    1313        </EntityContainer> 
    1414        <EntityType Name="Attribute"> 
     
    6969    <!-- CSDL content --> 
    7070    <edmx:ConceptualModels> 
    71       <Schema Namespace="FitStylrModel" Alias="Self" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns="http://schemas.microsoft.com/ado/2006/04/edm"> 
     71      <Schema Namespace="FitStylrModel" Alias="Self" xmlns="http://schemas.microsoft.com/ado/2008/09/edm"> 
    7272        <EntityContainer Name="FitStylrEntities"> 
    7373          <EntitySet Name="Attributes" EntityType="FitStylrModel.Attribute" /> 
     
    8080            <PropertyRef Name="id" /> 
    8181          </Key> 
    82           <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" /> 
     82          <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" /> 
    8383          <Property Name="name" Type="String" Nullable="false" MaxLength="50" Unicode="true" FixedLength="false" /> 
    8484          <Property Name="description" Type="String" Nullable="false" MaxLength="200" Unicode="true" FixedLength="false" /> 
     
    8888            <PropertyRef Name="id" /> 
    8989          </Key> 
    90           <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" /> 
     90          <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" /> 
    9191          <Property Name="userId" Type="Int32" Nullable="false" /> 
    9292          <Property Name="attributeId" Type="Int32" Nullable="false" /> 
     
    120120            <PropertyRef Name="id" /> 
    121121          </Key> 
    122           <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" /> 
     122          <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" /> 
    123123          <Property Name="username" Type="String" Nullable="false" MaxLength="100" Unicode="true" FixedLength="false" /> 
    124124          <Property Name="password" Type="String" Nullable="false" MaxLength="Max" Unicode="true" FixedLength="false" /> 
     
    133133    <!-- C-S mapping content --> 
    134134    <edmx:Mappings> 
    135       <Mapping Space="C-S" xmlns="urn:schemas-microsoft-com:windows:storage:mapping:CS"> 
     135      <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2008/09/mapping/cs"> 
    136136        <EntityContainerMapping StorageEntityContainer="FitStylrModelStoreContainer" CdmEntityContainer="FitStylrEntities"> 
    137137          <EntitySetMapping Name="Attributes"><EntityTypeMapping TypeName="FitStylrModel.Attribute"><MappingFragment StoreEntitySet="Attribute"> 
     
    181181  </edmx:Runtime> 
    182182  <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) --> 
    183   <Designer xmlns="http://schemas.microsoft.com/ado/2007/06/edmx"> 
     183  <Designer xmlns="http://schemas.microsoft.com/ado/2008/10/edmx"> 
    184184    <Connection> 
    185185      <DesignerInfoPropertySet> 
  • BuisnessLogic/FitStylr/FitStylr/WcfService1/WcfService1.csproj

    r48 r53  
    1212    <RootNamespace>WcfService1</RootNamespace> 
    1313    <AssemblyName>WcfService1</AssemblyName> 
    14     <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> 
     14    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion> 
    1515    <FileUpgradeFlags> 
    1616    </FileUpgradeFlags> 
    1717    <OldToolsVersion>3.5</OldToolsVersion> 
    1818    <UpgradeBackupLocation /> 
     19    <TargetFrameworkProfile /> 
    1920  </PropertyGroup> 
    2021  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> 
  • BuisnessLogic/FitStylr/FitStylr/WcfService1/Web.config

    r48 r53  
    99--> 
    1010<configuration> 
    11         <configSections> 
    12                 <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> 
    13                         <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> 
    14                                 <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/> 
    15                                 <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> 
    16                                         <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/> 
    17                                         <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/> 
    18                                         <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/> 
    19                                         <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/> 
    20                                 </sectionGroup> 
    21                         </sectionGroup> 
    22                 </sectionGroup> 
    23         </configSections> 
    2411        <appSettings/> 
    25   <connectionStrings> 
    26     <add name="FitStylrEntities" connectionString="metadata=res://*/FitStylrModel.csdl|res://*/FitStylrModel.ssdl|res://*/FitStylrModel.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=DEV\SQLEXPRESS;Initial Catalog=FitStylr;Integrated Security=True;MultipleActiveResultSets=True&quot;" providerName="System.Data.EntityClient" /> 
    27   </connectionStrings> 
     12        <connectionStrings> 
     13                <add name="FitStylrEntities" connectionString="metadata=res://*/FitStylrModel.csdl|res://*/FitStylrModel.ssdl|res://*/FitStylrModel.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=DEV\SQLEXPRESS;Initial Catalog=FitStylr;Integrated Security=True;MultipleActiveResultSets=True&quot;" providerName="System.Data.EntityClient"/> 
     14        </connectionStrings> 
    2815        <system.web> 
    2916                <!-- 
     
    3320            during development. 
    3421        --> 
    35                 <compilation debug="true"> 
     22                <compilation debug="true" targetFramework="4.0"> 
    3623                        <assemblies> 
    37                                 <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> 
    38                                 <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
    39                 <add assembly="System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/> 
    40                         </assemblies> 
    41                 </compilation> 
     24                                <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/></assemblies></compilation> 
    4225                <!-- 
    4326            The <authentication> section enables configuration  
     
    5841        </customErrors> 
    5942        --> 
    60                 <pages> 
    61                         <controls> 
    62                                 <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
    63                         </controls> 
    64                 </pages> 
    65                 <httpHandlers> 
    66                         <remove verb="*" path="*.asmx"/> 
    67                         <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
    68                         <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
    69                         <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/> 
    70                 </httpHandlers> 
    71                 <httpModules> 
    72                         <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
    73                 </httpModules> 
    74         </system.web> 
    75         <system.codedom> 
    76                 <compilers> 
    77                         <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    78                                 <providerOption name="CompilerVersion" value="v3.5"/> 
    79                                 <providerOption name="WarnAsError" value="false"/> 
    80                         </compiler> 
    81                 </compilers> 
    82         </system.codedom> 
     43                <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/></system.web> 
    8344        <system.web.extensions> 
    8445                <scripting> 
     
    11071                </scripting> 
    11172        </system.web.extensions> 
    112   <system.webServer> 
    113     <validation validateIntegratedModeConfiguration="false"/> 
    114     <modules> 
    115       <remove name="ScriptModule"/> 
    116       <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
    117     </modules> 
    118     <handlers> 
    119       <remove name="WebServiceHandlerFactory-Integrated"/> 
    120       <remove name="ScriptHandlerFactory"/> 
    121       <remove name="ScriptHandlerFactoryAppServices"/> 
    122       <remove name="ScriptResource"/> 
    123       <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
    124       <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
    125       <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
    126     </handlers> 
    127   </system.webServer> 
    128   <runtime> 
    129     <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> 
    130       <dependentAssembly> 
    131         <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/> 
    132         <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/> 
    133       </dependentAssembly> 
    134       <dependentAssembly> 
    135         <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/> 
    136         <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/> 
    137       </dependentAssembly> 
    138     </assemblyBinding> 
    139   </runtime> 
    140   <system.serviceModel> 
    141   </system.serviceModel> 
     73        <system.serviceModel> 
     74        </system.serviceModel> 
    14275</configuration> 
    143         <!-- 
     76<!-- 
    14477        The system.webServer section is required for running ASP.NET AJAX under Internet 
    14578        Information Services 7.0.  It is not necessary for previous version of IIS. 
    14679    --> 
    147         <!--<system.webServer> 
     80<!--<system.webServer> 
    14881                <validation validateIntegratedModeConfiguration="false"/> 
    14982                <modules> 
     
    15992        <system.serviceModel> 
    16093                <services> 
    161                         --><!--<service name="WcfService1.Service1" behaviorConfiguration="WcfService1.Service1Behavior"> 
    162                                 --><!-- Service Endpoints --><!-- 
     94                        --> 
     95<!--<service name="WcfService1.Service1" behaviorConfiguration="WcfService1.Service1Behavior"> 
     96                                --> 
     97<!-- Service Endpoints --> 
     98<!-- 
    16399                                <endpoint address="" binding="webHttpBinding" contract="WcfService1.IService1"> 
    164                                         --><!--  
     100                                        --> 
     101<!--  
    165102              Upon deployment, the following identity element should be removed or replaced to reflect the  
    166103              identity under which the deployed service runs.  If removed, WCF will infer an appropriate identity  
    167104              automatically. 
    168           --><!-- 
     105          --> 
     106<!-- 
    169107                                        <identity> 
    170108                                                <dns value="localhost"/> 
     
    172110                                </endpoint> 
    173111                                <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/> 
    174                         </service>--><!-- 
     112                        </service>--> 
     113<!-- 
    175114                </services> 
    176115      <bindings> 
     
    179118                <behaviors> 
    180119                        <serviceBehaviors> 
    181                                 --><!--<behavior name="WcfService1.Service1Behavior"> 
    182                                         --><!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment --><!-- 
     120                                --> 
     121<!--<behavior name="WcfService1.Service1Behavior"> 
     122                                        --> 
     123<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment --> 
     124<!-- 
    183125                                        <serviceMetadata httpGetEnabled="true"/> 
    184                                         --><!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information --><!-- 
     126                                        --> 
     127<!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information --> 
     128<!-- 
    185129                                        <serviceDebug includeExceptionDetailInFaults="false"/> 
    186130                     
    187                                 </behavior>--><!-- 
     131                                </behavior>--> 
     132<!-- 
    188133                        </serviceBehaviors> 
    189134                </behaviors>