/// <summary> /// 用于向 UserFunction EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddToUserFunction(UserFunction userFunction) { base.AddObject("UserFunction", userFunction); }
/// <summary> /// 创建新的 UserFunction 对象。 /// </summary> /// <param name="userFunctionID">UserFunctionID 属性的初始值。</param> /// <param name="isActive">IsActive 属性的初始值。</param> public static UserFunction CreateUserFunction(global::System.Guid userFunctionID, global::System.Boolean isActive) { UserFunction userFunction = new UserFunction(); userFunction.UserFunctionID = userFunctionID; userFunction.IsActive = isActive; return userFunction; }