Archive for January, 2011

Getting Started

January 28, 2011 1 comment

Thinking about giving a shot to CodeFluent Entities, but you don’t know how to get started? This post might help!

First, you need to register on the CodeFluent Entities web site to automatically get a free license: Register.

When registering you get to choose between two licenses: Express or Personal.


The personal license is for non commercial use, for personal use and non-profit organizations, while the express license allows commercial use but limited to 10 entities. If you want to start with more, check-out our Version and Pricing pages.

Once you’ve registered, sign-in using your freshly created account, and under your personal information, you’ll find a list of your available license keys, its type, as well as a link allowing you to download the latest officially released build.

CodeFluent Entities is shipped in a ZIP file containing two setups:

  • CodeFluentEntitiesCoreSetup.2010.x86.BXXXX.YYY.msi
  • CodeFluentEntitiesModelerSetup.2010.x86.BXXXX.YYY.msi

You don’t have to install both, you can pick the one you want or both.

The Modeler setup installs a designer and new project templates to Microsoft Visual Studio 2008 and/or 2010.

As of today, the Modeler isn’t a final version, but still a release candidate.

On the other hand, the Core setup installs CodeFluent Entities’ build engine: you won’t have a graphical interface, instead you’ll need to write models yourself (see this video to view how it goes). Unlike the modeler which is still pre-release software, the core edition is a 5 year product currently used by customers for enterprise-class projects.

Once you’ve got it all installed start creating .NET applications!

To help you get started, you can find content on our forums (log in using your CodeFluent Entities account), documentation or blog.

See you soon!

Categories: Presentation Tags:


January 27, 2011 1 comment

CodeFluent Entities is a very collaborative tool.

  • A model can be chunked

A CodeFluent Entities model isn’t necessarily a single file, in fact, it can be chunked into what we call “Parts”, each part corresponding in a file, so that several developers can work on the model at the same time.


  • A model can have multiple surfaces

A surface is a canvas on which developers can manipulate entities, properties, and so on. A surface isn’t linked to a part, in fact you can add a surface containing all entities you’re working on.


CodeFluent Entities supports multiple namespaces in a single model. Furthermore, you define that a namespace corresponds a part so each developer can be entitled of specific scope of the application.

Going a little further, the persistence producers can translate those namespaces into actual Schemas (packages or also supported for Oracle) and the Business Object Model producer will actual generate C# namespaces.

  • Source control integration

Last point covered in this post but not the least, CodeFluent Entities projects as well as its produced output support source control servers.


Categories: Presentation Tags:

ASP.NET Membership, Role, and Profile Providers

January 26, 2011 1 comment

Implementing application-level security in your ASP.NET application gets real straightforward using CodeFluent Entities: all you have to do is declare those security entities (user and role), generate over, then configure your ASP.NET site to use the newly generated providers!

Here’s a video showing how to generate and use the generated code:


More information on membership entities is available in the documentation.

By the way, in the video above we’re doing it through XML and the builder, but doing it using the Modeler gets even easier:

  • In the ribbon, click on “Membership Entities”


  • Select where those entities should be placed, and provider options


  • Create provider needed properties in both entities (click auto create mandatory, to create all required ones in a single click!)


  • And there you go! In a few clicks we defined the membership entities in our model!


Categories: ASP.NET, WCF Tags: ,


January 25, 2011 1 comment

CodeFluent Entities supports internationalization by:

  • supporting the standard .NET resource model,
  • providing dynamic localization of data in the persistence layer,
  • being multilingual ready in all parts of the generated application.

The following webcast illustrates how to generate .NET standard resources, and use them with no code behind in ASP.NET web forms:

More information on localization is available in the documentation and through this post.

Sorting And Paging in an ASP.NET Web Site

January 24, 2011 2 comments

By default, loading methods generated by CodeFluent Entities support server-side paging and sorting. Therefore, as an ASP.NET developer, there’s nothing more to do than bind our ObjectDataSource onto those methods.

The following webcast explains the generated code and illustrates how to do it:


Of course those paging and sorting methods can be used in other UI environments such as in Winforms, WPF, Silverlight, etc.

More information on sorting and paging (static sorting, client side sorting, etc.) in CodeFluent Entities can be found in the documentation and in this post.

Categories: ASP.NET Tags: , ,

Handling Concurrency in an ASP.NET Web Site

January 21, 2011 1 comment

CodeFluent Entities provides optimistic concurrency management to your applications, without having you to code a single line of code.

It is activated on all entities by default and can be turned-off on the entire project (use the defaultConcurrencyMode attribute) or per entity (use the concurrencyMode attribute).

Basically, whenever you’re trying to commit a change on an instance which, meanwhile, was updated by another user, you’ll get a CodeFluentConcurrencyException in your application. Supporting concurrency in your web site is as easy as handling this exception in your user interface.

Here’s a webcast showing how concurrency is handled and how it works in the generated layers:

More information on concurrency is also available through this post, and the documentation.

Categories: ASP.NET Tags: ,

Microsoft Access Database Engine 2010 Redistributable

January 20, 2011 36 comments

Back a few years ago, before Microsoft Office 2010, life was a little easier for developers: Office was 32-bit, period.

As you know our days just got a little more complicated since that with Microsoft Office 2010, users can also install a 64-bit native version of Office as well.

This means to us developers that our 32-bit applications using an OLEDB Provider to connect to Excel or Access files might not work anymore since the 32-bit provider might not exist on a 64-bit Office 2010 installation.

In such cases, even though the user has a valid installation of Microsoft Office 2010 installed on his machine, your application might get an error as:

The ‘Microsoft.ACE.OLEDB.12.0’ provider is not registered on the local machine.

Well to address such problems Microsoft released a new redistributable named the “Microsoft Access Database Engine 2010 Redistributable”. This redistributable provides a 32-bit or a 64-bit version of the Microsoft ACE OLEDB Provider which can be downloaded here:

So if as a developer you have a 32-bit application using this OLEDB provider on a machine with a 64-bit installation of Office 2010 (such as the CodeFluent Entities Access Importer), you’ll need to install the 32-bit version of the provider.


Install Tip

Launching the install of a Microsoft ACE OLEDB Provider on a machine with an Office install other than the current one (e.g. 32 on 64) will cause the install to fail. To have it run properly you need to launch it from a command line with the “/passive” argument specified.

  • To install the Microsoft ACE OLEDB Provider 32-bit on a machine running Office 2010 64-bit:

$> AccessDatabaseEngine.exe /passive

  • To install the Microsoft ACE OLEDB Provider 64-bit on a machine running Office 2010 32-bit:

$> AccessDatabaseEngine_X64.exe /passive


Hope this helps,

Carl Anderson