采用全新的数据库架构

This commit is contained in:
yubaolee
2015-10-26 21:58:12 +08:00
parent 366d3a5351
commit 13d44f28b6
91 changed files with 21208 additions and 9430 deletions

View File

@@ -1,25 +1,19 @@
using System;
namespace OpenAuth.Domain
{
public partial class User
{
public string UserId { get; set; }
public string Account { get; set; }
public string Password { get; set; }
public string RealName { get; set; }
public string RoleId { get; set; }
public bool Enabled { get; set; }
public bool DeleteMark { get; set; }
public void CheckLogin(string password)
{
if(this.Password != password)
throw new Exception("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
if(!this.Enabled)
throw new Exception("<22>û<EFBFBD><C3BB>Ѿ<EFBFBD><D1BE><EFBFBD>ͣ<EFBFBD><CDA3>");
if (DeleteMark)
throw new Exception("<22><><EFBFBD>˺<EFBFBD><CBBA>Ѿ<EFBFBD><D1BE><EFBFBD>ɾ<EFBFBD><C9BE>");
}
}
}
using System;
using System.Collections.Generic;
namespace OpenAuth.Domain
{
public partial class User
{
public int Id { get; set; }
public string Account { get; set; }
public string Password { get; set; }
public string Name { get; set; }
public int Sex { get; set; }
public int Status { get; set; }
public int Type { get; set; }
public string BizCode { get; set; }
public System.DateTime CreateTime { get; set; }
public int CreateId { get; set; }
}
}