Esempio n. 1
0
        internal virtual List <T> GetList <T>(Dictionary <string, object> parameters)
        {
            var     objectTypeInstance = Activator.CreateInstance <T>();
            DBLayer dbLayer            = new DBLayer();

            DataSet ds = dbLayer.GetDataSet("spGet" + ModelName, DataUtilities.GetParameterListForFetch(objectTypeInstance as DataModel, parameters));

            dbLayer.Dispose();

            return(DataUtilities.CreateObjectListFromDataSet <T> (ds, objectTypeInstance));
        }