This question is locked. New answers and comments are not allowed.
Hi all,
Just started looking at the Fluent API docs and ... as an self-respecting newb ... ran the example (and there was much rejoicing).
Now ... as a dedicated hack ... I decided to start playing with the example class ... and added and removed properties ... and reran ... expecting to see the table change to my evil design (and there was much head scratching).
I noticed that the sql dbase table generated reflects the same structure as the original ... even though the class has been altered significantly.
Is there just something I am missing? Deleting the Dbase completely and rerunning comes up with the exact original table. Obviously - something is persisting and I lack the technical knowledge to know what to slay and how to slay it. Anyone have a rftm link to this ...
i.e. some metadata file generated somewhere that one must clean up as part of the process of violently changing the class to make the new table reflect the new mappings.
In terms of source code ... it is the exact same as the example. Just curious ... since it does seem quite useful early in a project when there is great entrophy to have the code first approach automagically keep up with the entrophy without delving into the need to go mucking in the dbase ...
Just started looking at the Fluent API docs and ... as an self-respecting newb ... ran the example (and there was much rejoicing).
Now ... as a dedicated hack ... I decided to start playing with the example class ... and added and removed properties ... and reran ... expecting to see the table change to my evil design (and there was much head scratching).
I noticed that the sql dbase table generated reflects the same structure as the original ... even though the class has been altered significantly.
Is there just something I am missing? Deleting the Dbase completely and rerunning comes up with the exact original table. Obviously - something is persisting and I lack the technical knowledge to know what to slay and how to slay it. Anyone have a rftm link to this ...
i.e. some metadata file generated somewhere that one must clean up as part of the process of violently changing the class to make the new table reflect the new mappings.
In terms of source code ... it is the exact same as the example. Just curious ... since it does seem quite useful early in a project when there is great entrophy to have the code first approach automagically keep up with the entrophy without delving into the need to go mucking in the dbase ...