ok i have model
public long prop1 { get; set; }
[Required]
public string prop2 { get; set; }
[Required]
public string prop3 { get; set; }
[Required]
public string prop4 { get; set; }
this table is the part of database generated from code first.
now the requirement arises that there will be a form with prop3 only and after submitting it it will be updated on the bases of prop1. how will i make it work with regard to creation of model and dbcontext? what is the usual practise here?
I’m not 100% sure what you’re asking here. However, if what you mean is that you need to be able to insert an entity with only a prop3, then you have to change your data model to make prop2 and prop4 not be required.