Loveboke

人生是一场独自修行的道路!

通用函数调用返回Model

var x = (object)null;

x = StocktakeBll.GetMunicipalRegionData<Repertory>("");


 #region 

 /// <summary>

  ///

  /// </summary>

  /// <returns></returns>

  public IList<T> GetMunicipalRegionData<T>(string contractId = "") where T : class, new()

  {           

    string where = " ";

    if (contractId != "")

      where += " State=" + contractId + "";

    return StocktakeBll.QueryAllByCondtion<T>(typeof(T), where);

   }

#endregion


L最新评论
    还没有评论!

P发布评论