31 במאי 2007
I've been following the ADO.Net Team Blog for quite some time now, since the was announced. A new post has been published that talks about the Entity SQL used to query the store using artifacts from the conceptual schema. This post is essential for everyone who uses the Entity Framework.
Some related posts I've written in the past:
AWv3 Entity Data Model Project – ADO.Net Entity Framework Sample
Slide Decks and Demos from my ADO.Net Entity Framework Talk
ADO.NET Samples for Visual Studio “Orcas” - October CTP are available for download!
About ADO.Net Entity Framework bits in "Orcas" CTP's
I am giving a lecture about Enterprise Library 2.0 and 3.0 for a customer later this month, and spending the last few days building a demo application (Expect more details and posts about this later). I ran into a problem with the configuration tool the minute I started working with it: The configuration editor always place the assembly definitions of the assembly as signed assemblies. For example: <configSections> <section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=188.8.131.52, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> </configSections> Running the application (Web or Win) always raised the following exception: "Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Logging, Version=184.108.40.206,...
23 במאי 2007
After some bug were spotted in the latest release of , and a promise from Tom Hollander, the team has released Enterprise Library 3.1 to the web. Here are the highlights of the new version: Policy Injection Application Block The default Remoting PolicyInjector can now be replaced with alternative interception mechanisms via configuration without modifying the application block code Call Handler attributes are now honored correctly when placed on interface methods Fixed an issue that could cause duplicate handlers where matching rules matched both a class and its interface Classes implementing COM interfaces (including those...
22 במאי 2007
The workflow designer lets you visualize workflows in Visual Studio while building or debugging workflows. You can also re-host the designer in you Windows Forms application to let the users view workflow as they occurs, or customize workflow for their needs. This feature can provide flexibility into your business workflows. A more detailed description about re-hosting the designer can be found in this MSDN Article. A new sample of re-hosting the designer is also available here. Enjoy!
In the last few days I was helping Nicolas Merlet from MERLET - IT Consulting & Web Development to translate the installation page of his new Windows Live Messenger Add In for On Screen Display. As it says: This free add-in enables «On Screen Display» for Windows Live Messenger. This feature allows you to read all incoming messages directly on your screen, without having to open any conversation window ! You can answer a bit later to your contacts, while still being informed of what they are saying ! This way you are less disturbed at work... Click for...
19 במאי 2007
TableAdapterManager in ADO.Net Orcas
There is a number of problems that every project I've ever been involved in has to face. One of them is the order in which records has to be updated in the database when dealing with Master-Detail tables with relations.
Lets say we have a very simple DataSet with Orders and Order Details tables (taken from Northwind).
If I want to add a new Order with Details, I will probably have a code very similar to the following:
OrdersDataSet dsOrders = new OrdersDataSet();
// Get DataOrdersTableAdapter ordersAdapter = new OrdersTableAdapter();ordersAdapter.Fill(dsOrders.Orders);
Order_DetailsTableAdapter detailsAdapter = new Order_DetailsTableAdapter();detailsAdapter.Fill(dsOrders.Order_Details);
// Perform changes
// Insert a new Order...
Orcas Datasets - Separate Datasets from TableAdapters
In Visual Studio 2005, we were introduced to the new DataSet Designer, that also generated a TableAdapter for each DataTable in the DataSet.
Along with this great way of creating Data Access Layer for easily, there was a big problem. The Table adapters and the generated Data set are inseparatable which means that when you expose your business entities to the client side or another services, you also expose your data access layer with the connection info inside. This is both a security issue and a software engineering problem.
After receiving some feedback about these problems, Visual...
15 במאי 2007
Continuing my journey in Enterprise Library 3.0 mysterious ways, I decided to check out the Policy Injection Application Block. Tom Hollander announced this block in February this year, and it immediately caught my eyes... I am going to take some blog posts to talk about this new block, and will address the following topics: Introduction to Policy Injection Application Block (This post) Configuring Policies, Matching Rules and Call Handlers Implementing a Custom Matching Rule Implementing a Custom Call Handler Maybe more... So, without wasting any more time, lets get started... The basic Idea of Policy Injection is to enable...
12 במאי 2007
I always say that a developer cannot know everything and be fully updated with technology. In my opinion a developer should choose several technologies / tools / areas and develop an expertise in them, instead of knowing everything not deeply. When WinFX (later to become ) came along I had chosen to be an expert in and , and let someone else pick up . Recently I have joined a new project that looks into WPF to see whether the presentation layer should be developed with it. As a member of the Architecture Team of the project, and as the...
Since I blog a lot, and mainly focus on some specific technologies, I found myself always repeat the same links over and over in my posts. For example:
Visual Studio "Orcas", currently in Beta1 contains some integration between Windows Communication Foundation (WCF) and Windows Workflow Foundation (WF) and also some nice features of ADO.Net Entity Framework.
I used a few links in the above sentence that I used in almost every other posts as well. I always create the same links over and over again.
Apparently, Community Server has a nice solution for this, called Blog Snippets:
Snippets allow you to quickly create...