//------------------------------------------------------------------------------
//
// 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.
//
//------------------------------------------------------------------------------
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
///
/// No Metadata Documentation available.
///
public partial class labEntities : ObjectContext
{
#region Constructors
///
/// Initializes a new labEntities object using the connection string found in the 'labEntities' section of the application configuration file.
///
public labEntities() : base("name=labEntities", "labEntities")
{
this.ContextOptions.LazyLoadingEnabled = true;
OnContextCreated();
}
///
/// Initialize a new labEntities object.
///
public labEntities(string connectionString) : base(connectionString, "labEntities")
{
this.ContextOptions.LazyLoadingEnabled = true;
OnContextCreated();
}
///
/// Initialize a new labEntities object.
///
public labEntities(EntityConnection connection) : base(connection, "labEntities")
{
this.ContextOptions.LazyLoadingEnabled = true;
OnContextCreated();
}
#endregion
#region Partial Methods
partial void OnContextCreated();
#endregion
#region ObjectSet Properties
///
/// No Metadata Documentation available.
///
public ObjectSet users
{
get
{
if ((_users == null))
{
_users = base.CreateObjectSet("users");
}
return _users;
}
}
private ObjectSet _users;
#endregion
#region AddTo Methods
///
/// Deprecated Method for adding a new object to the users EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
///
public void AddTousers(user user)
{
base.AddObject("users", user);
}
#endregion
}
#endregion
#region Entities
///
/// No Metadata Documentation available.
///
[EdmEntityTypeAttribute(NamespaceName="labModel", Name="user")]
[Serializable()]
[DataContractAttribute(IsReference=true)]
public partial class user : EntityObject
{
#region Factory Method
///
/// Create a new user object.
///
/// Initial value of the id property.
public static user Createuser(global::System.Int32 id)
{
user user = new user();
user.id = id;
return user;
}
#endregion
#region Primitive Properties
///
/// No Metadata Documentation available.
///
[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();
///
/// No Metadata Documentation available.
///
[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();
///
/// No Metadata Documentation available.
///
[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();
///
/// No Metadata Documentation available.
///
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
[DataMemberAttribute()]
public Nullable 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 _created_at;
partial void Oncreated_atChanging(Nullable value);
partial void Oncreated_atChanged();
///
/// No Metadata Documentation available.
///
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
[DataMemberAttribute()]
public Nullable 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 _updated_at;
partial void Onupdated_atChanging(Nullable value);
partial void Onupdated_atChanged();
///
/// No Metadata Documentation available.
///
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
[DataMemberAttribute()]
public Nullable active
{
get
{
return _active;
}
set
{
OnactiveChanging(value);
ReportPropertyChanging("active");
_active = StructuralObject.SetValidValue(value);
ReportPropertyChanged("active");
OnactiveChanged();
}
}
private Nullable _active;
partial void OnactiveChanging(Nullable value);
partial void OnactiveChanged();
#endregion
}
#endregion
}