1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using DAL; using ENTITY; namespace BLL { public class CustomerInfoManager { CustomerInfoGetway customerInfoGetwayObj = new CustomerInfoGetway(); public void SaveCustomerInfo(CustomerInfo _customerInfoObj) { customerInfoGetwayObj.SaveCustomerInfo(_customerInfoObj); } public List<CustomerInfo> LoadAllCustomerInfo() { return customerInfoGetwayObj.LoadAllCustomerInfo(); } public void UpdateCustomerInfo(CustomerInfo _customerInfoObj) { customerInfoGetwayObj.UpdateCustomerInfo(_customerInfoObj); } public void DeleteCustomerInfo(CustomerInfo _customerInfoObj) { customerInfoGetwayObj.DeleteCustomerInfo(_customerInfoObj); } } } |
Tuesday, November 25, 2014
WPF C# Data Save, Update and Delete with 3 layer architecture - Part 3(BLL Class)
In BLL class library, add two references of DAL & ENTITY, Now use this code.
Labels:
C#,
Entity Framework,
Three Layer Architecture,
WPF
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment