asp.net mvc - Models are not being generated by Entity Data Model Wizard -


i go through entity data model wizard, select existing database , select 2 tables (invoice_header , invoice_line). after completing wizard, empty diagram, , don't see models associated tables selected. invoicesmodel name typed in when going through wizard. expecting see models 2 tables. there no errors, , i've done several times, using several different databases , tables, same result. causes this?

update: i'm having problem on teradata instance. problem not occur when use tables on sql instance.

models

i found answer here: issues teradata provider

database objects not included in model

ado.net entity framework can't work types cannot used in tables. therefore, >database objects can included in model subject following >restrictions:

table columns must based upon supported types. stored procedures must have parameters of supported types. if parameter has >unsupported type, stored procedure excluded model. tables must have inferable entity key. entity framework requires every entity have @ least 1 key column. entity key >is inferred based on table's primary key. if table has no primary key, entity key >includes not null columns. if table has neither primary key nor not null columns, >is excluded model.

entity framework requires primary keys not contain binary columns. if primary >key fails in condition, entity excluded model.

to test, created simple table 2 fields, , wizard created models


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -