解决.NET 4.5与EF6 DatabaseGeneratedOption冲突问题

This commit is contained in:
yubaolee
2015-10-26 23:55:02 +08:00
parent 13d44f28b6
commit 885d444761
16 changed files with 156 additions and 41 deletions

View File

@@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace OpenAuth.Domain.Interface
{
public interface IOrgRepository
public interface IOrgRepository :IRepository<Org>
{
IEnumerable<Org> LoadOrgs();
}

View File

@@ -1,14 +1,14 @@
using System.Collections.Generic;
using System.Linq;
namespace OpenAuth.Domain.Interface
{
public interface IUserRepository
{
User FindByAccount(string account);
User FindById(string id);
IEnumerable<User> LoadUsers();
}
using System.Collections.Generic;
using System.Linq;
namespace OpenAuth.Domain.Interface
{
public interface IUserRepository :IRepository<User>
{
User FindByAccount(string account);
User FindById(string id);
IEnumerable<User> LoadUsers();
}
}

View File

@@ -21,5 +21,13 @@ namespace OpenAuth.Domain
public System.DateTime CreateTime { get; set; }
public int CreateId { get; set; }
public int SortNo { get; set; }
public Org()
{
HotKey = "";
IconName = "";
BizCode = "";
CustomCode = "";
}
}
}