Пример #1
0
 public bool Insert(BusinessEntity businessentity)
 {
     int autonumber = 0;
     BusinessEntityDAC businessentityComponent = new BusinessEntityDAC();
     bool endedSuccessfuly = businessentityComponent.InsertNewBusinessEntity( ref autonumber,  businessentity.RowGuid,  businessentity.ModifiedDate);
     if(endedSuccessfuly)
     {
         businessentity.BusinessEntityId = autonumber;
     }
     return endedSuccessfuly;
 }
Пример #2
0
        public bool Insert( Guid RowGuid,  DateTime ModifiedDate)
        {
            BusinessEntityDAC businessentityComponent = new BusinessEntityDAC();
            int BusinessEntityId = 0;

            return businessentityComponent.InsertNewBusinessEntity( ref BusinessEntityId,  RowGuid,  ModifiedDate);
        }