Why does Entity Framework select all tables, columns and other info -
after using profiler noticed our application load slower because of query entity framework executes.
select [extent1].[table_name] [table_name], [extent1].[column_name] [column_name], [extent1].[table_catalog] [table_catalog], [extent1].[table_schema] [table_schema], [extent1].[ordinal_position] [ordinal_position], [extent1].[column_default] [column_default], [extent1].[is_nullable] [is_nullable], [extent1].[data_type] [data_type], [extent1].[character_maximum_length] [character_maximum_length], [extent1].[character_octet_length] [character_octet_length], [extent1].[numeric_precision] [numeric_precision], [extent1].[numeric_precision_radix] [numeric_precision_radix], [extent1].[numeric_scale] [numeric_scale], [extent1].[datetime_precision] [datetime_precision], [extent1].[character_set_catalog] [character_set_catalog], [extent1].[character_set_schema] [character_set_schema], [extent1].[character_set_name] [character_set_name], [extent1].[collation_catalog] [collation_catalog], [extent1].[collation_schema] [collation_schema], [extent1].[collation_name] [collation_name], [extent1].[domain_catalog] [domain_catalog], [extent1].[domain_schema] [domain_schema], [extent1].[domain_name] [domain_name] [information_schema].[columns] [extent1]
so query information database. we're wondering why , if possible stop or make faster.
this way ef making sure model in app valid , model schema in sync db schema. ef works way
Comments
Post a Comment