Пример #1
0
 /// <summary>
 /// 用于向 RoleInfo EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToRoleInfo(RoleInfo roleInfo)
 {
     base.AddObject("RoleInfo", roleInfo);
 }
Пример #2
0
 /// <summary>
 /// 创建新的 RoleInfo 对象。
 /// </summary>
 /// <param name="roleID">RoleID 属性的初始值。</param>
 /// <param name="roleName">RoleName 属性的初始值。</param>
 /// <param name="createPerson">CreatePerson 属性的初始值。</param>
 /// <param name="createTime">CreateTime 属性的初始值。</param>
 public static RoleInfo CreateRoleInfo(global::System.Int32 roleID, global::System.String roleName, global::System.String createPerson, global::System.DateTime createTime)
 {
     RoleInfo roleInfo = new RoleInfo();
     roleInfo.RoleID = roleID;
     roleInfo.RoleName = roleName;
     roleInfo.CreatePerson = createPerson;
     roleInfo.CreateTime = createTime;
     return roleInfo;
 }