In my last post I explained why is useful to add base entity class in EF. Today I will write how with use of this base class an AutoMapped map collection of data objects (i.e. DTOs to existing collection of entities). Continue reading “Mapping collection of entities in EF with AutoMapper”
Entity Framework and Base Entity class
Entity Framework does great job with taking care of entities changes and entities collection internally. And its uses almost plain POCO objects. Almost because collections of dependents data like in 1 to many tables relationship needs virtual keyword. Its understandable since EF needs to track what happens to collection. For instance lets have 2 tables: Customer and dependent Order.
Ninject and Entity Framework
Last time I wrote about problem with testing Entity Framework in Visual Studio 2012. During working on this project I also encounter problems with configuration of Ninject to allow injecting Entity Framework classes from its Patterns extension. To be frankly this was not much a problem then lack of documentation. I just was forced to experiment with Ninject and new-thing-for-me Entity Framework Patterns extension. Continue reading “Ninject and Entity Framework”
Curious Case of Visual Studio project compatibility.
Recently I was asked at work for quick review of small project. It was created (or updated) in newest version of Visual Studio – 2012. I don’t have installed VS 2012.
I could install it, yes, but it would be just waste of time since browsing through code in that project took me only few hours.
So I decided to try to open that in VS 2010. Continue reading “Curious Case of Visual Studio project compatibility.”
Using Matlab from C# application.
While writing an application for my Masters degree diploma, I wrote a simple application that was using COM Matlab server. I have found it hard to use it mainly due to lack of documentation, which is really basic with only few code examples for C#. I guess writing programs that use Matlab for calculating is not encouraged by MathWorks, you would became competition that way 🙂 Nonetheless, I accomplished why I was required to do, so I decided to share this with the rest of the world. Continue reading “Using Matlab from C# application.”