Wm92
I am not sure I understand you fully , but I will attempt to answer , entity framework has 3 database manipulation strategies code-first approach , model first approach and not mistaking database first , I have used the first
two except Database approach , to map a field (column) as a key code first implement require you to place an implementation of System.Serialization.DataAnotations , his will expose you to the entity mapping properties like enabling column
index's and Keys property's if you are using model first approach you can setup those properties directly on the edmx file UI . there are many ways to implement you repository you can map entities in dictionaries it doesn't matter as long as
you understand .Net . the main confusing part of your question is on statement 'keys are columns' names' ? are you referring to table keys , or the dictionary key ?
also a dictionary can contain both table (entity) key and the actual table (entity) as ()=>
Dictionary<int,Person> personDC=new Dictionary<int,Person>() such that key is the primary key of table(entity) Person.