AggregateRootRepository

This commit is contained in:
2881099
2022-09-02 16:14:48 +08:00
parent df18373ee5
commit ab9db8270d
7 changed files with 268 additions and 38 deletions

View 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);
}
}