ASP.NET MVC + Entity Framework with Concurrency check

后端 未结 3 521
感动是毒
感动是毒 2021-02-06 06:16

I am trying to implement a application following the sample in this page: http://www.asp.net/entity-framework/tutorials/handling-concurrency-with-the-entity-framework-in-an-asp-

3条回答
  •  旧时难觅i
    2021-02-06 06:56

    Try putting a [ConcurrencyCheck] attribute in your TimeStamp Property

    public class PurchaseOrder {
        [ConcurrencyCheck]
        [Timestamp]
        public byte[] Timestamp {get; set;}
    }
    

提交回复
热议问题