/// <summary> /// 用于向 UserRelateTables EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddToUserRelateTables(UserRelateTable userRelateTable) { base.AddObject("UserRelateTables", userRelateTable); }
/// <summary> /// 创建新的 UserRelateTable 对象。 /// </summary> /// <param name="id">ID 属性的初始值。</param> /// <param name="userID">UserID 属性的初始值。</param> /// <param name="userID1">UserID1 属性的初始值。</param> /// <param name="userRelateTypeID">UserRelateTypeID 属性的初始值。</param> /// <param name="relateObject">RelateObject 属性的初始值。</param> /// <param name="notes">Notes 属性的初始值。</param> public static UserRelateTable CreateUserRelateTable(global::System.Int32 id, global::System.Int32 userID, global::System.Int32 userID1, global::System.Int32 userRelateTypeID, global::System.String relateObject, global::System.String notes) { UserRelateTable userRelateTable = new UserRelateTable(); userRelateTable.ID = id; userRelateTable.UserID = userID; userRelateTable.UserID1 = userID1; userRelateTable.UserRelateTypeID = userRelateTypeID; userRelateTable.RelateObject = relateObject; userRelateTable.Notes = notes; return userRelateTable; }