Example #1
0
 /// <summary>
 /// 用于向 Employee EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToEmployee(Employee employee)
 {
     base.AddObject("Employee", employee);
 }
Example #2
0
 /// <summary>
 /// 创建新的 Employee 对象。
 /// </summary>
 /// <param name="id">Id 属性的初始值。</param>
 /// <param name="userName">UserName 属性的初始值。</param>
 /// <param name="createdOn">CreatedOn 属性的初始值。</param>
 /// <param name="createdByEmployeeId">CreatedByEmployeeId 属性的初始值。</param>
 /// <param name="modifiedOn">ModifiedOn 属性的初始值。</param>
 /// <param name="modifiedByEmployeeId">ModifiedByEmployeeId 属性的初始值。</param>
 /// <param name="loginName">LoginName 属性的初始值。</param>
 /// <param name="passWord">PassWord 属性的初始值。</param>
 /// <param name="isActive">IsActive 属性的初始值。</param>
 public static Employee CreateEmployee(global::System.Decimal id, global::System.String userName, global::System.DateTime createdOn, global::System.Decimal createdByEmployeeId, global::System.DateTime modifiedOn, global::System.Decimal modifiedByEmployeeId, global::System.String loginName, global::System.String passWord, global::System.String isActive)
 {
     Employee employee = new Employee();
     employee.Id = id;
     employee.UserName = userName;
     employee.CreatedOn = createdOn;
     employee.CreatedByEmployeeId = createdByEmployeeId;
     employee.ModifiedOn = modifiedOn;
     employee.ModifiedByEmployeeId = modifiedByEmployeeId;
     employee.LoginName = loginName;
     employee.PassWord = passWord;
     employee.IsActive = isActive;
     return employee;
 }