/// <summary> /// Create a new AlternateCategoryId object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="systemCreateDate">Initial value of the SystemCreateDate property.</param> /// <param name="systemEditDate">Initial value of the SystemEditDate property.</param> /// <param name="memberId">Initial value of the MemberId property.</param> /// <param name="alternateId">Initial value of the AlternateId property.</param> /// <param name="displayName">Initial value of the DisplayName property.</param> /// <param name="overrideFlag">Initial value of the OverrideFlag property.</param> public static AlternateCategoryId CreateAlternateCategoryId(global::System.Int64 id, global::System.DateTime systemCreateDate, global::System.DateTime systemEditDate, global::System.Int64 memberId, global::System.Int64 alternateId, global::System.String displayName, global::System.Boolean overrideFlag) { AlternateCategoryId alternateCategoryId = new AlternateCategoryId(); alternateCategoryId.Id = id; alternateCategoryId.SystemCreateDate = systemCreateDate; alternateCategoryId.SystemEditDate = systemEditDate; alternateCategoryId.MemberId = memberId; alternateCategoryId.AlternateId = alternateId; alternateCategoryId.DisplayName = displayName; alternateCategoryId.OverrideFlag = overrideFlag; return alternateCategoryId; }
/// <summary> /// Deprecated Method for adding a new object to the AlternateCategoryIds EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToAlternateCategoryIds(AlternateCategoryId alternateCategoryId) { base.AddObject("AlternateCategoryIds", alternateCategoryId); }
protected override void EntityClear() { _entityAlternateCategoryId = new AlternateCategoryId(); _entityAlternateCategoryId.Id = -1; _entityAlternateCategoryId.SystemCreateDate = new DateTime(); _entityAlternateCategoryId.SystemEditDate = new DateTime(); _entityAlternateCategoryId.MemberId = -1; _entityAlternateCategoryId.CategoryId = null; _entityAlternateCategoryId.AlternateId = -1; _entityAlternateCategoryId.DisplayName = string.Empty; _entityAlternateCategoryId.OverrideFlag = false; }
//========================================================= // PRIVATE FUNCTIONS //========================================================= protected ProviderAlternateCategoryId(AlternateCategoryId anAltType) : base(anAltType) { }
protected internal static ProviderAlternateCategoryId _EntityToProvider(AlternateCategoryId alternateIdEntiy) { return new ProviderAlternateCategoryId(alternateIdEntiy); }