MerchantAddInfoDbconn.cs 661 B

12345678910111213141516171819202122232425
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using MySystem.MainModels;
  5. namespace MySystem
  6. {
  7. public class MerchantAddInfoDbconn
  8. {
  9. public readonly static MerchantAddInfoDbconn Instance = new MerchantAddInfoDbconn();
  10. #region 获取单个字段
  11. public MerchantAddInfo Get(int Id)
  12. {
  13. WebCMSEntities db = new WebCMSEntities();
  14. MerchantAddInfo order = db.MerchantAddInfo.FirstOrDefault(m => m.Id == Id);
  15. if (order != null)
  16. {
  17. }
  18. db.Dispose();
  19. return order;
  20. }
  21. #endregion
  22. }
  23. }