예제 #1
0
        public POlineVM(ProductVM viewModel)
        {
            IsNew = true;

            Description = viewModel.TheEntity.Description;

            TheEntity = new POline
            {
                ProductID = viewModel.TheEntity.ProductID,
                Cost      = viewModel.TheEntity.Cost
            };
        }
예제 #2
0
 public POlineVM()
 {
     // Initialise the entity or inserts will fail
     TheEntity = new POline();
 }