UserInfoController.cs 714 B

123456789101112131415161718192021222324252627282930313233343536
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Data;
  4. using System.Linq;
  5. using System.Text;
  6. namespace lyfzAttendance.Controller
  7. {
  8. public class UserInfoController: LYFZ.DAL.BaseDataOperate
  9. {
  10. #region 属性和字段
  11. public Model.UserInfo CurrentModel
  12. {
  13. get { return new Model.UserInfo(); }
  14. }
  15. public override object ObjModel
  16. {
  17. get
  18. {
  19. return this.CurrentModel;
  20. }
  21. }
  22. public override string TableName { get; set; } = "tb_ErpUser";
  23. public override string TableFieldNameString { get; set; } = "";
  24. #endregion
  25. #region 查询数据
  26. public Model.UserInfo DataRowToModel(DataRow row)
  27. {
  28. return DataRowToModelObject(row) as Model.UserInfo;
  29. }
  30. #endregion
  31. }
  32. }