纽威
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

23 lines
529 B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NFine.Repository
{
/// 通用的Repository工厂
/// </summary>
/// <typeparam name="T"></typeparam>
public class RepositoryFactory<T> where T : new()
{
/// <summary>
/// 定义通用的Repository
/// </summary>
/// <returns></returns>
public IRepository<T> Repository()
{
return new Repository<T>();
}
}
}