Advertisement
RyanFarley

Untitled

Oct 2nd, 2017
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.97 KB | None | 0 0
  1. using System;
  2. using Saleslogix.SData.Client;
  3.  
  4. namespace WPS.FSS.Entities.CRM
  5. {
  6.     [SDataPath("accounts")]
  7.     public class Account
  8.     {
  9.         [SDataProtocolProperty(SDataProtocolProperty.Key)]
  10.         public string Id { get; set; }
  11.  
  12.         public string AccountName { get; set; }
  13.         public string Type { get; set; }
  14.         // etc
  15.  
  16.         // extension entity reference
  17.         public CAdditionalInfo CAddlindivInfo { get; set; } // <- property name was updated to the correct entity name
  18.     }
  19.  
  20.  
  21.     [SDataPath("cAddlindivInfoes")]
  22.     public class CAdditionalInfo
  23.     {
  24.         public Account Account { get; set; } // reference to account parent entity
  25.         public DateTime Date_of_birth { get; set; }
  26.         public bool Do_not_call { get; set; }
  27.         public DateTime CreateDate { get; set; }
  28.         public string CreateUser { get; set; }
  29.         public DateTime ModifyDate { get; set; }
  30.         public string ModifyUser { get; set; }
  31.     }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement