/// <summary> /// Deprecated Method for adding a new object to the PremiereTypes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPremiereTypes(PremiereType premiereType) { base.AddObject("PremiereTypes", premiereType); }
/// <summary> /// Create a new PremiereType object. /// </summary> /// <param name="premiereTypeID">Initial value of the PremiereTypeID property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="value">Initial value of the Value property.</param> /// <param name="createdBy">Initial value of the CreatedBy property.</param> /// <param name="createdOn">Initial value of the CreatedOn property.</param> /// <param name="modifiedBy">Initial value of the ModifiedBy property.</param> /// <param name="modifiedOn">Initial value of the ModifiedOn property.</param> /// <param name="stamp">Initial value of the Stamp property.</param> /// <param name="active">Initial value of the Active property.</param> public static PremiereType CreatePremiereType(global::System.Int32 premiereTypeID, global::System.String name, global::System.String value, global::System.Int32 createdBy, global::System.DateTime createdOn, global::System.Int32 modifiedBy, global::System.DateTime modifiedOn, global::System.Byte[] stamp, global::System.Boolean active) { PremiereType premiereType = new PremiereType(); premiereType.PremiereTypeID = premiereTypeID; premiereType.Name = name; premiereType.Value = value; premiereType.CreatedBy = createdBy; premiereType.CreatedOn = createdOn; premiereType.ModifiedBy = modifiedBy; premiereType.ModifiedOn = modifiedOn; premiereType.Stamp = stamp; premiereType.Active = active; return premiereType; }
public static PremiereType NewPremiereType() { PremiereType newObject = new PremiereType(); BsoArchiveEntities.Current.AddToPremiereTypes(newObject); BsoArchiveEntities.SetDefaultValue(newObject); return newObject; }