/// <summary> /// Deprecated Method for adding a new object to the SystemConstants EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSystemConstants(SystemConstant systemConstant) { base.AddObject("SystemConstants", systemConstant); }
/// <summary> /// Create a new SystemConstant object. /// </summary> /// <param name="systemConstantID">Initial value of the SystemConstantID property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="constantValue">Initial value of the ConstantValue property.</param> /// <param name="active">Initial value of the Active property.</param> /// <param name="createdBy_UserID">Initial value of the CreatedBy_UserID property.</param> /// <param name="createdOn">Initial value of the CreatedOn property.</param> /// <param name="modifiedBy_UserID">Initial value of the ModifiedBy_UserID property.</param> /// <param name="modifiedOn">Initial value of the ModifiedOn property.</param> public static SystemConstant CreateSystemConstant(global::System.Int32 systemConstantID, global::System.String name, global::System.String constantValue, global::System.Boolean active, global::System.Int32 createdBy_UserID, global::System.DateTime createdOn, global::System.Int32 modifiedBy_UserID, global::System.DateTime modifiedOn) { SystemConstant systemConstant = new SystemConstant(); systemConstant.SystemConstantID = systemConstantID; systemConstant.Name = name; systemConstant.ConstantValue = constantValue; systemConstant.Active = active; systemConstant.CreatedBy_UserID = createdBy_UserID; systemConstant.CreatedOn = createdOn; systemConstant.ModifiedBy_UserID = modifiedBy_UserID; systemConstant.ModifiedOn = modifiedOn; return systemConstant; }