常用方法
常用方法
常用方法
常用方法
/// <summary> /// 设置实体类型适配器 /// </summary> /// <typeparam name="T"></typeparam> /// <typeparam name="TC"></typeparam> public void SetEntityTypeAdapter <T, TC>() where T : IEntityBase { IEntityFactory efac = GetEntityFactory(); EntityTypeAdapterGenerics <T, TC> s = new EntityTypeAdapterGenerics <T, TC>(); efac.AddAdapter(s); }