Esempio n. 1
0
        DataTableModel GetDataTable(string mType, string dType)
        {
            dynamic handler = IrmaServiceSystem.GetServiceListModel(mType, dType);

            MethodInfo[] AllMethods = handler.GetType().GetMethods();
            MethodInfo   fun        = AllMethods.FirstOrDefault(mi => mi.Name == "GetQueryable" && mi.GetParameters().Count() == 1);

            DataTableModel dt = new DataTableModel(1, fun.Invoke(handler, new string[] { "Id" }));

            return(dt);
        }