private object BuildReferenceDto(CustomerDemographic item)
 {
     return new{
         StringId = _stringConverter.ToString(item),
         Description = item.ToString(),
     };
 }
 private object BuildFullDto(CustomerDemographic item)
 {
     return new{
         StringId = _stringConverter.ToString(item),
         item.CustomerTypeId,
         item.CustomerDesc,
     };
 }
Пример #3
0
 public virtual bool Equals(CustomerDemographic other)
 {
     if(ReferenceEquals(null, other))
     {
         return false;
     }
     if(ReferenceEquals(this, other))
     {
         return true;
     }
     if(CustomerTypeId != default(string))
     {
         return other.CustomerTypeId == CustomerTypeId;
     }
     return other.CustomerTypeId == CustomerTypeId && other.CustomerDesc == CustomerDesc;
 }
 public string ToString(CustomerDemographic obj)
 {
     return obj.CustomerTypeId;
 }
 public void Update(CustomerDemographic v)
 {
     _Northwind.Update(v);
 }
 public void Delete(CustomerDemographic v)
 {
     _Northwind.Delete(v);
 }
 public void Create(CustomerDemographic v)
 {
     _Northwind.Save(v);
 }