Here is an example how to make a composite primary key in EF Code First
public class Something
[Key, Column(Order = 0)]
public int Key1Name { get; set; }
[Key, Column(Order = 1)]
public int Key2Name { get; set; }
}
epá, tava aqui a brincar com isto e pimba, descuidei-me e criei um Blog!!! help :)
Here is an example how to make a composite primary key in EF Code First
public class Something
Etiquetas: Code First, Entity Framework, Primary Key
Copyright © 2008 - Oooops, criei um Blog :o - is proudly powered by Blogger
Illacrimo - Design of Design Disease
- To blogger by Blog and Web