Published on Apr 30, 2012 by Jamie Munro
/*ASP.NET: Entity Framework's Code-First with an ObjectContext*/?>
/*ASP.NET|asp-net,mvc3|mvc3,entityframework|entityframework,objectcontext|objectcontext,dbcontext|dbcontext*/?>
/*2012-4-30*/?>
If the following blog interests you, it's probably because you're using Entity Framework with a Code-First approach and whatever it is you are trying to do *must* use an ObjectContext instead of the standard DbContext. I'm sure, like me, you thought this shouldn't be too hard. Then you started hitting roadblocks like, Metadata is required in your connection string. What's metadata? This is only needed in Database-First so you can tell the framework where your edmx and other definition files are, so why do I need this with Code-First, I don't have these files?
This was definitely my first reaction as well. So after much trial-and-error and research, I have the solution!
Read more >
Tags: ASP.NET | mvc3 | entityframework | objectcontext | dbcontext
Published on Mar 19, 2012 by Jamie Munro
/*CSS3: Creating Diagonal Lines*/?>
/*css3|css3-2,CSS|css*/?>
/*2012-3-19*/?>
The
hr tag has been around for quite some time to provide a nice horizontal line to visually separate content. To achieve a vertical line, it's typically been accomplished via
border-left or
border-right. However, this is when you can get into height issues or columns that don't extend the whole way, etc… Instead
CSS3 allows for the rotation of elements and allow for vertical or diagonal lines to be created with some basic
CSS.
Read more >
Tags: css3 | CSS
Published on Mar 12, 2012 by Jamie Munro
/*MSSQL/MySQL: Delete Duplicate Rows in a Table*/?>
/*Database|database,MSSQL|mssql,MySQL|mysql*/?>
/*2012-3-12*/?>
No more must you think about how to find a clean way to delete duplicate records in your database table. The following article will provide a single SQL query that will delete rows that are duplicated in your table. Before you begin, be sure you've tracked down the bad code that is causing this; otherwise, you will need to run it multiple times!
Read more >
Tags: Database | MSSQL | MySQL
Published on Mar 5, 2012 by Jamie Munro
/*CSS3: Rotating DOM Elements*/?>
/*css3|css3-2,CSS|css*/?>
/*2012-3-5*/?>
As more and more browsers support
HTML5 and more importantly
CSS3, it begins to allow us much more freedom using standard text without the need of images. Not only does this speed up page load times, it also lowers bandwidth costs as well. Using
CSS3, many standard DOM (Document Object Model) objects can easily be rotated, such as: images, text, block elements, etc…
Read more >
Tags: css3 | CSS
Published on Feb 27, 2012 by Jamie Munro
/*MySQL: Concatenate Multiple Rows From a Table Into One Field*/?>
/*Database|database,MySQL|mysql*/?>
/*2012-2-27*/?>
This is an excellent little trick that will save some processing time by a server-side language having to loop through the data to achieve the same result. In this article, I am going to demonstrate how you can merge multiple rows into one field separated by a specific character.
Read more >
Tags: Database | MySQL