mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-12-20 00:25:48 +08:00
AggregateRootRepository
This commit is contained in:
12
FreeSql.Repository/FreeSqlRepositoryExtensions.cs
Normal file
12
FreeSql.Repository/FreeSqlRepositoryExtensions.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using FreeSql;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Linq.Expressions;
|
||||
|
||||
public static class FreeSqlRepositoryExtensions
|
||||
{
|
||||
public static IBaseRepository<TEntity> GetAggregateRootRepository<TEntity>(this IFreeSql that) where TEntity : class
|
||||
{
|
||||
return new AggregateRootRepository<TEntity>(that);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user