CodeFluent Entities Documentation
Getting Started
Send comments on this topic.
CodeFluent Entities > Developer Guide > Developing Office Lists (Access & Excel) > Getting Started

Glossary Item Box

This article details the basic steps to create a Microsoft Office Lists for Access and Excel.

1. Define your business logic

Define your business logic in a platform independent model. To design this model you can use the CodeFluent Entities Modeler, integrated into Visual Studio 2008 and/or 2010, which lets graphically create entities, define properties, rules, instances, etc. Likewise, since a CodeFluent Entities model is nothing but XML, you can write it yourself a XML Editor such as Visual Studio.

Information on available design concepts is available in the Architect Guide.

In this section you'll find all what you need to design your application using CodeFluent Entities concepts: Entities, Properties, Methods, Rules, Views, Messages, Generating, Built-in Aspects, and so on.

2. Set-up your Visual Studio solution

Once you designed the business logic of your application, but before generating actual code, you need to set-up your Visual Studio solution which you'll use to develop your application.

 

At this stage you now have the infrastructure of your project.

More information on this step is available in the Microsoft Visual Studio Integration article.

3. Configure your producers

Now that you have Visual Studio projects which will allow you to view, and work with the generated sources, let's actually generate those sources!

This is where the Generating concept comes in: producers translate the platform independent model into actual, functional, code.

Select the producers you need to build your application, which in the case of a rich client application are:

Configure those producers so:

Need an example?

If using the CodeFluent Builder tool, check-out the Developing Microsoft Office Synchronizable Lists tutorial.

 

Once this is done, use the CodeFluent Meta Compiler tool to generate your application!

If you're using the CodeFluent Entities Modeler, all you have to do is right click on your CodeFluent Entities project and click Build.

The builder will mount an in-memory representation of your model and then call each of the defined producers to translate this meta-model.

Note: This meta-model step is a key feature in CodeFluent Entities, thanks to the CodeFluent API or Patterns, you'll be able to interact on it and apply changes application wide, throughout all layers of your application, such as adding tracking properties, or extra-special-methods to all your entities. See Dynamic Designing, and Built-in Aspects for more information.

4. Compile

Now that your sources were generated, add the needed references and compile them!

If using the CodeFluent Entities Modeler, references are added automatically, but if using CodeFluent Meta Compiler only, you'll have to do it yourself just like old times!

As you can see, nothing more is needed: generated sources are 100% functional.

5. Configure

Now that all application blocks are ready to be used, you need to configure them so Office clients (Access and Excel) can use them.

Check-out the Editing Data With Excel And Access section to see how it goes: how it works, basic principles as well as configuration info and how to troubleshoot problems.