Sign in
Meta-Me
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
About
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Tags
Astoria
C#
Code Only
Community
Data Services
DSP
EDM
EF
EF 4.0
EF Internals
Entity Framework
Expressions
Foreign Keys
Functional
IDataServiceQueryProvider
LINQ
LINQ to Entities
Metadata
Object Services
OData
Philosophical
Ramblings
Samples
Tips
Tricks
Archive
Archives
May 2013
(1)
December 2012
(2)
November 2012
(1)
August 2012
(2)
February 2012
(1)
June 2011
(2)
June 2010
(3)
March 2010
(2)
February 2010
(5)
January 2010
(10)
December 2009
(3)
November 2009
(9)
October 2009
(4)
September 2009
(3)
August 2009
(5)
July 2009
(8)
June 2009
(8)
May 2009
(9)
April 2009
(9)
March 2009
(10)
February 2009
(3)
January 2009
(7)
December 2008
(3)
November 2008
(2)
September 2008
(2)
July 2008
(1)
June 2008
(1)
May 2008
(7)
April 2008
(2)
March 2008
(3)
February 2008
(8)
January 2008
(2)
December 2007
(2)
November 2007
(11)
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Meta-Me
Tip 18 – How to decide on a lifetime for your ObjectContext
Posted
over 4 years ago
by
Alex D James
12
Comments
One of the most common questions we get is how long should an ObjectContext should live. Options often cited include one per: Function Form Thread Application Plenty of people are asking these types of questions, case in point here is a question on Stackflow...
Meta-Me
Tip 19 – How to use Optimistic Concurrency with the Entity Framework
Posted
over 4 years ago
by
Alex D James
9
Comments
This is the 19th post in my ongoing series of Entity Framework Tips . Background: If you have a table with a timestamp column, and you reverse engineer an Entity from that table, you will end up with a Binary property in your entity (in my example...
Meta-Me
Tip 16 – How to mimic .NET 4.0’s ObjectSet<T> today
Posted
over 4 years ago
by
Alex D James
9
Comments
Background: In order to be an EF power user today you really need to be familiar with EntitySets . For example you need to understand EntitySets in order to use AttachTo(…) or create EntityKeys . In most cases there is only one possible EntitySet...
Meta-Me
Tip 20 – How to deal with Fixed Length Keys
Posted
over 4 years ago
by
Alex D James
6
Comments
This is 20th post in my ongoing series of Entity Framework Tips . Fixed Length Field Padding: If you have an fixed length column in the database, for example something like NCHAR(10) when you do an insert, padding happens automatically. So for example...
Meta-Me
Tip 21 – How to use the Single() operator – EF 4.0 only
Posted
over 4 years ago
by
Alex D James
3
Comments
This is 21st post in my ongoing series of Entity Framework Tips , and the first that is specific to EF 4.0. Entity Framework 4.0 Beta 1 As you’ve probably heard VS 2010 Beta 1 is now available to subscribers which means some of you can get your hands...
Meta-Me
Tip 17 – How to do one step updates with AttachAsModified(..)
Posted
over 4 years ago
by
Alex D James
2
Comments
Background: In Tip 13 - How to Attach the easy way I showed you how to ‘establish’ the EntitySet for a particular CLR Type so you could Attach it. But in all the tips so far the same basic pattern is used: Attach the original version of the Entity Modify...
Meta-Me
Video on Entity Framework’s Model First in .NET 4.0
Posted
over 4 years ago
by
Alex D James
1
Comments
How did I miss this ? Jonathan Carter (aka LostInTangent ) has done a Channel 9 video on our upcoming Model First experience. Model first was announced a while back here .
Meta-Me
Learn about EF Pluralization Services courtesy of Dan Rigsby
Posted
over 4 years ago
by
Alex D James
1
Comments
Not long ago I wrote a ‘sneak peek’ for our new Pluralization features on the ADO.NET team blog. There is a more indepth post coming soon… But it seems the community is starting to do our education for us, and beating us (or should I say me) to the punch...
Meta-Me
An enumeration of one?
Posted
over 4 years ago
by
Alex D James
1
Comments
Having something enumerable is the gateway to all LINQ’s loveliness. But sometimes you have just one object. So how do you make that enumerable? var people = new Person[] {person}; Not exactly hard huh? In fact you can simplify this even more, you can...
Page 1 of 1 (9 items)