Dv
Size: a a a
Dv
AS
AS
AS
AS
AS
AS
AS
AS
public class BaseModel : Dictionary<string, object>
{
protected void SetValue<T>(string key, T value)
{
this[key] = value;
}
protected T GetValue<T>(string key)
{
if (this.ContainsKey(key))
{
return (T)this[key];
}
return default(T);
}
}
AS
AS
public class ContactModel : BaseModel
{public string Email
{ get { return GetValue<string>("email"); } set { SetValue("email", value); }}
public string Phone
{ get { return GetValue<string>("phone"); } set { SetValue("phone",value);}}
public bool Validate()=>this.Any();
}
AS
AS
AS
RM
PK
type CaseOfDu = { Id: string; Phone: string }
type Du = CaseOfDu of CaseOfDuPK
g