Storing Custom Files In Your CodeFluent Entities Project
By default a CodeFluent Entities project contains the following elements:
- a Default surface, and its part “Default.Surface.cfp” containing layout information (shapes, positions, etc.)
- the project part named by your default namespace (e.g. “MyApplication.cfp” in the example above) and which contains the definition of all your entities, properties, rules, forms, views, etc.
Projects can contain multiple surfaces and multiple parts, which can be added by clicking on the Surfaces and Parts folder of your project.
Folders in your CodeFluent Entities project are virtual. If you open the corresponding project folder in Windows Explorer here’s what you’ll see:
- The project file (<ProjectName>.cfxproj)
- The parts (<DefaultNamespace>.cfp and the other ones you created)
- The surface parts (Default.Surface.cfp and possibly the other ones you created)
CodeFluent Entities projects also contain a “Files” folder which can contain any extra-files. Drop files in your project folder, and then using Solution Explorer’s “Show All Files” button and “Include in project” option.
- If you place a CFP file in your project folder, including it to your project will add it to the Parts folder,
- If you place a XML file in your project folder which contains a valid root project node, including it to your project will automatically add it to the Parts folder,
- Other than that, any extra-file goes in the Files folder.