예제 #1
0
 /// <summary>
 /// 用于向 aspnet_Roles EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToaspnet_Roles(aspnet_Roles aspnet_Roles)
 {
     base.AddObject("aspnet_Roles", aspnet_Roles);
 }
예제 #2
0
 /// <summary>
 /// 创建新的 aspnet_Roles 对象。
 /// </summary>
 /// <param name="roleId">RoleId 属性的初始值。</param>
 /// <param name="roleName">RoleName 属性的初始值。</param>
 /// <param name="loweredRoleName">LoweredRoleName 属性的初始值。</param>
 public static aspnet_Roles Createaspnet_Roles(global::System.Guid roleId, global::System.String roleName, global::System.String loweredRoleName)
 {
     aspnet_Roles aspnet_Roles = new aspnet_Roles();
     aspnet_Roles.RoleId = roleId;
     aspnet_Roles.RoleName = roleName;
     aspnet_Roles.LoweredRoleName = loweredRoleName;
     return aspnet_Roles;
 }