Ejemplo n.º 1
0
 public IDataShell <AccountDBModel> Login(AccountDBModel account)
 {
     using (var conn = ConnFactory.GetUserConn())
         using (var dal = new UserAccountTDAL(conn))
         {
             var result = dal.GetSingle(account);
             return(result);
         }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 获取单个记录
 /// </summary>
 /// <param name="account"></param>
 /// <returns></returns>
 public IDataShell <AccountDBModel> Get(AccountDBModel account)
 {
     using (var conn = ConnFactory.GetUserConn())
     {
         using (var dal = new UserAccountTDAL(conn))
         {
             var result = dal.GetSingle(account);
             return(result);
         }
     }
     //return "未能提取到数据".Fail<BimUser>();
 }