Пример #1
0
        public bool Insert(string StateProvinceCode, string CountryRegionCode, bool IsOnlyStateProvince, string Name, Guid RowGuid, DateTime ModifiedDate)
        {
            StateProvinceDAC stateprovinceComponent = new StateProvinceDAC();
            int StateProvinceId = 0;

            return(stateprovinceComponent.InsertNewStateProvince(ref StateProvinceId, StateProvinceCode, CountryRegionCode, IsOnlyStateProvince, Name, RowGuid, ModifiedDate));
        }
Пример #2
0
        public bool Insert(StateProvince stateprovince)
        {
            int autonumber = 0;
            StateProvinceDAC stateprovinceComponent = new StateProvinceDAC();
            bool             endedSuccessfuly       = stateprovinceComponent.InsertNewStateProvince(ref autonumber, stateprovince.StateProvinceCode, stateprovince.CountryRegionCode, stateprovince.IsOnlyStateProvince, stateprovince.Name, stateprovince.RowGuid, stateprovince.ModifiedDate);

            if (endedSuccessfuly)
            {
                stateprovince.StateProvinceId = autonumber;
            }
            return(endedSuccessfuly);
        }
Пример #3
0
 public bool Insert(StateProvince stateprovince)
 {
     int autonumber = 0;
     StateProvinceDAC stateprovinceComponent = new StateProvinceDAC();
     bool endedSuccessfuly = stateprovinceComponent.InsertNewStateProvince( ref autonumber,  stateprovince.StateProvinceCode,  stateprovince.CountryRegionCode,  stateprovince.IsOnlyStateProvince,  stateprovince.Name,  stateprovince.RowGuid,  stateprovince.ModifiedDate);
     if(endedSuccessfuly)
     {
         stateprovince.StateProvinceId = autonumber;
     }
     return endedSuccessfuly;
 }
Пример #4
0
        public bool Insert( string StateProvinceCode,  string CountryRegionCode,  bool IsOnlyStateProvince,  string Name,  Guid RowGuid,  DateTime ModifiedDate)
        {
            StateProvinceDAC stateprovinceComponent = new StateProvinceDAC();
            int StateProvinceId = 0;

            return stateprovinceComponent.InsertNewStateProvince( ref StateProvinceId,  StateProvinceCode,  CountryRegionCode,  IsOnlyStateProvince,  Name,  RowGuid,  ModifiedDate);
        }