ServiceStack ORMLite Cannot Update Identity Column
问题 I am using ServiceStack ORMLite to try and update a record in my database. All of my POCO's implement an IHasID interface public interface IHasId { int Id { get; set; } } In my POCO I have the following property private int id; [ServiceStack.DataAnnotations.Alias("TableName_ID")] public int Id { get { return id; } set { if (value != this.id) { this.id = value; NotifyPropertyChanged("Id"); } } } Each of my repository classes inherits a from a DataRepositoryBase< T> class that has the following