コード例 #1
0
 private object BuildReferenceDto(CustomerDemographic item)
 {
     return new{
         StringId = _stringConverter.ToString(item),
         Description = item.ToString(),
     };
 }
コード例 #2
0
 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;
 }
コード例 #4
0
 public string ToString(CustomerDemographic obj)
 {
     return obj.CustomerTypeId;
 }
コード例 #5
0
 public void Update(CustomerDemographic v)
 {
     _Northwind.Update(v);
 }
コード例 #6
0
 public void Delete(CustomerDemographic v)
 {
     _Northwind.Delete(v);
 }
コード例 #7
0
 public void Create(CustomerDemographic v)
 {
     _Northwind.Save(v);
 }