CodeFluent Entities: Saving import configurations
Using CodeFluent Entities you can import existing databases (Access, SQL Server, SQL Server CE, Oracle, MySQL, PostgreSQL) or existing models (Enterprise Architect, XMI, ADO.NET Entity Framework) into CodeFluent Entities models. The idea behind this import feature is that you’ll import your existing line of business once (see the Importers category for more info on this) and then drive your developments from your CodeFluent Entities model, as CodeFluent Entities is a model-first tool.
Recently we added the possibility to save and load import configurations so you can keep your settings and work on your import over and over again until the model imported tastes good.
For instance, let’s create a brand new blank model that we’ll name Northwind.Model and which will be a CodeFluent Entities version of Microsoft’s sample Access 2010 database Northwind.
Right-click and on your project and select “Import an Existing Database or Model…”, select the Access importer, configure it, hit next, next, next and you should get to this screen:
By saving it, we’ll be able to run this import with the exact same configuration without having to configure everything over again.
For instance, by importing the Northwind sample database for Access 2010 keeping the default settings, we get a String table which I don’t want in my .NET application.
Let’s delete all my entities in my model and import over again using the same import configuration (MyImportConfig.cfi):
Once this is done, let’s customize our import settings and specify in the “Table Full Name Filters” the “String” table name that we want to skip:
Let’s save our new config and import over again, tadaaaa, no more String entity: