mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-11-08 18:34:44 +08:00
解决.NET 4.5与EF6 DatabaseGeneratedOption冲突问题
This commit is contained in:
@@ -6,7 +6,7 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace OpenAuth.Domain.Interface
|
||||
{
|
||||
public interface IOrgRepository
|
||||
public interface IOrgRepository :IRepository<Org>
|
||||
{
|
||||
IEnumerable<Org> LoadOrgs();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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 = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user