/// <summary> /// Create a new StateProvince object. /// </summary> /// <param name="stateProvinceID">Initial value of the StateProvinceID property.</param> /// <param name="stateProvinceCode">Initial value of the StateProvinceCode property.</param> /// <param name="countryRegionCode">Initial value of the CountryRegionCode property.</param> /// <param name="isOnlyStateProvinceFlag">Initial value of the IsOnlyStateProvinceFlag property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="territoryID">Initial value of the TerritoryID property.</param> /// <param name="rowguid">Initial value of the rowguid property.</param> /// <param name="modifiedDate">Initial value of the ModifiedDate property.</param> public static StateProvince CreateStateProvince(global::System.Int32 stateProvinceID, global::System.String stateProvinceCode, global::System.String countryRegionCode, global::System.Boolean isOnlyStateProvinceFlag, global::System.String name, global::System.Int32 territoryID, global::System.Guid rowguid, global::System.DateTime modifiedDate) { StateProvince stateProvince = new StateProvince(); stateProvince.StateProvinceID = stateProvinceID; stateProvince.StateProvinceCode = stateProvinceCode; stateProvince.CountryRegionCode = countryRegionCode; stateProvince.IsOnlyStateProvinceFlag = isOnlyStateProvinceFlag; stateProvince.Name = name; stateProvince.TerritoryID = territoryID; stateProvince.rowguid = rowguid; stateProvince.ModifiedDate = modifiedDate; return stateProvince; }
/// <summary> /// Deprecated Method for adding a new object to the StateProvinces EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToStateProvinces(StateProvince stateProvince) { base.AddObject("StateProvinces", stateProvince); }