コード例 #1
0
        public void DeleteData(ModelNotifiedForCustomerDemographics modelNotifiedForCustomerDemographics, out string error)
        {
            CustomerDemographicsGenericREST CustomerDemographicsGenericREST = new CustomerDemographicsGenericREST(wpfConfig);
            DeleteCustomerDemographicsView  deleteCustomerDemographicsView  = new DeleteCustomerDemographicsView();

            Cloner.CopyAllTo(typeof(ModelNotifiedForCustomerDemographics), modelNotifiedForCustomerDemographics, typeof(DeleteCustomerDemographicsView), deleteCustomerDemographicsView);
            CustomerDemographicsGenericREST.Delete(deleteCustomerDemographicsView, out error);
        }
コード例 #2
0
        public void DeleteData(ModelNotifiedForCustomerDemographics modelNotifiedForCustomerDemographics, out string error)
        {
            CustomerDemographicsBsn  bsn    = new CustomerDemographicsBsn(wpfConfig);
            CustomerDemographicsInfo dbItem = new CustomerDemographicsInfo();

            Cloner.CopyAllTo(typeof(ModelNotifiedForCustomerDemographics), modelNotifiedForCustomerDemographics, typeof(CustomerDemographicsInfo), dbItem);
            bsn.DeleteByID(dbItem, out error);
        }
コード例 #3
0
        public void AddData(ModelNotifiedForCustomerDemographics modelNotifiedForCustomerDemographics, out string error)
        {
            CustomerDemographicsGenericREST CustomerDemographicsGenericREST = new CustomerDemographicsGenericREST(wpfConfig);
            CreateCustomerDemographicsView  createCustomerDemographicsView  = new CreateCustomerDemographicsView();

            Cloner.CopyAllTo(typeof(ModelNotifiedForCustomerDemographics), modelNotifiedForCustomerDemographics, typeof(CreateCustomerDemographicsView), createCustomerDemographicsView);
            CustomerDemographicsGenericREST.Insert(createCustomerDemographicsView, out error);
        }
コード例 #4
0
        public void SaveData(ModelNotifiedForCustomerDemographics modelNotifiedForCustomerDemographics, out string error)
        {
            CustomerDemographicsGenericREST CustomerDemographicsGenericREST = new CustomerDemographicsGenericREST(wpfConfig);
            UpdateCustomerDemographicsView  updateCustomerDemographicsView  = new UpdateCustomerDemographicsView();

            Cloner.CopyAllTo(typeof(ModelNotifiedForCustomerDemographics), modelNotifiedForCustomerDemographics, typeof(UpdateCustomerDemographicsView), updateCustomerDemographicsView);
            CustomerDemographicsGenericREST.Update(updateCustomerDemographicsView, out error);
        }
コード例 #5
0
        public void AddData(ModelNotifiedForCustomerDemographics modelNotifiedForCustomerDemographics, out string error)
        {
            CustomerDemographicsBsn  bsn    = new CustomerDemographicsBsn(wpfConfig);
            CustomerDemographicsInfo dbItem = new CustomerDemographicsInfo();

            Cloner.CopyAllTo(typeof(ModelNotifiedForCustomerDemographics), modelNotifiedForCustomerDemographics, typeof(CustomerDemographicsInfo), dbItem);
            bsn.InsertOne(dbItem, out error);
            modelNotifiedForCustomerDemographics.NewItem = false;
            Cloner.CopyAllTo(typeof(CustomerDemographicsInfo), dbItem, typeof(ModelNotifiedForCustomerDemographics), modelNotifiedForCustomerDemographics);
        }
コード例 #6
0
        public ModelNotifiedForCustomerDemographics GetCustomerDemographicsByID(string CustomerTypeID, out string error)
        {
            error = null;
            CustomerDemographicsBsn              bsn    = new CustomerDemographicsBsn(wpfConfig);
            CustomerDemographicsInfo             dbItem = bsn.GetValueByID(CustomerTypeID);
            ModelNotifiedForCustomerDemographics item   = new ModelNotifiedForCustomerDemographics();

            Cloner.CopyAllTo(typeof(CustomerDemographicsInfo), dbItem, typeof(ModelNotifiedForCustomerDemographics), item);
            return(item);
        }
コード例 #7
0
        public ModelNotifiedForCustomerDemographics GetCustomerDemographicsByID(string CustomerTypeID, out string error)
        {
            error = null;
            CustomerDemographicsGenericREST      CustomerDemographicsGenericREST      = new CustomerDemographicsGenericREST(wpfConfig);
            GetCustomerDemographicsView          getCustomerDemographicsView          = CustomerDemographicsGenericREST.GetByPK <GetCustomerDemographicsView>(CustomerTypeID, out error)[0];
            ModelNotifiedForCustomerDemographics modelNotifiedForCustomerDemographics = new ModelNotifiedForCustomerDemographics();

            Cloner.CopyAllTo(typeof(GetCustomerDemographicsView), getCustomerDemographicsView, typeof(ModelNotifiedForCustomerDemographics), modelNotifiedForCustomerDemographics);
            return(modelNotifiedForCustomerDemographics);
        }