using FreeSql;
using System;
using System.Collections.Generic;
using System.Text;
public static class IFreeSqlExtenssions {
///
/// 返回默认仓库类
///
///
///
///
///
public static IRepository GetRepository(this IFreeSql that) where TEntity : class {
return new DefaultRepository(that);
}
///
/// 返回仓库类,适用 Insert 方法无须返回插入的数据
///
///
///
///
public static IRepository GetGuidRepository(this IFreeSql that) where TEntity : class {
return new GuidRepository(that);
}
}