Skip to content

Commit 5a7ef49

Browse files
committed
规范 Base 类名命名
1 parent 791fdf8 commit 5a7ef49

22 files changed

+48
-48
lines changed

src/Senparc.Scf.Repository/AccountPayLogRepository.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66

77
namespace Senparc.Scf.Repository
88
{
9-
public interface IAccountPayLogRepository : IBaseClientRepository<AccountPayLog>
9+
public interface IAccountPayLogRepository : IClientRepositoryBase<AccountPayLog>
1010
{
1111
}
1212

13-
public class AccountPayLogRepository : BaseClientRepository<AccountPayLog>, IAccountPayLogRepository
13+
public class AccountPayLogRepository : ClientRepositoryBase<AccountPayLog>, IAccountPayLogRepository
1414
{
1515

1616
}

src/Senparc.Scf.Repository/AccountRepository.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
namespace Senparc.Scf.Repository
44
{
5-
public interface IAccountRepository : IBaseClientRepository<Account>
5+
public interface IAccountRepository : IClientRepositoryBase<Account>
66
{
77
}
88

9-
public class AccountRepository : BaseClientRepository<Account>, IAccountRepository
9+
public class AccountRepository : ClientRepositoryBase<Account>, IAccountRepository
1010
{
1111

1212
}

src/Senparc.Scf.Repository/AdminUserInfoRepository.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
namespace Senparc.Scf.Repository
44
{
5-
public interface IAdminUserInfoRepository : IBaseClientRepository<AdminUserInfo>
5+
public interface IAdminUserInfoRepository : IClientRepositoryBase<AdminUserInfo>
66
{
77
}
88

9-
public class AdminUserInfoRepository : BaseClientRepository<AdminUserInfo>, IAdminUserInfoRepository
9+
public class AdminUserInfoRepository : ClientRepositoryBase<AdminUserInfo>, IAdminUserInfoRepository
1010
{
1111

1212
}

src/Senparc.Scf.Repository/BaseRepoisitory/BaseClientRepository.cs renamed to src/Senparc.Scf.Repository/BaseRepoisitory/ClientRepositoryBase.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
namespace Senparc.Scf.Repository
66
{
7-
public interface IBaseClientRepository<T> : IBaseRepository<T> where T : EntityBase, new() // global::System.Data.Objects.DataClasses.EntityObject, new()
7+
public interface IClientRepositoryBase<T> : IRepositoryBase<T> where T : EntityBase, new() // global::System.Data.Objects.DataClasses.EntityObject, new()
88
{
99
ISqlClientFinanceData DB { get; }
1010
}
1111

12-
public class BaseClientRepository<T> : BaseRepository<T>, IBaseClientRepository<T> where T : EntityBase, new() // global::System.Data.Objects.DataClasses.EntityObject, new()
12+
public class ClientRepositoryBase<T> : RepositoryBase<T>, IClientRepositoryBase<T> where T : EntityBase, new() // global::System.Data.Objects.DataClasses.EntityObject, new()
1313
{
1414
public ISqlClientFinanceData DB
1515
{
@@ -19,8 +19,8 @@ public ISqlClientFinanceData DB
1919
}
2020
}
2121

22-
public BaseClientRepository() : this(null) { }
23-
public BaseClientRepository(ISqlClientFinanceData db)
22+
public ClientRepositoryBase() : this(null) { }
23+
public ClientRepositoryBase(ISqlClientFinanceData db)
2424
{
2525
//System.Web.HttpContext.Current.Response.Write("-"+this.GetType().Name + "<br />");
2626

src/Senparc.Scf.Repository/BaseRepoisitory/BaseData.cs renamed to src/Senparc.Scf.Repository/BaseRepoisitory/DataBase.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22

33
namespace Senparc.Scf.Repository
44
{
5-
public interface IBaseData
5+
public interface IDataBase
66
{
77
ISqlBaseFinanceData BaseDB { get; set; }
88

99
void CloseConnection();
1010
}
1111

1212

13-
public class BaseData : IBaseData
13+
public class DataBase : IDataBase
1414
{
1515
public ISqlBaseFinanceData BaseDB { get; set; }
1616

17-
public BaseData(ISqlBaseFinanceData baseDB)
17+
public DataBase(ISqlBaseFinanceData baseDB)
1818
{
1919
BaseDB = baseDB;
2020
}

src/Senparc.Scf.Repository/BaseRepoisitory/IBaseRepository.cs renamed to src/Senparc.Scf.Repository/BaseRepoisitory/IRepositoryBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
namespace Senparc.Scf.Repository
1010
{
11-
public interface IBaseRepository<T> : IBaseData, IAutoDI where T : EntityBase, new()// global::System.Data.Objects.DataClasses.EntityObject, new()
11+
public interface IRepositoryBase<T> : IDataBase, IAutoDI where T : EntityBase, new()// global::System.Data.Objects.DataClasses.EntityObject, new()
1212
{
1313
bool IsInsert(T obj);
1414

src/Senparc.Scf.Repository/BaseRepoisitory/BaseRepository.cs renamed to src/Senparc.Scf.Repository/BaseRepoisitory/RepositoryBase.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010

1111
namespace Senparc.Scf.Repository
1212
{
13-
public class BaseRepository<T> : BaseData, IBaseRepository<T> where T : EntityBase, new() //global::System.Data.Objects.DataClasses.EntityObject, new()
13+
public class RepositoryBase<T> : DataBase, IRepositoryBase<T> where T : EntityBase, new() //global::System.Data.Objects.DataClasses.EntityObject, new()
1414
{
1515
protected string _entitySetName;
1616

17-
public BaseRepository() :
17+
public RepositoryBase() :
1818
this(null)
1919
{
2020
}
2121

22-
public BaseRepository(ISqlBaseFinanceData db) :
22+
public RepositoryBase(ISqlBaseFinanceData db) :
2323
base(db)
2424
{
2525
//System.Web.HttpContext.Current.Response.Write("-"+this.GetType().Name + "<br />");

src/Senparc.Scf.Repository/FeedBackRepository.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
namespace Senparc.Scf.Repository
44
{
5-
public interface IFeedBackRepository : IBaseClientRepository<FeedBack>
5+
public interface IFeedBackRepository : IClientRepositoryBase<FeedBack>
66
{
77
}
88

9-
public class FeedBackRepository : BaseClientRepository<FeedBack>, IFeedBackRepository
9+
public class FeedBackRepository : ClientRepositoryBase<FeedBack>, IFeedBackRepository
1010
{
1111
}
1212
}

src/Senparc.Scf.Repository/PointsLogRepository.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
namespace Senparc.Scf.Repository
44
{
5-
public interface IPointsLogRepository : IBaseClientRepository<PointsLog>
5+
public interface IPointsLogRepository : IClientRepositoryBase<PointsLog>
66
{
77
}
88

9-
public class PointsLogRepository : BaseClientRepository<PointsLog>, IPointsLogRepository
9+
public class PointsLogRepository : ClientRepositoryBase<PointsLog>, IPointsLogRepository
1010
{
1111

1212
}

src/Senparc.Scf.Repository/SystemConfigRepository.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
namespace Senparc.Scf.Repository
44
{
5-
public interface ISystemConfigRepository : IBaseClientRepository<SystemConfig>
5+
public interface ISystemConfigRepository : IClientRepositoryBase<SystemConfig>
66
{
77
}
88

9-
public class SystemConfigRepository : BaseClientRepository<SystemConfig>, ISystemConfigRepository
9+
public class SystemConfigRepository : ClientRepositoryBase<SystemConfig>, ISystemConfigRepository
1010
{
1111

1212
}

0 commit comments

Comments
 (0)