public BusinessEntityAddress CreateNewBusinessEntityAddress()
        {
            BusinessEntityAddress obj = Container.NewTransientInstance <BusinessEntityAddress>();

            //set up any parameters
            //Container.Persist(ref obj);
            return(obj);
        }
Ejemplo n.º 2
0
        public void Persisted()
        {
            var ca = new BusinessEntityAddress();

            ca.AddressID        = this.AddressID;
            ca.AddressTypeID    = this.AddressType.AddressTypeID;
            ca.BusinessEntityID = AddressFor.BusinessEntityID;
            ca.AddressType      = this.AddressType;
            ca.rowguid          = Guid.NewGuid();
            ca.ModifiedDate     = DateTime.Now;
            Container.Persist(ref ca);
        }
 public static BusinessEntityAddress Updating(BusinessEntityAddress x, IContext context) => x with