添加用户实体
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.Data.Auditing
|
||||
{
|
||||
public interface IAuditedObject : ICreationAuditedObject, IModificationAuditedObject
|
||||
{
|
||||
}
|
||||
|
||||
public interface IAuditedObject<TUser> : IAuditedObject, ICreationAuditedObject<TUser>, IModificationAuditedObject<TUser>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.Data.Auditing
|
||||
{
|
||||
public interface ICreationAuditedObject : IHasCreationTime, IMayHaveCreator
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public interface ICreationAuditedObject<TCreator> : ICreationAuditedObject, IMayHaveCreator<TCreator>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.Data.Auditing
|
||||
{
|
||||
public interface IDeletionAuditedObject : IHasDeletionTime
|
||||
{
|
||||
long? DeleterId { get; }
|
||||
}
|
||||
|
||||
public interface IDeletionAuditedObject<TUser> : IDeletionAuditedObject
|
||||
{
|
||||
|
||||
TUser Deleter { get; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.Data.Auditing
|
||||
{
|
||||
public interface IFullAuditedObject : IAuditedObject, IDeletionAuditedObject
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public interface IFullAuditedObject<TUser> : IAuditedObject<TUser>, IFullAuditedObject, IDeletionAuditedObject<TUser>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using System;
|
||||
|
||||
namespace Yi.Framework.Data.Auditing;
|
||||
|
||||
|
||||
public interface IHasCreationTime
|
||||
{
|
||||
|
||||
DateTime CreationTime { get; }
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Yi.Framework.Data.Entities;
|
||||
|
||||
namespace Yi.Framework.Data.Auditing
|
||||
{
|
||||
public interface IHasDeletionTime : ISoftDelete
|
||||
{
|
||||
DateTime? DeletionTime { get; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.Data.Auditing
|
||||
{
|
||||
public interface IHasEntityVersion
|
||||
{
|
||||
int EntityVersion { get; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
|
||||
namespace Yi.Framework.Data.Auditing;
|
||||
|
||||
|
||||
public interface IHasModificationTime
|
||||
{
|
||||
|
||||
DateTime? LastModificationTime { get; }
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
|
||||
namespace Yi.Framework.Data.Auditing;
|
||||
|
||||
public interface IMayHaveCreator<TCreator>
|
||||
{
|
||||
TCreator Creator { get; }
|
||||
}
|
||||
|
||||
public interface IMayHaveCreator
|
||||
{
|
||||
long? CreatorId { get; }
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.Data.Auditing
|
||||
{
|
||||
public interface IModificationAuditedObject : IHasModificationTime
|
||||
{
|
||||
long? LastModifierId { get; }
|
||||
}
|
||||
|
||||
public interface IModificationAuditedObject<TUser> : IModificationAuditedObject
|
||||
{
|
||||
TUser LastModifier { get; }
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
|
||||
namespace Yi.Framework.Data.Auditing;
|
||||
|
||||
public interface IMustHaveCreator<TCreator> : IMustHaveCreator
|
||||
{
|
||||
TCreator Creator { get; }
|
||||
}
|
||||
|
||||
public interface IMustHaveCreator
|
||||
{
|
||||
long CreatorId { get; }
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.Data.Entities
|
||||
{
|
||||
public interface IOrderNum
|
||||
{
|
||||
int OrderNum { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user