In theory this is a simple matter of doing a SELECT a record with the particular values that you have and running an INSERT if it doesn't exist. However, EF is complex enough that I have steered clear to this point and don't know how to implement that in EF.
__________________
-------------------------
Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe
When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper
Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.
|