Posts Tagged ‘Visual Studio’

Visual Studio Community 2013

November 17, 2014 Leave a comment

Visual Studio Community 2013 is a new, full-featured, and FREE addition to the Visual Studio product lineup.

We are thrilled to announce that CodeFluent Entities runs great on it!

Visual Studio 2013 Community Edition

You can learn more about the new features of Visual Studio Community 2013 here:

You can download the latest version of CodeFluent Entities here, or update your version using the Licensing tool. Remember that you can follow the latest new features and bug fixes of CodeFluent Entities subscribing to this RSS.

Happy downloading,

The R&D Team

Categories: News Tags: ,

CodeFluent Entities and Visual Studio 2013

November 12, 2013 Leave a comment

Good news: Visual Studio 2013 is now available for download and CodeFluent Entities latest build (61214.761) runs great on it!


You can learn the new features of Visual Studio 2013 here:

The Visual Studio 2013 download includes the .NET framework 4.5.1. If you have not seen it yet, you can read about the framework here:

On November 13th, do not miss the Visual Studio 2013 Virtual Launch.  You will discover the breadth and depth of new features and capabilities in the Visual Studio 2013 release.

Note that you can download the latest version of CodeFluent Entities here, or update your version using the Licensing tool.

Remember that you can follow the latest new features and bug fixes of CodeFluent Entities subscribing to this RSS.

Enjoy! :-)
Sabrina Pereira

Categories: News Tags: ,

CodeFluent Entities and Visual Studio 2013 preview

As announced on the //Build/ 2013 event, the Visual Studio 2013 preview is available for download.

Visual Studio 2013 preview sign in

Visual Studio 2013 preview sign in


Visual Studio 2013 home page

Visual Studio 2013 home page

You can discover the new features of Visual Studio 2013 here:

The Visual Studio 2013 download includes the .NET framework 4.5.1 preview, so this is the opportunity to discover it:

Finally, the CodeFluent Entities latest build (61214.714) is compatible with the Visual Studio 2013 preview version.

CodeFluent Entities and Visual Studio 2013 preview

CodeFluent Entities and Visual Studio 2013 preview

You can download the latest version of CodeFluent Entities here, or update your version using the Licensing tool.

Remember that you can follow the latest new features and bug fixes of CodeFluent Entities subscribing to this RSS.

So you can start playing around :)

And if you missed the //Build/ 2013:


Pablo Fernandez Duran

Create Windows Azure Mobile Services in a few minutes thanks to CodeFluent Entities

April 5, 2013 Leave a comment

You may have heard that a lot of new features were added to Windows Azure during the last few months.

Today we will focus on Windows Azure Mobile Services. First of all, what is it?

Long story short, Windows Azure Mobile Services allows you to expose your data through JSON web services. Microsoft provides SDKs for Windows Store and Windows Phone 8 apps, pre-configured projects for iOS and Android, and JavaScript libraries for HTML.

The SDKs offer a large number of methods that provide access to your data stored in Azure.

So let us create a new CodeFluent Entities project. As an example for this article, we will use the “advertising sample” model. I will also add a class library project which will contain our SQL scripts.

We will not need more for this article since we are just going to generate the SQL Azure database with CodeFluent Entities.

First, we will add the SQL Azure Producer to our project. Regarding the configuration of the producer, we will only set the property “Produce Scripts” of the SQL Azure section to “true”.


Also, and this is really important, we will set the “Produce Schema” property to “true”. This property can be found by clicking on the “Advanced Properties” button as shown in the following screenshot.


You may wonder why this is so important. It is simply because Windows Azure Mobile Services will use the name we are going to define for our service to map it with the schema name of our database tables. So choose it carefully!

In this example, we are going to name our schema “sampleadvertising”. To do so, we have to open the properties of our entities and fill in the schema property as shown below.


Once we have updated the “Schema name” property of each entity we want to expose, we can build our project to produce our database.

When the project has been produced, check the database in SQL Azure to make sure we have our custom schema name on our tables.


Let us go back on Windows Azure to create our mobile service. According to the schema name we used in this example, we will name it “sampleadvertising” and we will associate it with the database created earlier.



Now that our service has been created, click on the “Data” tab of our service to “add a table”. Here we will add tables which names are identical to our database tables; for instance, “Campaign”.



Note: for the purpose of this article we will set the authorization for all CRUD methods to “Everyone”. Do not do the same on production especially if you work with sensitive data.

Those tables are not new database tables, they are only created to associate the tables created thanks to CodeFluent Entities with our mobile service and therefore expose our database data.

Once the table is added, we can access our data from everywhere in a standardized format.


From now on, we will show how to use our data from a sample Windows Store application.

First of all, we need to install the Windows Azure Mobile Services SDK which can be found at this address:

Once the SDK is installed, let us add a new project to our solution, a blank C# Windows Store app, named “SampleAdvertising.App”.

Then add a reference to the SDK we have previously installed.


Let us open the file “App.xaml.cs” to register our mobile service. In our case, we will add the following code:

    <br />public static MobileServiceClient MobileService = new MobileServiceClient(&quot;;);     <br />

In this particular example, we will not need to register the application key since we have set the permissions to “everyone”.

Now that our service is registered, I will show you how to consume our database data.

For instance, we will query our table “Customer” to get the customer “SoftDia”. To do so, we will create an async method that will get our “Customer” table. Then we will use the “ReadAsync” method with a query filter based on our “Customer_Name” column.

Finally, we will get a JsonObject from this IJsonValue and display its content in our Visual Studio output.

Here is the code used:

    <br />GetCustomerByName(&quot;SoftDia&quot;);</p>  <p>private async void GetCustomerByName(string customerName)</p>  <p>{</p>  <p>IMobileServiceTable customerTable = App.MobileService.GetTable(&quot;Customer&quot;);</p>  <p>IJsonValue myCustomer = await customerTable.ReadAsync(&quot;$filter=(Customer_Name eq '&quot; + customerName + &quot;')&quot;);</p>  <p>JsonObject myCustomerObject = myCustomer.GetArray()[0].GetObject();</p>  <p>foreach (var item in myCustomerObject)</p>  <p>{</p>  <p>Debug.WriteLine(item.Key.ToString() + &quot;: &quot; + item.Value.Stringify());</p>  <p>}</p>  <p>}    <br />

And this is what we get from our “Customer” table



Aymeric ROLAND

Navigate To… is now supported by CodeFluent Entities

February 13, 2013 Leave a comment

I don’t know you, but one of my favorite (and useful) commands in Visual Studio is the “Navigate to…” command (VS 2010 or higher), Menu->Edit->Navigate to… Or Ctrl+, (coma). This is one of my top most used commands in Visual Studio.

The Navigate To Command

The Navigate To Command

I find very useful to find all kind of custom symbols (classes, enums, attributes, properties, methods, events…) within my Visual Studio solution.
Once you have made a search, a list of results is displayed. At the left of each result you can see an icon that represents the type of the matched item (class, property, method…), you can find the entire list of icons here.
I have seen other kind of techniques to perform a symbol search. For example, some people do a simple search (string search) at the solution (or project) level Edit->Find and Replace->Find in Files or (Ctrl+Shift+F).
Find And Replace Command

Find And Replace Command

This works fine but it would not be as accurate as the “Navigate to…” search. Indeed, a global search will also search in string definitions, encapsulated variables and within all kind of files (if the file type has not been specified).
Find And Replace Results

Find And Replace Results

Well, good news every one! Now the CodeFluent Entities model (Designer Surface and XML representation) is integrated in to the “Navigate to…” search results.
Navigate To Results with CodeFluent Entities integration

Navigate To Results with CodeFluent Entities integration

Is not that great? On the search results we can distinguish the CodeFluent Entities concepts like Entities, Properties, Relations and even Instances. You can easily identify the CodeFluent Entities related concepts by the suffix [of Entity ‘EntityName’].
You may only want to search within the CodeFluent Entities concepts, well this is possible by typing “_cfe ” before the search term. For example, if I type “_cfe Artist” I will only get CodeFluent Entities results.
Searching only within CodeFluent Entities concepts

Searching only within CodeFluent Entities concepts

You can even search for entities instances. Imagine I have in my model an instance of type “Artist” called “The Police” (value of the Name property), if I type “The Police” in the “Navigate to…” window I will also get results related to the instances in my model matching this term.
Searching for instances

Searching for instances

Finally, when you choose to navigate to a search result, a nice zoom effect will take you directly to the related entity on the CodeFluent Entities Modeler Designer.
Navigating to the Result

Navigating to the Result


Hint: if you press “Shift” when navigating to a search result (OK button or Enter key) you go directly to the XML definition (CodeFluent Entities parts).


Navigation to the XML definition

Navigation to the XML definition


This feature is available since build number (1.0.61214.701), you can download the latest version here or find some information on how to update your CodeFluent Entities version in this post.

If you want to know more about the navigation in the modeler you may appreciate this post.
I know you will find this feature useful.
Pablo Fernandez Duran

Using CodeFluent Entities with Microsoft Visual Studio Express

October 15, 2012 Leave a comment

Since 2005 Microsoft provides Visual Studio Express. This edition is a lightweight and free version of the Visual Studio product line. It is a great tool for users other than professional software developers. Unfortunately, it comes with some limitations that prevent CodeFluent Entities from being integrated to it. Indeed, Visual Studio Express does not support tool extensions. But don’t worry, CodeFluent Entities works perfectly as a standalone application too.

When installing CodeFluent Entities you have the choice to install the Core Edition with or without the Modeler:

  1. The Core Edition refers to the CodeFluent Meta Compiler without Microsoft Visual Studio integration.
  2. The Modeler Edition refers to the edition shipping the CodeFluent Meta Compiler as well as the CodeFluent Entities Modeler which is a designer integrated into Microsoft Visual Studio.

Working with Visual Studio Express you’d rather choose to install the Core Edition only. You’ll have access to the CodeFluent Meta Compiler which can be invoked by command line to generate ready to use components from a CodeFluent model. CodeFluent models are just plain-old XML files that you can create or edit with the editor of your choice such as your Visual Studio Express or with the Portable Modeler. The Portable Modeler is a standalone application which is the perfect tool for users working with Visual Studio Express (or without Visual Studio) who wish to get a graphical representation of a model.

Here is an example that shows a CodeFluent model and how to use the meta compiler:

A Model that defines a Customer entity, and the Microsoft SQL Server Producer as well as the Business Object Model Producer:

<!-- Sample.xml -->
<cf:project xmlns:cf=""
database={1};Integrated Security=true">
    <!-- Microsoft SQL Server Producer -->
    <cf:producer typeName="CodeFluent.Producers.SqlServer.SqlServerProducer, 
        <configuration targetDirectory="..\Generated\Sql" />
    <!-- Business Object Model Producer -->
    <cf:producer typeName="CodeFluent.Producers.CodeDom.CodeDomProducer, 
        <configuration targetDirectory="..\Generated\Model" 
outputName="{0}.dll" />
    <!-- Entities -->
        <Id typeName="int" />
        <FirstName typeName="string" />
        <LastName typeName="string" />

The content of a Generate.bat batch file to launch CodeFluent.Build.exe:

call "%ProgramFiles%\SoftFluent\CodeFluent\Current\CodeFluent.Build.exe" Sample.xml

The command line including cfvars.bat set some environment variables needed by the meta compiler. I invite you to read the documentation here to learn more about the meta compiler.

In addition, CodeFluent Entities is shipped with other sweet tools located in your installation directory:

    • The Importer (CodeFluent.Import.exe) that allows you to create a CodeFluent Entities model starting from an existing database or model.
    • The Meta Model Explorer (CodeFluent.View.exe) that provides a user interface to load a model and explore the inferred model.


    • The Portable Modeler (CodeFluent.Portable.exe) which is a standalone version of the Visual Studio Integrated Modeler!


To sum up, even though Visual Studio Express does not support extension tools such as CodeFluent Entities, you can still use CodeFluent Entities as a standalone application and still benefit of the power of command lines or user interfaces to create your CodeFluent model and generate your components.

Note: if you can’t find the Core Edition of CodeFluent Entities, it’s because the download is not directly available since june 2012. So if you really need it, please contact our support at :-)


Thibault Nestor

The Aspects and Producers property grid got better

October 3, 2012 Leave a comment

Remember the Aspects and Producers property grid we talk about in that previous post? Well, it just got better.

The Aspects and Producers property grid allows developers to view and edit all properties brought by aspects and producers which are used in the project of the currently selected object.

What changes is that as of today if you have several producers of the same type their properties will show up categorized under the name of the producer instead of its type name.

As a picture is worth a thousand words here is a before/after changes screenshot for a CodeFluent Entities model using two SQL Server producers:



That will definitely help to differentiate properties of each producer.



Thibault Nestor


Get every new post delivered to your Inbox.

Join 56 other followers