Issue Details (XML | Word | Printable)

Key: DNET-829
Type: Bug Bug
Status: Closed Closed
Resolution: Cannot Reproduce
Priority: Major Major
Assignee: Jiri Cincura
Reporter: Leonard Wennekers
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
.NET Data provider

The generated metadata script by using CreateDatabaseScript from a context only uses defined entity types

Created: 13/Jun/18 08:19 PM   Updated: 27/Jul/18 11:42 AM
Component/s: Entity Framework
Affects Version/s:
Fix Version/s: None

Environment: Firebird 2.5.7

 Description  « Hide
I'm using the following code to generate my metadata script:

var adapter = ((IObjectContextAdapter)context).ObjectContext;
var script = adapter.CreateDatabaseScript();

Earlier versions of the provider were generating the complete script of my database for the tables, views, indexes and triggers.
Now it's only creating the tables I configured as entitytypes. Even the extra tables I create by using the migrator are not
inside the script anymore.

Is this a result of a breaking issue????

Thanks already in advance for your support and kind regards,
Leonard Wennekers

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Jiri Cincura added a comment - 14/Jun/18 06:03 AM
Not sure what you're talking about. EF doesn't know know about triggers or views, so there's definitely nothing like that generated (except like PK index etc.). Better to provide reproducible scenario.

Leonard Wennekers added a comment - 14/Jun/18 03:19 PM
Hello Jiri,
It's easy to reproduce. Take a database with multiple tables with triggers and indexes.
Create for some, not all tables EntityTypes.

Run the following lines on the 5.12 and 6.0 adapter and you will notice the differences.

var adapter = ((IObjectContextAdapter)context).ObjectContext;
var script = adapter.CreateDatabaseScript();

I hope that this is sufficient information for you to reproduce
With kind regards,
Leonard Wennekers

Jiri Cincura added a comment - 14/Jun/18 03:43 PM
Same script for both 5.12.1 and 6.0.0 of provider (on EF 6.2). As expected.