Top "Composite-key" questions

A composite key is a database key whose value is made up of multiple typed values

EF Composite key fluent API

I am trying to map a composite key for an entity. public class Customer { public int CustomerId { get; set; } public …

c# entity-framework fluent composite-key composite-primary-key
grails composite "unique constraint", but how?

I'm very close to a solution but anything is still wrong, hope to get help, thanks in advance. I have …

grails foreign-keys gorm composite-key
Using NHibernate's ISession.Get<>() w/ a composite key

I have a composite key in a database table / NHibernate entity. Can I somehow use the .Get method to grab …

c# .net nhibernate composite-key
Entity framework: How to return a row from a table with composite keys?

public class UserBuilding { [Key, Column(Order = 0)] public int UserId { get; set; } [Key, Column(Order = 1)] public int BuildingId { get; set; } public …

entity-framework return row composite-key
REST - how design an URI with composite keys?

I have a question about how design a resource URI with composite keys. I have a resource called freight that …

rest uri composite-key
When should I use a composite primary key?

ETA: My question is based upon keeping an optimal database. What is the difference in database performance/size between having …

database-design composite-key
Code First Fluent API and Navigation Properties in a Join Table

I have four entities that I would like to translate into database tables via code first fluent api (I'm using …

entity-framework code-first composite-key jointable