We know that the primary keys are usually positive integers.
Is it good idea to use uint
instead of int
as the primary key in data model class?
Example:
public class Customer
{
public uint CustomerId {get;set;}
//others are omitted for the sake of simplicity.
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…