Exemplo n.º 1
0
 // Default contructor that set entity to field
 public aspnet_RolesModel(aspnet_Roles aspnet_roles)
 {
     this._aspnet___roles = aspnet_roles;
     this._application_id = aspnet_roles.ApplicationId;
     this._role_id = aspnet_roles.RoleId;
     this._role_name = aspnet_roles.RoleName;
     this._lowered_role_name = aspnet_roles.LoweredRoleName;
     this._description = aspnet_roles.Description;
     this._originalaspnet_Roles = aspnet_roles.DeepClone();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the aspnet_Roles EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToaspnet_Roles(aspnet_Roles aspnet_Roles)
 {
     base.AddObject("aspnet_Roles", aspnet_Roles);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Create a new aspnet_Roles object.
 /// </summary>
 /// <param name="applicationId">Initial value of the ApplicationId property.</param>
 /// <param name="roleId">Initial value of the RoleId property.</param>
 /// <param name="roleName">Initial value of the RoleName property.</param>
 /// <param name="loweredRoleName">Initial value of the LoweredRoleName property.</param>
 public static aspnet_Roles Createaspnet_Roles(global::System.Guid applicationId, global::System.Guid roleId, global::System.String roleName, global::System.String loweredRoleName)
 {
     aspnet_Roles aspnet_Roles = new aspnet_Roles();
     aspnet_Roles.ApplicationId = applicationId;
     aspnet_Roles.RoleId = roleId;
     aspnet_Roles.RoleName = roleName;
     aspnet_Roles.LoweredRoleName = loweredRoleName;
     return aspnet_Roles;
 }
Exemplo n.º 4
0
 // Default contructor
 public aspnet_RolesModel()
 {
     this.IsNewItem = true;
     this._aspnet___roles = new aspnet_Roles();
 }
Exemplo n.º 5
0
 // Delete a existed aspnet_Roles
 public void Deleteaspnet_Roles(aspnet_Roles _aspnet_Roles)
 {
     unitOfWork.Delete<aspnet_Roles>(_aspnet_Roles);
 }
Exemplo n.º 6
0
 // Add a new aspnet_Roles
 public aspnet_Roles Addaspnet_Roles(aspnet_Roles _aspnet_Roles)
 {
     unitOfWork.Add<aspnet_Roles>(_aspnet_Roles);
     return _aspnet_Roles;
 }
Exemplo n.º 7
0
 // Update a existed aspnet_Roles
 public aspnet_Roles Updateaspnet_Roles(aspnet_Roles _aspnet_Roles)
 {
     unitOfWork.Update<aspnet_Roles>(_aspnet_Roles);
     return _aspnet_Roles;
 }
Exemplo n.º 8
0
 // Refresh an existed aspnet_Roles
 public aspnet_Roles Refeshaspnet_Roles(aspnet_Roles _aspnet_Roles)
 {
     unitOfWork.Refresh<aspnet_Roles>(_aspnet_Roles);
     return _aspnet_Roles;
 }