// Default contructor that set entity to field
 public aspnet_UsersModel(aspnet_Users aspnet_users)
 {
     this._aspnet___users = aspnet_users;
     this._application_id = aspnet_users.ApplicationId;
     this._user_id = aspnet_users.UserId;
     this._user_name = aspnet_users.UserName;
     this._lowered_user_name = aspnet_users.LoweredUserName;
     this._mobile_alias = aspnet_users.MobileAlias;
     this._is_anonymous = aspnet_users.IsAnonymous;
     this._last_activity_date = aspnet_users.LastActivityDate;
     this._originalaspnet_Users = aspnet_users.DeepClone();
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the aspnet_Users EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToaspnet_Users(aspnet_Users aspnet_Users)
 {
     base.AddObject("aspnet_Users", aspnet_Users);
 }
 // Default contructor
 public aspnet_UsersModel()
 {
     this.IsNewItem = true;
     this._aspnet___users = new aspnet_Users();
 }
 /// <summary>
 /// Create a new aspnet_Users object.
 /// </summary>
 /// <param name="applicationId">Initial value of the ApplicationId property.</param>
 /// <param name="userId">Initial value of the UserId property.</param>
 /// <param name="userName">Initial value of the UserName property.</param>
 /// <param name="loweredUserName">Initial value of the LoweredUserName property.</param>
 /// <param name="isAnonymous">Initial value of the IsAnonymous property.</param>
 /// <param name="lastActivityDate">Initial value of the LastActivityDate property.</param>
 public static aspnet_Users Createaspnet_Users(global::System.Guid applicationId, global::System.Guid userId, global::System.String userName, global::System.String loweredUserName, global::System.Boolean isAnonymous, global::System.DateTime lastActivityDate)
 {
     aspnet_Users aspnet_Users = new aspnet_Users();
     aspnet_Users.ApplicationId = applicationId;
     aspnet_Users.UserId = userId;
     aspnet_Users.UserName = userName;
     aspnet_Users.LoweredUserName = loweredUserName;
     aspnet_Users.IsAnonymous = isAnonymous;
     aspnet_Users.LastActivityDate = lastActivityDate;
     return aspnet_Users;
 }
 // Delete a existed aspnet_Users
 public void Deleteaspnet_Users(aspnet_Users _aspnet_Users)
 {
     unitOfWork.Delete<aspnet_Users>(_aspnet_Users);
 }
 // Add a new aspnet_Users
 public aspnet_Users Addaspnet_Users(aspnet_Users _aspnet_Users)
 {
     unitOfWork.Add<aspnet_Users>(_aspnet_Users);
     return _aspnet_Users;
 }
 // Update a existed aspnet_Users
 public aspnet_Users Updateaspnet_Users(aspnet_Users _aspnet_Users)
 {
     unitOfWork.Update<aspnet_Users>(_aspnet_Users);
     return _aspnet_Users;
 }
 // Refresh an existed aspnet_Users
 public aspnet_Users Refeshaspnet_Users(aspnet_Users _aspnet_Users)
 {
     unitOfWork.Refresh<aspnet_Users>(_aspnet_Users);
     return _aspnet_Users;
 }