ConsumerOpenIdsDbconn.cs 649 B

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