I have inherited a database - which has "ref" and "2parq" as fields.
When building a model to represent this database table, I get the error:
Invalid token 'ref' in class, struct, or interface member declaration
My Class is below:
public class Call
{
[Key]
public int CallId { get; set; }
public string ref { get; set; }
Renaming the database field isn't an option unfortunately.
Is there anyway I can reference the "ref" and "2parq" fields within my model?
Thanks, Mark