I have an Azure table datastore and here's my model for one class:
public class Product : TableServiceEntity
{
[Required(ErrorMessage="Title required")]
[DisplayName("Title")]
public string Title { get; set; }
}
There is more to this but the most important thing is PartitionKey, RowKey (hidden here) and Title.
What I want to do is to ensure that no record is saved that has the same title as another. I currently use a service layer for everything to do with the model.
Should my check there's no record already with the same title be part of this service layer or should it somehow be in the model itself?
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)