I would like to create class Person
which will have int Id; string Name
etc. but there is one thing I don't know how to solve.
I'll be calling every person and after the call I would like to set status for the result of call and I want only those: "SUCCESS"
, "DIDN'T WANT TO TALK"
, "CALL LATER"
, DID NOT PICK UP THE PHONE
and that's all no more. Of course all objects of class Person
will be in the LocalDb database.
As far as I remember it is called dictionary entity in databases.
How should I create this in C#
one class, two classes? Is there any method to solve this to add only possible values?
I do not know if Entity Framework with deal with enum. Could somebody writa a minimal sample of Person and this Enum type which Entity Framework will understand?