Пример #1
0
        public void GenerateDynamicListModelType <TContext>(Type entityType)
            where TContext : DbContext, new()
        {
            //add reference to entity assembly
            _codeCompileUnit.AddReference(entityType);

            //build dynamic list model
            _dynamicListTypeBuilder.BuildDynamicListModel <TContext>(entityType);
        }