摘要:
/// <summary> /// Repository base class used with DbContext /// Via http://dotnetspeak.com/index.php/2011/03/repository-pattern-with-entity-framework/ /// </summary> /// <typeparam name="TContext">Type of DdContext that this repositiory operates on</typeparam> publi 阅读全文
摘要:
本人之前一直写的都是Java的Dao和Manager不知.NET中的DAL是否也如下,若有不对,请各位园友们指出,谢谢~先放上接口public interface IDAL<PK, E> where PK : struct where E : class, new() { int Save(E entity); int Update(E entity); int Update(E entity, string[] propertys); int Delete(E entity); ... 阅读全文