| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281 |
- //------------------------------------------------------------------------------
- // <auto-generated>
- // This code was generated from a template.
- //
- // Manual changes to this file may cause unexpected behavior in your application.
- // Manual changes to this file will be overwritten if the code is regenerated.
- // </auto-generated>
- //------------------------------------------------------------------------------
-
- using System;
- using System.Data.Objects;
- using System.Data.Objects.DataClasses;
- using System.Data.EntityClient;
- using System.ComponentModel;
- using System.Xml.Serialization;
- using System.Runtime.Serialization;
-
- [assembly: EdmSchemaAttribute()]
-
- namespace WpfApplication19
- {
- #region Contexts
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- public partial class labEntities : ObjectContext
- {
- #region Constructors
-
- /// <summary>
- /// Initializes a new labEntities object using the connection string found in the 'labEntities' section of the application configuration file.
- /// </summary>
- public labEntities() : base("name=labEntities", "labEntities")
- {
- this.ContextOptions.LazyLoadingEnabled = true;
- OnContextCreated();
- }
-
- /// <summary>
- /// Initialize a new labEntities object.
- /// </summary>
- public labEntities(string connectionString) : base(connectionString, "labEntities")
- {
- this.ContextOptions.LazyLoadingEnabled = true;
- OnContextCreated();
- }
-
- /// <summary>
- /// Initialize a new labEntities object.
- /// </summary>
- public labEntities(EntityConnection connection) : base(connection, "labEntities")
- {
- this.ContextOptions.LazyLoadingEnabled = true;
- OnContextCreated();
- }
-
- #endregion
-
- #region Partial Methods
-
- partial void OnContextCreated();
-
- #endregion
-
- #region ObjectSet Properties
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- public ObjectSet<user> users
- {
- get
- {
- if ((_users == null))
- {
- _users = base.CreateObjectSet<user>("users");
- }
- return _users;
- }
- }
- private ObjectSet<user> _users;
-
- #endregion
- #region AddTo Methods
-
- /// <summary>
- /// Deprecated Method for adding a new object to the users EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
- /// </summary>
- public void AddTousers(user user)
- {
- base.AddObject("users", user);
- }
-
- #endregion
- }
-
-
- #endregion
-
- #region Entities
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [EdmEntityTypeAttribute(NamespaceName="labModel", Name="user")]
- [Serializable()]
- [DataContractAttribute(IsReference=true)]
- public partial class user : EntityObject
- {
- #region Factory Method
-
- /// <summary>
- /// Create a new user object.
- /// </summary>
- /// <param name="id">Initial value of the id property.</param>
- public static user Createuser(global::System.Int32 id)
- {
- user user = new user();
- user.id = id;
- return user;
- }
-
- #endregion
- #region Primitive Properties
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
- [DataMemberAttribute()]
- public global::System.Int32 id
- {
- get
- {
- return _id;
- }
- set
- {
- if (_id != value)
- {
- OnidChanging(value);
- ReportPropertyChanging("id");
- _id = StructuralObject.SetValidValue(value);
- ReportPropertyChanged("id");
- OnidChanged();
- }
- }
- }
- private global::System.Int32 _id;
- partial void OnidChanging(global::System.Int32 value);
- partial void OnidChanged();
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
- [DataMemberAttribute()]
- public global::System.String email
- {
- get
- {
- return _email;
- }
- set
- {
- OnemailChanging(value);
- ReportPropertyChanging("email");
- _email = StructuralObject.SetValidValue(value, true);
- ReportPropertyChanged("email");
- OnemailChanged();
- }
- }
- private global::System.String _email;
- partial void OnemailChanging(global::System.String value);
- partial void OnemailChanged();
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
- [DataMemberAttribute()]
- public global::System.String hashed_password
- {
- get
- {
- return _hashed_password;
- }
- set
- {
- Onhashed_passwordChanging(value);
- ReportPropertyChanging("hashed_password");
- _hashed_password = StructuralObject.SetValidValue(value, true);
- ReportPropertyChanged("hashed_password");
- Onhashed_passwordChanged();
- }
- }
- private global::System.String _hashed_password;
- partial void Onhashed_passwordChanging(global::System.String value);
- partial void Onhashed_passwordChanged();
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
- [DataMemberAttribute()]
- public Nullable<global::System.DateTime> created_at
- {
- get
- {
- return _created_at;
- }
- set
- {
- Oncreated_atChanging(value);
- ReportPropertyChanging("created_at");
- _created_at = StructuralObject.SetValidValue(value);
- ReportPropertyChanged("created_at");
- Oncreated_atChanged();
- }
- }
- private Nullable<global::System.DateTime> _created_at;
- partial void Oncreated_atChanging(Nullable<global::System.DateTime> value);
- partial void Oncreated_atChanged();
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
- [DataMemberAttribute()]
- public Nullable<global::System.DateTime> updated_at
- {
- get
- {
- return _updated_at;
- }
- set
- {
- Onupdated_atChanging(value);
- ReportPropertyChanging("updated_at");
- _updated_at = StructuralObject.SetValidValue(value);
- ReportPropertyChanged("updated_at");
- Onupdated_atChanged();
- }
- }
- private Nullable<global::System.DateTime> _updated_at;
- partial void Onupdated_atChanging(Nullable<global::System.DateTime> value);
- partial void Onupdated_atChanged();
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
- [DataMemberAttribute()]
- public Nullable<global::System.Boolean> active
- {
- get
- {
- return _active;
- }
- set
- {
- OnactiveChanging(value);
- ReportPropertyChanging("active");
- _active = StructuralObject.SetValidValue(value);
- ReportPropertyChanged("active");
- OnactiveChanged();
- }
- }
- private Nullable<global::System.Boolean> _active;
- partial void OnactiveChanging(Nullable<global::System.Boolean> value);
- partial void OnactiveChanged();
-
- #endregion
-
- }
-
- #endregion
-
- }
|