Skip to main content

entityframeworkextensions-class

Contains some extensions for using EasyQuery with Entity Framework.

public static class Korzh.EasyQuery.EntityFramework.EntityFrameworkExtensions

Assembly: Korzh.EasyQuery.EntityFramework6.dll

Static Methods

NameTypeDescription
LoadFromDbContext(this DbModel dbModel, DbContext context)voidLoads the model from a database context.
LoadFromDbContext(this DbModel dbModel, DbContext context, SqlFormats formats)voidLoads the model from a database context.
LoadFromDbContext(this DbModel dbModel, DbContext context, DbContextModelExtractorOptions options)voidLoads the model from a database context.
LoadFromEdmx(this [DbModel](/korzh-easyquery-db-namespace/dbmodel-class) model, `string` path, [EdmxModelExtractorOptions](/korzh-easyquery-entityframework-namespace/edmxmodelextractoroptions-class) options = null)voidLoads DataModel from EDMX file
LoadFromEdmx(this [DbModel](/korzh-easyquery-db-namespace/dbmodel-class) model, `XDocument` doc, [EdmxModelExtractorOptions](/korzh-easyquery-entityframework-namespace/edmxmodelextractoroptions-class) options = null)voidLoads DataModel from EDMX file