IBaseDal.cs
public interface IBaseDal where T:class,new()
{
///
/// 添加信息
///
///
///
int InsertInfos(T model);
///
/// 删除信息
///
///
///
int DeleteInfos(string id);
///
/// 修改信息
///
///
///
int UpdateInfos(T model);
///
/// 通过id获取信息
///
///
///
T GetInfoById(T model);
}
CityType.cs
public interface CityType:IBaseDal<ProductMades>
{
List<ProductMades> GetCityType();
}
IProductInfosDal.cs
public interface IProductInfosDal:IBaseDal<ProductInfos>
{
/// <summary>
/// json表示条件
/// </summary>
/// <param name="json"></param>
/// <returns></returns>
DataModel ShowBinds(string json);
}