Fluent API and annotations are you two options when it comes to controling mappings and configuring constraints such as field length or required. When configured these constraints it will affect the database that is created by Code First as well as the validation that is done by Entity Framework. Some reasons to favour fluent APIs:… Continue reading Enity Framework Fluent APIs
Author: Kazim Nami
Connecting String Tips with EF5 and localdb
Connection String Reference from Class Constructor When specifying a connection string property use the ‘name’ key word within contructure which instructs EF5 to throw an exception if it doesn’t find it. I would say this is better practice than not specifying the key word ‘name’. public class ApplicationDB:DbContext { publicApplicationDB() : base(“name=EF5.Demo“) {} } Specifying… Continue reading Connecting String Tips with EF5 and localdb
Error: A file activation error occurred. CREATE DATABASE failed.
A file activation error occurred. CREATE DATABASE failed. With Entity Framework 5 I was trying to play around with the enhancements to code first and establish a database with the AttachDbFileName property in the connection string section in the AppConfig file. addname=“DatabaseName“providerName=“System.Data.SqlClient“connectionString=“Data Source=(LocalDB)v11.0;AttachDbFileName=|DataDirectory|DatabaseName.mdf;Integrated Security=True;MultipleActiveResultSets=True“ /> And I was receiving this error message: A file activation… Continue reading Error: A file activation error occurred. CREATE DATABASE failed.
Visual Stuido and IntelliTrace gotcha
I was trouble shooting the ability to create a localdb database using Entity Framework and Visual Studio when I found that I had waisted over an hour because I didn’t understand the fundamentals of IntelliTrace. When the error popped up I immediately went to the first Exception at the top of the IntelliTrace log and… Continue reading Visual Stuido and IntelliTrace gotcha
Why some people are reluctant to share knowledge
Lincoln De Kalb, a colleage at work sent through this link http://www.rajeshsetty.com/2009/12/26/why-some-smart-people-are-reluctant-to-share/ which was a great read and quite valuable in thinking through potential approachs in facilitating senior team members in sharing knowledge with non senior members of the team.
How to: Branching and Merging Guide
As anyone who had experience with branching they will tell you branching is easy merging is hard. Which is why you should always ask yourself if you need to branch and only do so if you have to. Luckily, if you do need to branch there is a great guide from the ALM Rangers: Visual… Continue reading How to: Branching and Merging Guide
How To: Structure Your Source Control Folders
Your source control folder is one of the topics that could debated amongst a team at the start of each and every project they tackle and someone will always have something different to add. This is why its important to stand on the shoulders of giants and follow Microsoft’s patterns and practices guidance on the… Continue reading How To: Structure Your Source Control Folders
Practices a senior developer should have to grow/maintain their knowledge
As most developers are aware technology changes so frequently that you need to build a routine and a set of practices around learning and keeping up. The sooner a developer establishes these practices the soon they will become a senior developer. Likewise, within a short period of time after a senior developer stops or slows… Continue reading Practices a senior developer should have to grow/maintain their knowledge
Path to Becoming a Senior Developer
This is the first in a series of posts I plan to write on the subject of progressing from being junior developer or mid level developer to being a senior developer. It’s based on a forum I hold with my team members that are eager to progress down this path. The first place to start… Continue reading Path to Becoming a Senior Developer
Mobile Application Design, Considerations & Thoughts
If your looking to start a project targeted at mobile devices here are some thoughts and findings on why it might be a good idea, some principles to follow and some general thoughts you might benefit from: Why create a mobile application or mobile web site? To increase your businesses offerings through an additional ordering channel or… Continue reading Mobile Application Design, Considerations & Thoughts