1. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 12/4/2017 9:45:01 AM Eastern Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

1.1 Files compared

# Location File Last Modified
1 PPMS Build 5 Sprint 1.zip\CIF B5S1\VA.PPMS.Plugins.zip\VA.PPMS.Plugins\VA.PPMS.CRM.Plugins\VA.PPMS.Context PpmsContext.cs Thu Nov 9 00:44:14 2017 UTC
2 PPMS Build 5 Sprint 1.zip\CIF B5S1\VA.PPMS.Plugins.zip\VA.PPMS.Plugins\VA.PPMS.CRM.Plugins\VA.PPMS.Context PpmsContext.cs Mon Dec 4 14:08:34 2017 UTC

1.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 55844
Changed 1 2
Inserted 0 0
Removed 0 0

1.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

1.4 Active regular expressions

No regular expressions were active.

1.5 Comparison detail

  1   //-------- ---------- ---------- ---------- ---------- ---------- ---------- ----------
  2   // <auto-g enerated>
  3   //     Thi s code was  generated  by a tool .
  4   //
  5   //     Cha nges to th is file ma y cause in correct be havior and  will be l ost if
  6   //     the  code is r egenerated .
  7   // </auto- generated>
  8   // Created  via this  command li ne: "C:\Us ers\ PII \AppData\R oaming\Msc rmTools\Xr mToolBox\P lugins\Crm SvcUtil Re f\crmsvcut il.exe" /u rl:"https: //dvagov-p pms-dev.ap i.crm9.dyn amics.com/ XRMService s/2011/Org anization. svc" /name space:"VA. PPMS.Conte xt" /out:" C:\src\PPM S\VA.PPMS. DataWebSer vice\PpmsD ataService \VA.PPMS.C ontext\Ppm sContext.c s" /servic econtextna me:"PpmsCo ntext" /co decustomiz ation:"DLa B.CrmSvcUt ilExtensio ns.Entity. CustomizeC odeDomServ ice,DLaB.C rmSvcUtilE xtensions"  /codegene rationserv ice:"DLaB. CrmSvcUtil Extensions .Entity.Cu stomCodeGe nerationSe rvice,DLaB .CrmSvcUti lExtension s" /codewr iterfilter :"DLaB.Crm SvcUtilExt ensions.En tity.CodeW riterFilte rService,D LaB.CrmSvc UtilExtens ions" /nam ingservice :"DLaB.Crm SvcUtilExt ensions.Na mingServic e,DLaB.Crm SvcUtilExt ensions" / metadatapr oviderserv ice:"DLaB. CrmSvcUtil Extensions .Entity.Me tadataProv iderServic e,DLaB.Crm SvcUtilExt ensions" / username:" AI " /passwor d:"******* ********** **" 
  9   //-------- ---------- ---------- ---------- ---------- ---------- ---------- ----------
  10  
  11   [assembly:  Microsoft .Xrm.Sdk.C lient.Prox yTypesAsse mblyAttrib ute()]
  12  
  13   namespace  VA.PPMS.Co ntext
  14   {
  15           
  16           
  17           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  18           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  19           pu blic enum  AccountSta te
  20           {
  21                    
  22                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  23                    Acti ve = 0,
  24                    
  25                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  26                    Inac tive = 1,
  27           }
  28           
  29           // / <summary >
  30           // / Business  that repr esents a c ustomer or  potential  customer.  The compa ny that is  billed in  business  transactio ns.
  31           // / </summar y>
  32           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  33           [M icrosoft.X rm.Sdk.Cli ent.Entity LogicalNam eAttribute ("account" )]
  34           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  35           pu blic parti al class A ccount : M icrosoft.X rm.Sdk.Ent ity, Syste m.Componen tModel.INo tifyProper tyChanging , System.C omponentMo del.INotif yPropertyC hanged
  36           {
  37                    
  38                    ///  <summary>
  39                    ///  Default Co nstructor.
  40                    ///  </summary>
  41                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  42                    publ ic Account () : 
  43                                      base(Ent ityLogical Name)
  44                    {
  45                    }
  46                    
  47                    publ ic const s tring Enti tyLogicalN ame = "acc ount";
  48                    
  49                    publ ic const i nt EntityT ypeCode =  1;
  50                    
  51                    publ ic event S ystem.Comp onentModel .PropertyC hangedEven tHandler P ropertyCha nged;
  52                    
  53                    publ ic event S ystem.Comp onentModel .PropertyC hangingEve ntHandler  PropertyCh anging;
  54                    
  55                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  56                    priv ate void O nPropertyC hanged(str ing proper tyName)
  57                    {
  58                             if ((t his.Proper tyChanged  != null))
  59                             {
  60                                      this.Pro pertyChang ed(this, n ew System. ComponentM odel.Prope rtyChanged EventArgs( propertyNa me));
  61                             }
  62                    }
  63                    
  64                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  65                    priv ate void O nPropertyC hanging(st ring prope rtyName)
  66                    {
  67                             if ((t his.Proper tyChanging  != null))
  68                             {
  69                                      this.Pro pertyChang ing(this,  new System .Component Model.Prop ertyChangi ngEventArg s(property Name));
  70                             }
  71                    }
  72                    
  73                    ///  <summary>
  74                    ///  Select a c ategory to  indicate  whether th e customer  account i s standard  or prefer red.
  75                    ///  </summary>
  76                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("acco untcategor ycode")]
  77                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Acco untCategor yCode
  78                    {
  79                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  80                             get
  81                             {
  82                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("acc ountcatego rycode");
  83                             }
  84                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  85                             set
  86                             {
  87                                      this.OnP ropertyCha nging("Acc ountCatego ryCode");
  88                                      this.Set AttributeV alue("acco untcategor ycode", va lue);
  89                                      this.OnP ropertyCha nged("Acco untCategor yCode");
  90                             }
  91                    }
  92                    
  93                    ///  <summary>
  94                    ///  Select a c lassificat ion code t o indicate  the poten tial value  of the cu stomer acc ount based  on the pr ojected re turn on in vestment,  cooperatio n level, s ales cycle  length or  other cri teria.
  95                    ///  </summary>
  96                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("acco untclassif icationcod e")]
  97                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Acco untClassif icationCod e
  98                    {
  99                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  100                             get
  101                             {
  102                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("acc ountclassi ficationco de");
  103                             }
  104                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  105                             set
  106                             {
  107                                      this.OnP ropertyCha nging("Acc ountClassi ficationCo de");
  108                                      this.Set AttributeV alue("acco untclassif icationcod e", value) ;
  109                                      this.OnP ropertyCha nged("Acco untClassif icationCod e");
  110                             }
  111                    }
  112                    
  113                    ///  <summary>
  114                    ///  Unique ide ntifier of  the accou nt.
  115                    ///  </summary>
  116                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("acco untid")]
  117                    publ ic System. Nullable<S ystem.Guid > AccountI d
  118                    {
  119                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  120                             get
  121                             {
  122                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("account id");
  123                             }
  124                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  125                             set
  126                             {
  127                                      this.OnP ropertyCha nging("Acc ountId");
  128                                      this.Set AttributeV alue("acco untid", va lue);
  129                                      if (valu e.HasValue )
  130                                      {
  131                                               base.Id =  value.Valu e;
  132                                      }
  133                                      else
  134                                      {
  135                                               base.Id =  System.Gui d.Empty;
  136                                      }
  137                                      this.OnP ropertyCha nged("Acco untId");
  138                             }
  139                    }
  140                    
  141                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("acco untid")]
  142                    publ ic overrid e System.G uid Id
  143                    {
  144                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  145                             get
  146                             {
  147                                      return b ase.Id;
  148                             }
  149                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  150                             set
  151                             {
  152                                      this.Acc ountId = v alue;
  153                             }
  154                    }
  155                    
  156                    ///  <summary>
  157                    ///  Type an ID  number or  code for  the accoun t to quick ly search  and identi fy the acc ount in sy stem views .
  158                    ///  </summary>
  159                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("acco untnumber" )]
  160                    publ ic string  AccountNum ber
  161                    {
  162                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  163                             get
  164                             {
  165                                      return t his.GetAtt ributeValu e<string>( "accountnu mber");
  166                             }
  167                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  168                             set
  169                             {
  170                                      this.OnP ropertyCha nging("Acc ountNumber ");
  171                                      this.Set AttributeV alue("acco untnumber" , value);
  172                                      this.OnP ropertyCha nged("Acco untNumber" );
  173                             }
  174                    }
  175                    
  176                    ///  <summary>
  177                    ///  Select a r ating to i ndicate th e value of  the custo mer accoun t.
  178                    ///  </summary>
  179                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("acco untratingc ode")]
  180                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Acco untRatingC ode
  181                    {
  182                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  183                             get
  184                             {
  185                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("acc ountrating code");
  186                             }
  187                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  188                             set
  189                             {
  190                                      this.OnP ropertyCha nging("Acc ountRating Code");
  191                                      this.Set AttributeV alue("acco untratingc ode", valu e);
  192                                      this.OnP ropertyCha nged("Acco untRatingC ode");
  193                             }
  194                    }
  195                    
  196                    ///  <summary>
  197                    ///  Unique ide ntifier fo r address  1.
  198                    ///  </summary>
  199                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_addre ssid")]
  200                    publ ic System. Nullable<S ystem.Guid > Address1 _AddressId
  201                    {
  202                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  203                             get
  204                             {
  205                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("address 1_addressi d");
  206                             }
  207                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  208                             set
  209                             {
  210                                      this.OnP ropertyCha nging("Add ress1_Addr essId");
  211                                      this.Set AttributeV alue("addr ess1_addre ssid", val ue);
  212                                      this.OnP ropertyCha nged("Addr ess1_Addre ssId");
  213                             }
  214                    }
  215                    
  216                    ///  <summary>
  217                    ///  Select the  primary a ddress typ e.
  218                    ///  </summary>
  219                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_addre sstypecode ")]
  220                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Addr ess1_Addre ssTypeCode
  221                    {
  222                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  223                             get
  224                             {
  225                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("add ress1_addr esstypecod e");
  226                             }
  227                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  228                             set
  229                             {
  230                                      this.OnP ropertyCha nging("Add ress1_Addr essTypeCod e");
  231                                      this.Set AttributeV alue("addr ess1_addre sstypecode ", value);
  232                                      this.OnP ropertyCha nged("Addr ess1_Addre ssTypeCode ");
  233                             }
  234                    }
  235                    
  236                    ///  <summary>
  237                    ///  Type the c ity for th e primary  address.
  238                    ///  </summary>
  239                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_city" )]
  240                    publ ic string  Address1_C ity
  241                    {
  242                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  243                             get
  244                             {
  245                                      return t his.GetAtt ributeValu e<string>( "address1_ city");
  246                             }
  247                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  248                             set
  249                             {
  250                                      this.OnP ropertyCha nging("Add ress1_City ");
  251                                      this.Set AttributeV alue("addr ess1_city" , value);
  252                                      this.OnP ropertyCha nged("Addr ess1_City" );
  253                             }
  254                    }
  255                    
  256                    ///  <summary>
  257                    ///  Shows the  complete p rimary add ress.
  258                    ///  </summary>
  259                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_compo site")]
  260                    publ ic string  Address1_C omposite
  261                    {
  262                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  263                             get
  264                             {
  265                                      return t his.GetAtt ributeValu e<string>( "address1_ composite" );
  266                             }
  267                    }
  268                    
  269                    ///  <summary>
  270                    ///  Type the c ountry or  region for  the prima ry address .
  271                    ///  </summary>
  272                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_count ry")]
  273                    publ ic string  Address1_C ountry
  274                    {
  275                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  276                             get
  277                             {
  278                                      return t his.GetAtt ributeValu e<string>( "address1_ country");
  279                             }
  280                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  281                             set
  282                             {
  283                                      this.OnP ropertyCha nging("Add ress1_Coun try");
  284                                      this.Set AttributeV alue("addr ess1_count ry", value );
  285                                      this.OnP ropertyCha nged("Addr ess1_Count ry");
  286                             }
  287                    }
  288                    
  289                    ///  <summary>
  290                    ///  Type the c ounty for  the primar y address.
  291                    ///  </summary>
  292                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_count y")]
  293                    publ ic string  Address1_C ounty
  294                    {
  295                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  296                             get
  297                             {
  298                                      return t his.GetAtt ributeValu e<string>( "address1_ county");
  299                             }
  300                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  301                             set
  302                             {
  303                                      this.OnP ropertyCha nging("Add ress1_Coun ty");
  304                                      this.Set AttributeV alue("addr ess1_count y", value) ;
  305                                      this.OnP ropertyCha nged("Addr ess1_Count y");
  306                             }
  307                    }
  308                    
  309                    ///  <summary>
  310                    ///  Type the f ax number  associated  with the  primary ad dress.
  311                    ///  </summary>
  312                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_fax") ]
  313                    publ ic string  Address1_F ax
  314                    {
  315                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  316                             get
  317                             {
  318                                      return t his.GetAtt ributeValu e<string>( "address1_ fax");
  319                             }
  320                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  321                             set
  322                             {
  323                                      this.OnP ropertyCha nging("Add ress1_Fax" );
  324                                      this.Set AttributeV alue("addr ess1_fax",  value);
  325                                      this.OnP ropertyCha nged("Addr ess1_Fax") ;
  326                             }
  327                    }
  328                    
  329                    ///  <summary>
  330                    ///  Select the  freight t erms for t he primary  address t o make sur e shipping  orders ar e processe d correctl y.
  331                    ///  </summary>
  332                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_freig httermscod e")]
  333                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Addr ess1_Freig htTermsCod e
  334                    {
  335                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  336                             get
  337                             {
  338                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("add ress1_frei ghttermsco de");
  339                             }
  340                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  341                             set
  342                             {
  343                                      this.OnP ropertyCha nging("Add ress1_Frei ghtTermsCo de");
  344                                      this.Set AttributeV alue("addr ess1_freig httermscod e", value) ;
  345                                      this.OnP ropertyCha nged("Addr ess1_Freig htTermsCod e");
  346                             }
  347                    }
  348                    
  349                    ///  <summary>
  350                    ///  Type the l atitude va lue for th e primary  address fo r use in m apping and  other app lications.
  351                    ///  </summary>
  352                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_latit ude")]
  353                    publ ic System. Nullable<d ouble> Add ress1_Lati tude
  354                    {
  355                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  356                             get
  357                             {
  358                                      return t his.GetAtt ributeValu e<System.N ullable<do uble>>("ad dress1_lat itude");
  359                             }
  360                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  361                             set
  362                             {
  363                                      this.OnP ropertyCha nging("Add ress1_Lati tude");
  364                                      this.Set AttributeV alue("addr ess1_latit ude", valu e);
  365                                      this.OnP ropertyCha nged("Addr ess1_Latit ude");
  366                             }
  367                    }
  368                    
  369                    ///  <summary>
  370                    ///  Type the f irst line  of the pri mary addre ss.
  371                    ///  </summary>
  372                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_line1 ")]
  373                    publ ic string  Address1_L ine1
  374                    {
  375                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  376                             get
  377                             {
  378                                      return t his.GetAtt ributeValu e<string>( "address1_ line1");
  379                             }
  380                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  381                             set
  382                             {
  383                                      this.OnP ropertyCha nging("Add ress1_Line 1");
  384                                      this.Set AttributeV alue("addr ess1_line1 ", value);
  385                                      this.OnP ropertyCha nged("Addr ess1_Line1 ");
  386                             }
  387                    }
  388                    
  389                    ///  <summary>
  390                    ///  Type the s econd line  of the pr imary addr ess.
  391                    ///  </summary>
  392                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_line2 ")]
  393                    publ ic string  Address1_L ine2
  394                    {
  395                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  396                             get
  397                             {
  398                                      return t his.GetAtt ributeValu e<string>( "address1_ line2");
  399                             }
  400                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  401                             set
  402                             {
  403                                      this.OnP ropertyCha nging("Add ress1_Line 2");
  404                                      this.Set AttributeV alue("addr ess1_line2 ", value);
  405                                      this.OnP ropertyCha nged("Addr ess1_Line2 ");
  406                             }
  407                    }
  408                    
  409                    ///  <summary>
  410                    ///  Type the t hird line  of the pri mary addre ss.
  411                    ///  </summary>
  412                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_line3 ")]
  413                    publ ic string  Address1_L ine3
  414                    {
  415                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  416                             get
  417                             {
  418                                      return t his.GetAtt ributeValu e<string>( "address1_ line3");
  419                             }
  420                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  421                             set
  422                             {
  423                                      this.OnP ropertyCha nging("Add ress1_Line 3");
  424                                      this.Set AttributeV alue("addr ess1_line3 ", value);
  425                                      this.OnP ropertyCha nged("Addr ess1_Line3 ");
  426                             }
  427                    }
  428                    
  429                    ///  <summary>
  430                    ///  Type the l ongitude v alue for t he primary  address f or use in  mapping an d other ap plications .
  431                    ///  </summary>
  432                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_longi tude")]
  433                    publ ic System. Nullable<d ouble> Add ress1_Long itude
  434                    {
  435                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  436                             get
  437                             {
  438                                      return t his.GetAtt ributeValu e<System.N ullable<do uble>>("ad dress1_lon gitude");
  439                             }
  440                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  441                             set
  442                             {
  443                                      this.OnP ropertyCha nging("Add ress1_Long itude");
  444                                      this.Set AttributeV alue("addr ess1_longi tude", val ue);
  445                                      this.OnP ropertyCha nged("Addr ess1_Longi tude");
  446                             }
  447                    }
  448                    
  449                    ///  <summary>
  450                    ///  Type a des criptive n ame for th e primary  address, s uch as Cor porate Hea dquarters.
  451                    ///  </summary>
  452                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_name" )]
  453                    publ ic string  Address1_N ame
  454                    {
  455                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  456                             get
  457                             {
  458                                      return t his.GetAtt ributeValu e<string>( "address1_ name");
  459                             }
  460                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  461                             set
  462                             {
  463                                      this.OnP ropertyCha nging("Add ress1_Name ");
  464                                      this.Set AttributeV alue("addr ess1_name" , value);
  465                                      this.OnP ropertyCha nged("Addr ess1_Name" );
  466                             }
  467                    }
  468                    
  469                    ///  <summary>
  470                    ///  Type the Z IP Code or  postal co de for the  primary a ddress.
  471                    ///  </summary>
  472                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_posta lcode")]
  473                    publ ic string  Address1_P ostalCode
  474                    {
  475                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  476                             get
  477                             {
  478                                      return t his.GetAtt ributeValu e<string>( "address1_ postalcode ");
  479                             }
  480                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  481                             set
  482                             {
  483                                      this.OnP ropertyCha nging("Add ress1_Post alCode");
  484                                      this.Set AttributeV alue("addr ess1_posta lcode", va lue);
  485                                      this.OnP ropertyCha nged("Addr ess1_Posta lCode");
  486                             }
  487                    }
  488                    
  489                    ///  <summary>
  490                    ///  Type the p ost office  box numbe r of the p rimary add ress.
  491                    ///  </summary>
  492                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_posto fficebox") ]
  493                    publ ic string  Address1_P ostOfficeB ox
  494                    {
  495                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  496                             get
  497                             {
  498                                      return t his.GetAtt ributeValu e<string>( "address1_ postoffice box");
  499                             }
  500                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  501                             set
  502                             {
  503                                      this.OnP ropertyCha nging("Add ress1_Post OfficeBox" );
  504                                      this.Set AttributeV alue("addr ess1_posto fficebox",  value);
  505                                      this.OnP ropertyCha nged("Addr ess1_PostO fficeBox") ;
  506                             }
  507                    }
  508                    
  509                    ///  <summary>
  510                    ///  Type the n ame of the  main cont act at the  account's  primary a ddress.
  511                    ///  </summary>
  512                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_prima rycontactn ame")]
  513                    publ ic string  Address1_P rimaryCont actName
  514                    {
  515                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  516                             get
  517                             {
  518                                      return t his.GetAtt ributeValu e<string>( "address1_ primarycon tactname") ;
  519                             }
  520                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  521                             set
  522                             {
  523                                      this.OnP ropertyCha nging("Add ress1_Prim aryContact Name");
  524                                      this.Set AttributeV alue("addr ess1_prima rycontactn ame", valu e);
  525                                      this.OnP ropertyCha nged("Addr ess1_Prima ryContactN ame");
  526                             }
  527                    }
  528                    
  529                    ///  <summary>
  530                    ///  Select a s hipping me thod for d eliveries  sent to th is address .
  531                    ///  </summary>
  532                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_shipp ingmethodc ode")]
  533                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Addr ess1_Shipp ingMethodC ode
  534                    {
  535                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  536                             get
  537                             {
  538                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("add ress1_ship pingmethod code");
  539                             }
  540                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  541                             set
  542                             {
  543                                      this.OnP ropertyCha nging("Add ress1_Ship pingMethod Code");
  544                                      this.Set AttributeV alue("addr ess1_shipp ingmethodc ode", valu e);
  545                                      this.OnP ropertyCha nged("Addr ess1_Shipp ingMethodC ode");
  546                             }
  547                    }
  548                    
  549                    ///  <summary>
  550                    ///  Type the s tate or pr ovince of  the primar y address.
  551                    ///  </summary>
  552                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_state orprovince ")]
  553                    publ ic string  Address1_S tateOrProv ince
  554                    {
  555                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  556                             get
  557                             {
  558                                      return t his.GetAtt ributeValu e<string>( "address1_ stateorpro vince");
  559                             }
  560                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  561                             set
  562                             {
  563                                      this.OnP ropertyCha nging("Add ress1_Stat eOrProvinc e");
  564                                      this.Set AttributeV alue("addr ess1_state orprovince ", value);
  565                                      this.OnP ropertyCha nged("Addr ess1_State OrProvince ");
  566                             }
  567                    }
  568                    
  569                    ///  <summary>
  570                    ///  Type the m ain phone  number ass ociated wi th the pri mary addre ss.
  571                    ///  </summary>
  572                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_telep hone1")]
  573                    publ ic string  Address1_T elephone1
  574                    {
  575                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  576                             get
  577                             {
  578                                      return t his.GetAtt ributeValu e<string>( "address1_ telephone1 ");
  579                             }
  580                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  581                             set
  582                             {
  583                                      this.OnP ropertyCha nging("Add ress1_Tele phone1");
  584                                      this.Set AttributeV alue("addr ess1_telep hone1", va lue);
  585                                      this.OnP ropertyCha nged("Addr ess1_Telep hone1");
  586                             }
  587                    }
  588                    
  589                    ///  <summary>
  590                    ///  Type a sec ond phone  number ass ociated wi th the pri mary addre ss.
  591                    ///  </summary>
  592                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_telep hone2")]
  593                    publ ic string  Address1_T elephone2
  594                    {
  595                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  596                             get
  597                             {
  598                                      return t his.GetAtt ributeValu e<string>( "address1_ telephone2 ");
  599                             }
  600                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  601                             set
  602                             {
  603                                      this.OnP ropertyCha nging("Add ress1_Tele phone2");
  604                                      this.Set AttributeV alue("addr ess1_telep hone2", va lue);
  605                                      this.OnP ropertyCha nged("Addr ess1_Telep hone2");
  606                             }
  607                    }
  608                    
  609                    ///  <summary>
  610                    ///  Type a thi rd phone n umber asso ciated wit h the prim ary addres s.
  611                    ///  </summary>
  612                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_telep hone3")]
  613                    publ ic string  Address1_T elephone3
  614                    {
  615                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  616                             get
  617                             {
  618                                      return t his.GetAtt ributeValu e<string>( "address1_ telephone3 ");
  619                             }
  620                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  621                             set
  622                             {
  623                                      this.OnP ropertyCha nging("Add ress1_Tele phone3");
  624                                      this.Set AttributeV alue("addr ess1_telep hone3", va lue);
  625                                      this.OnP ropertyCha nged("Addr ess1_Telep hone3");
  626                             }
  627                    }
  628                    
  629                    ///  <summary>
  630                    ///  Type the U PS zone of  the prima ry address  to make s ure shippi ng charges  are calcu lated corr ectly and  deliveries  are made  promptly,  if shipped  by UPS.
  631                    ///  </summary>
  632                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_upszo ne")]
  633                    publ ic string  Address1_U PSZone
  634                    {
  635                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  636                             get
  637                             {
  638                                      return t his.GetAtt ributeValu e<string>( "address1_ upszone");
  639                             }
  640                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  641                             set
  642                             {
  643                                      this.OnP ropertyCha nging("Add ress1_UPSZ one");
  644                                      this.Set AttributeV alue("addr ess1_upszo ne", value );
  645                                      this.OnP ropertyCha nged("Addr ess1_UPSZo ne");
  646                             }
  647                    }
  648                    
  649                    ///  <summary>
  650                    ///  Select the  time zone , or UTC o ffset, for  this addr ess so tha t other pe ople can r eference i t when the y contact  someone at  this addr ess.
  651                    ///  </summary>
  652                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_utcof fset")]
  653                    publ ic System. Nullable<i nt> Addres s1_UTCOffs et
  654                    {
  655                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  656                             get
  657                             {
  658                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("addre ss1_utcoff set");
  659                             }
  660                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  661                             set
  662                             {
  663                                      this.OnP ropertyCha nging("Add ress1_UTCO ffset");
  664                                      this.Set AttributeV alue("addr ess1_utcof fset", val ue);
  665                                      this.OnP ropertyCha nged("Addr ess1_UTCOf fset");
  666                             }
  667                    }
  668                    
  669                    ///  <summary>
  670                    ///  Unique ide ntifier fo r address  2.
  671                    ///  </summary>
  672                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_addre ssid")]
  673                    publ ic System. Nullable<S ystem.Guid > Address2 _AddressId
  674                    {
  675                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  676                             get
  677                             {
  678                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("address 2_addressi d");
  679                             }
  680                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  681                             set
  682                             {
  683                                      this.OnP ropertyCha nging("Add ress2_Addr essId");
  684                                      this.Set AttributeV alue("addr ess2_addre ssid", val ue);
  685                                      this.OnP ropertyCha nged("Addr ess2_Addre ssId");
  686                             }
  687                    }
  688                    
  689                    ///  <summary>
  690                    ///  Select the  secondary  address t ype.
  691                    ///  </summary>
  692                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_addre sstypecode ")]
  693                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Addr ess2_Addre ssTypeCode
  694                    {
  695                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  696                             get
  697                             {
  698                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("add ress2_addr esstypecod e");
  699                             }
  700                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  701                             set
  702                             {
  703                                      this.OnP ropertyCha nging("Add ress2_Addr essTypeCod e");
  704                                      this.Set AttributeV alue("addr ess2_addre sstypecode ", value);
  705                                      this.OnP ropertyCha nged("Addr ess2_Addre ssTypeCode ");
  706                             }
  707                    }
  708                    
  709                    ///  <summary>
  710                    ///  Type the c ity for th e secondar y address.
  711                    ///  </summary>
  712                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_city" )]
  713                    publ ic string  Address2_C ity
  714                    {
  715                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  716                             get
  717                             {
  718                                      return t his.GetAtt ributeValu e<string>( "address2_ city");
  719                             }
  720                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  721                             set
  722                             {
  723                                      this.OnP ropertyCha nging("Add ress2_City ");
  724                                      this.Set AttributeV alue("addr ess2_city" , value);
  725                                      this.OnP ropertyCha nged("Addr ess2_City" );
  726                             }
  727                    }
  728                    
  729                    ///  <summary>
  730                    ///  Shows the  complete s econdary a ddress.
  731                    ///  </summary>
  732                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_compo site")]
  733                    publ ic string  Address2_C omposite
  734                    {
  735                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  736                             get
  737                             {
  738                                      return t his.GetAtt ributeValu e<string>( "address2_ composite" );
  739                             }
  740                    }
  741                    
  742                    ///  <summary>
  743                    ///  Type the c ountry or  region for  the secon dary addre ss.
  744                    ///  </summary>
  745                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_count ry")]
  746                    publ ic string  Address2_C ountry
  747                    {
  748                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  749                             get
  750                             {
  751                                      return t his.GetAtt ributeValu e<string>( "address2_ country");
  752                             }
  753                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  754                             set
  755                             {
  756                                      this.OnP ropertyCha nging("Add ress2_Coun try");
  757                                      this.Set AttributeV alue("addr ess2_count ry", value );
  758                                      this.OnP ropertyCha nged("Addr ess2_Count ry");
  759                             }
  760                    }
  761                    
  762                    ///  <summary>
  763                    ///  Type the c ounty for  the second ary addres s.
  764                    ///  </summary>
  765                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_count y")]
  766                    publ ic string  Address2_C ounty
  767                    {
  768                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  769                             get
  770                             {
  771                                      return t his.GetAtt ributeValu e<string>( "address2_ county");
  772                             }
  773                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  774                             set
  775                             {
  776                                      this.OnP ropertyCha nging("Add ress2_Coun ty");
  777                                      this.Set AttributeV alue("addr ess2_count y", value) ;
  778                                      this.OnP ropertyCha nged("Addr ess2_Count y");
  779                             }
  780                    }
  781                    
  782                    ///  <summary>
  783                    ///  Type the f ax number  associated  with the  secondary  address.
  784                    ///  </summary>
  785                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_fax") ]
  786                    publ ic string  Address2_F ax
  787                    {
  788                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  789                             get
  790                             {
  791                                      return t his.GetAtt ributeValu e<string>( "address2_ fax");
  792                             }
  793                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  794                             set
  795                             {
  796                                      this.OnP ropertyCha nging("Add ress2_Fax" );
  797                                      this.Set AttributeV alue("addr ess2_fax",  value);
  798                                      this.OnP ropertyCha nged("Addr ess2_Fax") ;
  799                             }
  800                    }
  801                    
  802                    ///  <summary>
  803                    ///  Select the  freight t erms for t he seconda ry address  to make s ure shippi ng orders  are proces sed correc tly.
  804                    ///  </summary>
  805                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_freig httermscod e")]
  806                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Addr ess2_Freig htTermsCod e
  807                    {
  808                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  809                             get
  810                             {
  811                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("add ress2_frei ghttermsco de");
  812                             }
  813                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  814                             set
  815                             {
  816                                      this.OnP ropertyCha nging("Add ress2_Frei ghtTermsCo de");
  817                                      this.Set AttributeV alue("addr ess2_freig httermscod e", value) ;
  818                                      this.OnP ropertyCha nged("Addr ess2_Freig htTermsCod e");
  819                             }
  820                    }
  821                    
  822                    ///  <summary>
  823                    ///  Type the l atitude va lue for th e secondar y address  for use in  mapping a nd other a pplication s.
  824                    ///  </summary>
  825                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_latit ude")]
  826                    publ ic System. Nullable<d ouble> Add ress2_Lati tude
  827                    {
  828                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  829                             get
  830                             {
  831                                      return t his.GetAtt ributeValu e<System.N ullable<do uble>>("ad dress2_lat itude");
  832                             }
  833                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  834                             set
  835                             {
  836                                      this.OnP ropertyCha nging("Add ress2_Lati tude");
  837                                      this.Set AttributeV alue("addr ess2_latit ude", valu e);
  838                                      this.OnP ropertyCha nged("Addr ess2_Latit ude");
  839                             }
  840                    }
  841                    
  842                    ///  <summary>
  843                    ///  Type the f irst line  of the sec ondary add ress.
  844                    ///  </summary>
  845                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_line1 ")]
  846                    publ ic string  Address2_L ine1
  847                    {
  848                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  849                             get
  850                             {
  851                                      return t his.GetAtt ributeValu e<string>( "address2_ line1");
  852                             }
  853                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  854                             set
  855                             {
  856                                      this.OnP ropertyCha nging("Add ress2_Line 1");
  857                                      this.Set AttributeV alue("addr ess2_line1 ", value);
  858                                      this.OnP ropertyCha nged("Addr ess2_Line1 ");
  859                             }
  860                    }
  861                    
  862                    ///  <summary>
  863                    ///  Type the s econd line  of the se condary ad dress.
  864                    ///  </summary>
  865                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_line2 ")]
  866                    publ ic string  Address2_L ine2
  867                    {
  868                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  869                             get
  870                             {
  871                                      return t his.GetAtt ributeValu e<string>( "address2_ line2");
  872                             }
  873                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  874                             set
  875                             {
  876                                      this.OnP ropertyCha nging("Add ress2_Line 2");
  877                                      this.Set AttributeV alue("addr ess2_line2 ", value);
  878                                      this.OnP ropertyCha nged("Addr ess2_Line2 ");
  879                             }
  880                    }
  881                    
  882                    ///  <summary>
  883                    ///  Type the t hird line  of the sec ondary add ress.
  884                    ///  </summary>
  885                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_line3 ")]
  886                    publ ic string  Address2_L ine3
  887                    {
  888                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  889                             get
  890                             {
  891                                      return t his.GetAtt ributeValu e<string>( "address2_ line3");
  892                             }
  893                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  894                             set
  895                             {
  896                                      this.OnP ropertyCha nging("Add ress2_Line 3");
  897                                      this.Set AttributeV alue("addr ess2_line3 ", value);
  898                                      this.OnP ropertyCha nged("Addr ess2_Line3 ");
  899                             }
  900                    }
  901                    
  902                    ///  <summary>
  903                    ///  Type the l ongitude v alue for t he seconda ry address  for use i n mapping  and other  applicatio ns.
  904                    ///  </summary>
  905                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_longi tude")]
  906                    publ ic System. Nullable<d ouble> Add ress2_Long itude
  907                    {
  908                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  909                             get
  910                             {
  911                                      return t his.GetAtt ributeValu e<System.N ullable<do uble>>("ad dress2_lon gitude");
  912                             }
  913                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  914                             set
  915                             {
  916                                      this.OnP ropertyCha nging("Add ress2_Long itude");
  917                                      this.Set AttributeV alue("addr ess2_longi tude", val ue);
  918                                      this.OnP ropertyCha nged("Addr ess2_Longi tude");
  919                             }
  920                    }
  921                    
  922                    ///  <summary>
  923                    ///  Type a des criptive n ame for th e secondar y address,  such as C orporate H eadquarter s.
  924                    ///  </summary>
  925                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_name" )]
  926                    publ ic string  Address2_N ame
  927                    {
  928                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  929                             get
  930                             {
  931                                      return t his.GetAtt ributeValu e<string>( "address2_ name");
  932                             }
  933                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  934                             set
  935                             {
  936                                      this.OnP ropertyCha nging("Add ress2_Name ");
  937                                      this.Set AttributeV alue("addr ess2_name" , value);
  938                                      this.OnP ropertyCha nged("Addr ess2_Name" );
  939                             }
  940                    }
  941                    
  942                    ///  <summary>
  943                    ///  Type the Z IP Code or  postal co de for the  secondary  address.
  944                    ///  </summary>
  945                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_posta lcode")]
  946                    publ ic string  Address2_P ostalCode
  947                    {
  948                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  949                             get
  950                             {
  951                                      return t his.GetAtt ributeValu e<string>( "address2_ postalcode ");
  952                             }
  953                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  954                             set
  955                             {
  956                                      this.OnP ropertyCha nging("Add ress2_Post alCode");
  957                                      this.Set AttributeV alue("addr ess2_posta lcode", va lue);
  958                                      this.OnP ropertyCha nged("Addr ess2_Posta lCode");
  959                             }
  960                    }
  961                    
  962                    ///  <summary>
  963                    ///  Type the p ost office  box numbe r of the s econdary a ddress.
  964                    ///  </summary>
  965                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_posto fficebox") ]
  966                    publ ic string  Address2_P ostOfficeB ox
  967                    {
  968                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  969                             get
  970                             {
  971                                      return t his.GetAtt ributeValu e<string>( "address2_ postoffice box");
  972                             }
  973                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  974                             set
  975                             {
  976                                      this.OnP ropertyCha nging("Add ress2_Post OfficeBox" );
  977                                      this.Set AttributeV alue("addr ess2_posto fficebox",  value);
  978                                      this.OnP ropertyCha nged("Addr ess2_PostO fficeBox") ;
  979                             }
  980                    }
  981                    
  982                    ///  <summary>
  983                    ///  Type the n ame of the  main cont act at the  account's  secondary  address.
  984                    ///  </summary>
  985                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_prima rycontactn ame")]
  986                    publ ic string  Address2_P rimaryCont actName
  987                    {
  988                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  989                             get
  990                             {
  991                                      return t his.GetAtt ributeValu e<string>( "address2_ primarycon tactname") ;
  992                             }
  993                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  994                             set
  995                             {
  996                                      this.OnP ropertyCha nging("Add ress2_Prim aryContact Name");
  997                                      this.Set AttributeV alue("addr ess2_prima rycontactn ame", valu e);
  998                                      this.OnP ropertyCha nged("Addr ess2_Prima ryContactN ame");
  999                             }
  1000                    }
  1001                    
  1002                    ///  <summary>
  1003                    ///  Select a s hipping me thod for d eliveries  sent to th is address .
  1004                    ///  </summary>
  1005                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_shipp ingmethodc ode")]
  1006                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Addr ess2_Shipp ingMethodC ode
  1007                    {
  1008                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1009                             get
  1010                             {
  1011                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("add ress2_ship pingmethod code");
  1012                             }
  1013                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1014                             set
  1015                             {
  1016                                      this.OnP ropertyCha nging("Add ress2_Ship pingMethod Code");
  1017                                      this.Set AttributeV alue("addr ess2_shipp ingmethodc ode", valu e);
  1018                                      this.OnP ropertyCha nged("Addr ess2_Shipp ingMethodC ode");
  1019                             }
  1020                    }
  1021                    
  1022                    ///  <summary>
  1023                    ///  Type the s tate or pr ovince of  the second ary addres s.
  1024                    ///  </summary>
  1025                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_state orprovince ")]
  1026                    publ ic string  Address2_S tateOrProv ince
  1027                    {
  1028                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1029                             get
  1030                             {
  1031                                      return t his.GetAtt ributeValu e<string>( "address2_ stateorpro vince");
  1032                             }
  1033                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1034                             set
  1035                             {
  1036                                      this.OnP ropertyCha nging("Add ress2_Stat eOrProvinc e");
  1037                                      this.Set AttributeV alue("addr ess2_state orprovince ", value);
  1038                                      this.OnP ropertyCha nged("Addr ess2_State OrProvince ");
  1039                             }
  1040                    }
  1041                    
  1042                    ///  <summary>
  1043                    ///  Type the m ain phone  number ass ociated wi th the sec ondary add ress.
  1044                    ///  </summary>
  1045                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_telep hone1")]
  1046                    publ ic string  Address2_T elephone1
  1047                    {
  1048                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1049                             get
  1050                             {
  1051                                      return t his.GetAtt ributeValu e<string>( "address2_ telephone1 ");
  1052                             }
  1053                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1054                             set
  1055                             {
  1056                                      this.OnP ropertyCha nging("Add ress2_Tele phone1");
  1057                                      this.Set AttributeV alue("addr ess2_telep hone1", va lue);
  1058                                      this.OnP ropertyCha nged("Addr ess2_Telep hone1");
  1059                             }
  1060                    }
  1061                    
  1062                    ///  <summary>
  1063                    ///  Type a sec ond phone  number ass ociated wi th the sec ondary add ress.
  1064                    ///  </summary>
  1065                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_telep hone2")]
  1066                    publ ic string  Address2_T elephone2
  1067                    {
  1068                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1069                             get
  1070                             {
  1071                                      return t his.GetAtt ributeValu e<string>( "address2_ telephone2 ");
  1072                             }
  1073                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1074                             set
  1075                             {
  1076                                      this.OnP ropertyCha nging("Add ress2_Tele phone2");
  1077                                      this.Set AttributeV alue("addr ess2_telep hone2", va lue);
  1078                                      this.OnP ropertyCha nged("Addr ess2_Telep hone2");
  1079                             }
  1080                    }
  1081                    
  1082                    ///  <summary>
  1083                    ///  Type a thi rd phone n umber asso ciated wit h the seco ndary addr ess.
  1084                    ///  </summary>
  1085                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_telep hone3")]
  1086                    publ ic string  Address2_T elephone3
  1087                    {
  1088                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1089                             get
  1090                             {
  1091                                      return t his.GetAtt ributeValu e<string>( "address2_ telephone3 ");
  1092                             }
  1093                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1094                             set
  1095                             {
  1096                                      this.OnP ropertyCha nging("Add ress2_Tele phone3");
  1097                                      this.Set AttributeV alue("addr ess2_telep hone3", va lue);
  1098                                      this.OnP ropertyCha nged("Addr ess2_Telep hone3");
  1099                             }
  1100                    }
  1101                    
  1102                    ///  <summary>
  1103                    ///  Type the U PS zone of  the secon dary addre ss to make  sure ship ping charg es are cal culated co rrectly an d deliveri es are mad e promptly , if shipp ed by UPS.
  1104                    ///  </summary>
  1105                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_upszo ne")]
  1106                    publ ic string  Address2_U PSZone
  1107                    {
  1108                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1109                             get
  1110                             {
  1111                                      return t his.GetAtt ributeValu e<string>( "address2_ upszone");
  1112                             }
  1113                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1114                             set
  1115                             {
  1116                                      this.OnP ropertyCha nging("Add ress2_UPSZ one");
  1117                                      this.Set AttributeV alue("addr ess2_upszo ne", value );
  1118                                      this.OnP ropertyCha nged("Addr ess2_UPSZo ne");
  1119                             }
  1120                    }
  1121                    
  1122                    ///  <summary>
  1123                    ///  Select the  time zone , or UTC o ffset, for  this addr ess so tha t other pe ople can r eference i t when the y contact  someone at  this addr ess.
  1124                    ///  </summary>
  1125                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_utcof fset")]
  1126                    publ ic System. Nullable<i nt> Addres s2_UTCOffs et
  1127                    {
  1128                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1129                             get
  1130                             {
  1131                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("addre ss2_utcoff set");
  1132                             }
  1133                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1134                             set
  1135                             {
  1136                                      this.OnP ropertyCha nging("Add ress2_UTCO ffset");
  1137                                      this.Set AttributeV alue("addr ess2_utcof fset", val ue);
  1138                                      this.OnP ropertyCha nged("Addr ess2_UTCOf fset");
  1139                             }
  1140                    }
  1141                    
  1142                    ///  <summary>
  1143                    ///  For system  use only.
  1144                    ///  </summary>
  1145                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("agin g30")]
  1146                    publ ic Microso ft.Xrm.Sdk .Money Agi ng30
  1147                    {
  1148                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1149                             get
  1150                             {
  1151                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. Money>("ag ing30");
  1152                             }
  1153                    }
  1154                    
  1155                    ///  <summary>
  1156                    ///  The base c urrency eq uivalent o f the agin g 30 field .
  1157                    ///  </summary>
  1158                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("agin g30_base") ]
  1159                    publ ic Microso ft.Xrm.Sdk .Money Agi ng30_Base
  1160                    {
  1161                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1162                             get
  1163                             {
  1164                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. Money>("ag ing30_base ");
  1165                             }
  1166                    }
  1167                    
  1168                    ///  <summary>
  1169                    ///  For system  use only.
  1170                    ///  </summary>
  1171                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("agin g60")]
  1172                    publ ic Microso ft.Xrm.Sdk .Money Agi ng60
  1173                    {
  1174                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1175                             get
  1176                             {
  1177                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. Money>("ag ing60");
  1178                             }
  1179                    }
  1180                    
  1181                    ///  <summary>
  1182                    ///  The base c urrency eq uivalent o f the agin g 60 field .
  1183                    ///  </summary>
  1184                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("agin g60_base") ]
  1185                    publ ic Microso ft.Xrm.Sdk .Money Agi ng60_Base
  1186                    {
  1187                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1188                             get
  1189                             {
  1190                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. Money>("ag ing60_base ");
  1191                             }
  1192                    }
  1193                    
  1194                    ///  <summary>
  1195                    ///  For system  use only.
  1196                    ///  </summary>
  1197                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("agin g90")]
  1198                    publ ic Microso ft.Xrm.Sdk .Money Agi ng90
  1199                    {
  1200                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1201                             get
  1202                             {
  1203                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. Money>("ag ing90");
  1204                             }
  1205                    }
  1206                    
  1207                    ///  <summary>
  1208                    ///  The base c urrency eq uivalent o f the agin g 90 field .
  1209                    ///  </summary>
  1210                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("agin g90_base") ]
  1211                    publ ic Microso ft.Xrm.Sdk .Money Agi ng90_Base
  1212                    {
  1213                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1214                             get
  1215                             {
  1216                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. Money>("ag ing90_base ");
  1217                             }
  1218                    }
  1219                    
  1220                    ///  <summary>
  1221                    ///  Select the  legal des ignation o r other bu siness typ e of the a ccount for  contracts  or report ing purpos es.
  1222                    ///  </summary>
  1223                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("busi nesstypeco de")]
  1224                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Busi nessTypeCo de
  1225                    {
  1226                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1227                             get
  1228                             {
  1229                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("bus inesstypec ode");
  1230                             }
  1231                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1232                             set
  1233                             {
  1234                                      this.OnP ropertyCha nging("Bus inessTypeC ode");
  1235                                      this.Set AttributeV alue("busi nesstypeco de", value );
  1236                                      this.OnP ropertyCha nged("Busi nessTypeCo de");
  1237                             }
  1238                    }
  1239                    
  1240                    ///  <summary>
  1241                    ///  Shows who  created th e record.
  1242                    ///  </summary>
  1243                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedby")]
  1244                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedBy
  1245                    {
  1246                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1247                             get
  1248                             {
  1249                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedby");
  1250                             }
  1251                    }
  1252                    
  1253                    ///  <summary>
  1254                    ///  Shows the  external p arty who c reated the  record.
  1255                    ///  </summary>
  1256                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedbyexter nalparty") ]
  1257                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedByExte rnalParty
  1258                    {
  1259                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1260                             get
  1261                             {
  1262                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedbyext ernalparty ");
  1263                             }
  1264                    }
  1265                    
  1266                    ///  <summary>
  1267                    ///  Shows the  date and t ime when t he record  was create d. The dat e and time  are displ ayed in th e time zon e selected  in Micros oft Dynami cs 365 opt ions.
  1268                    ///  </summary>
  1269                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedon")]
  1270                    publ ic System. Nullable<S ystem.Date Time> Crea tedOn
  1271                    {
  1272                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1273                             get
  1274                             {
  1275                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("cre atedon");
  1276                             }
  1277                    }
  1278                    
  1279                    ///  <summary>
  1280                    ///  Shows who  created th e record o n behalf o f another  user.
  1281                    ///  </summary>
  1282                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedonbehal fby")]
  1283                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedOnBeha lfBy
  1284                    {
  1285                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1286                             get
  1287                             {
  1288                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedonbeh alfby");
  1289                             }
  1290                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1291                             set
  1292                             {
  1293                                      this.OnP ropertyCha nging("Cre atedOnBeha lfBy");
  1294                                      this.Set AttributeV alue("crea tedonbehal fby", valu e);
  1295                                      this.OnP ropertyCha nged("Crea tedOnBehal fBy");
  1296                             }
  1297                    }
  1298                    
  1299                    ///  <summary>
  1300                    ///  Type the c redit limi t of the a ccount. Th is is a us eful refer ence when  you addres s invoice  and accoun ting issue s with the  customer.
  1301                    ///  </summary>
  1302                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("cred itlimit")]
  1303                    publ ic Microso ft.Xrm.Sdk .Money Cre ditLimit
  1304                    {
  1305                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1306                             get
  1307                             {
  1308                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. Money>("cr editlimit" );
  1309                             }
  1310                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1311                             set
  1312                             {
  1313                                      this.OnP ropertyCha nging("Cre ditLimit") ;
  1314                                      this.Set AttributeV alue("cred itlimit",  value);
  1315                                      this.OnP ropertyCha nged("Cred itLimit");
  1316                             }
  1317                    }
  1318                    
  1319                    ///  <summary>
  1320                    ///  Shows the  credit lim it convert ed to the  system's d efault bas e currency  for repor ting purpo ses.
  1321                    ///  </summary>
  1322                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("cred itlimit_ba se")]
  1323                    publ ic Microso ft.Xrm.Sdk .Money Cre ditLimit_B ase
  1324                    {
  1325                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1326                             get
  1327                             {
  1328                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. Money>("cr editlimit_ base");
  1329                             }
  1330                    }
  1331                    
  1332                    ///  <summary>
  1333                    ///  Select whe ther the c redit for  the accoun t is on ho ld. This i s a useful  reference  while add ressing th e invoice  and accoun ting issue s with the  customer.
  1334                    ///  </summary>
  1335                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("cred itonhold") ]
  1336                    publ ic System. Nullable<b ool> Credi tOnHold
  1337                    {
  1338                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1339                             get
  1340                             {
  1341                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("cred itonhold") ;
  1342                             }
  1343                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1344                             set
  1345                             {
  1346                                      this.OnP ropertyCha nging("Cre ditOnHold" );
  1347                                      this.Set AttributeV alue("cred itonhold",  value);
  1348                                      this.OnP ropertyCha nged("Cred itOnHold") ;
  1349                             }
  1350                    }
  1351                    
  1352                    ///  <summary>
  1353                    ///  Select the  size cate gory or ra nge of the  account f or segment ation and  reporting  purposes.
  1354                    ///  </summary>
  1355                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("cust omersizeco de")]
  1356                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Cust omerSizeCo de
  1357                    {
  1358                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1359                             get
  1360                             {
  1361                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("cus tomersizec ode");
  1362                             }
  1363                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1364                             set
  1365                             {
  1366                                      this.OnP ropertyCha nging("Cus tomerSizeC ode");
  1367                                      this.Set AttributeV alue("cust omersizeco de", value );
  1368                                      this.OnP ropertyCha nged("Cust omerSizeCo de");
  1369                             }
  1370                    }
  1371                    
  1372                    ///  <summary>
  1373                    ///  Select the  category  that best  describes  the relati onship bet ween the a ccount and  your orga nization.
  1374                    ///  </summary>
  1375                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("cust omertypeco de")]
  1376                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Cust omerTypeCo de
  1377                    {
  1378                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1379                             get
  1380                             {
  1381                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("cus tomertypec ode");
  1382                             }
  1383                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1384                             set
  1385                             {
  1386                                      this.OnP ropertyCha nging("Cus tomerTypeC ode");
  1387                                      this.Set AttributeV alue("cust omertypeco de", value );
  1388                                      this.OnP ropertyCha nged("Cust omerTypeCo de");
  1389                             }
  1390                    }
  1391                    
  1392                    ///  <summary>
  1393                    ///  Choose the  default p rice list  associated  with the  account to  make sure  the corre ct product  prices fo r this cus tomer are  applied in  sales opp ortunities , quotes,  and orders .
  1394                    ///  </summary>
  1395                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("defa ultpricele velid")]
  1396                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Def aultPriceL evelId
  1397                    {
  1398                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1399                             get
  1400                             {
  1401                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("de faultprice levelid");
  1402                             }
  1403                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1404                             set
  1405                             {
  1406                                      this.OnP ropertyCha nging("Def aultPriceL evelId");
  1407                                      this.Set AttributeV alue("defa ultpricele velid", va lue);
  1408                                      this.OnP ropertyCha nged("Defa ultPriceLe velId");
  1409                             }
  1410                    }
  1411                    
  1412                    ///  <summary>
  1413                    ///  Type addit ional info rmation to  describe  the accoun t, such as  an excerp t from the  company's  website.
  1414                    ///  </summary>
  1415                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("desc ription")]
  1416                    publ ic string  Descriptio n
  1417                    {
  1418                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1419                             get
  1420                             {
  1421                                      return t his.GetAtt ributeValu e<string>( "descripti on");
  1422                             }
  1423                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1424                             set
  1425                             {
  1426                                      this.OnP ropertyCha nging("Des cription") ;
  1427                                      this.Set AttributeV alue("desc ription",  value);
  1428                                      this.OnP ropertyCha nged("Desc ription");
  1429                             }
  1430                    }
  1431                    
  1432                    ///  <summary>
  1433                    ///  Select whe ther the a ccount all ows bulk e mail sent  through ca mpaigns. I f Do Not A llow is se lected, th e account  can be add ed to mark eting list s, but is  excluded f rom email.
  1434                    ///  </summary>
  1435                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("dono tbulkemail ")]
  1436                    publ ic System. Nullable<b ool> DoNot BulkEMail
  1437                    {
  1438                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1439                             get
  1440                             {
  1441                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("dono tbulkemail ");
  1442                             }
  1443                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1444                             set
  1445                             {
  1446                                      this.OnP ropertyCha nging("DoN otBulkEMai l");
  1447                                      this.Set AttributeV alue("dono tbulkemail ", value);
  1448                                      this.OnP ropertyCha nged("DoNo tBulkEMail ");
  1449                             }
  1450                    }
  1451                    
  1452                    ///  <summary>
  1453                    ///  Select whe ther the a ccount all ows bulk p ostal mail  sent thro ugh market ing campai gns or qui ck campaig ns. If Do  Not Allow  is selecte d, the acc ount can b e added to  marketing  lists, bu t will be  excluded f rom the po stal mail.
  1454                    ///  </summary>
  1455                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("dono tbulkposta lmail")]
  1456                    publ ic System. Nullable<b ool> DoNot BulkPostal Mail
  1457                    {
  1458                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1459                             get
  1460                             {
  1461                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("dono tbulkposta lmail");
  1462                             }
  1463                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1464                             set
  1465                             {
  1466                                      this.OnP ropertyCha nging("DoN otBulkPost alMail");
  1467                                      this.Set AttributeV alue("dono tbulkposta lmail", va lue);
  1468                                      this.OnP ropertyCha nged("DoNo tBulkPosta lMail");
  1469                             }
  1470                    }
  1471                    
  1472                    ///  <summary>
  1473                    ///  Select whe ther the a ccount all ows direct  email sen t from Mic rosoft Dyn amics 365.
  1474                    ///  </summary>
  1475                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("dono temail")]
  1476                    publ ic System. Nullable<b ool> DoNot EMail
  1477                    {
  1478                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1479                             get
  1480                             {
  1481                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("dono temail");
  1482                             }
  1483                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1484                             set
  1485                             {
  1486                                      this.OnP ropertyCha nging("DoN otEMail");
  1487                                      this.Set AttributeV alue("dono temail", v alue);
  1488                                      this.OnP ropertyCha nged("DoNo tEMail");
  1489                             }
  1490                    }
  1491                    
  1492                    ///  <summary>
  1493                    ///  Select whe ther the a ccount all ows faxes.  If Do Not  Allow is  selected,  the accoun t will be  excluded f rom fax ac tivities d istributed  in market ing campai gns.
  1494                    ///  </summary>
  1495                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("dono tfax")]
  1496                    publ ic System. Nullable<b ool> DoNot Fax
  1497                    {
  1498                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1499                             get
  1500                             {
  1501                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("dono tfax");
  1502                             }
  1503                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1504                             set
  1505                             {
  1506                                      this.OnP ropertyCha nging("DoN otFax");
  1507                                      this.Set AttributeV alue("dono tfax", val ue);
  1508                                      this.OnP ropertyCha nged("DoNo tFax");
  1509                             }
  1510                    }
  1511                    
  1512                    ///  <summary>
  1513                    ///  Select whe ther the a ccount all ows phone  calls. If  Do Not All ow is sele cted, the  account wi ll be excl uded from  phone call  activitie s distribu ted in mar keting cam paigns.
  1514                    ///  </summary>
  1515                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("dono tphone")]
  1516                    publ ic System. Nullable<b ool> DoNot Phone
  1517                    {
  1518                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1519                             get
  1520                             {
  1521                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("dono tphone");
  1522                             }
  1523                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1524                             set
  1525                             {
  1526                                      this.OnP ropertyCha nging("DoN otPhone");
  1527                                      this.Set AttributeV alue("dono tphone", v alue);
  1528                                      this.OnP ropertyCha nged("DoNo tPhone");
  1529                             }
  1530                    }
  1531                    
  1532                    ///  <summary>
  1533                    ///  Select whe ther the a ccount all ows direct  mail. If  Do Not All ow is sele cted, the  account wi ll be excl uded from  letter act ivities di stributed  in marketi ng campaig ns.
  1534                    ///  </summary>
  1535                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("dono tpostalmai l")]
  1536                    publ ic System. Nullable<b ool> DoNot PostalMail
  1537                    {
  1538                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1539                             get
  1540                             {
  1541                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("dono tpostalmai l");
  1542                             }
  1543                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1544                             set
  1545                             {
  1546                                      this.OnP ropertyCha nging("DoN otPostalMa il");
  1547                                      this.Set AttributeV alue("dono tpostalmai l", value) ;
  1548                                      this.OnP ropertyCha nged("DoNo tPostalMai l");
  1549                             }
  1550                    }
  1551                    
  1552                    ///  <summary>
  1553                    ///  Select whe ther the a ccount acc epts marke ting mater ials, such  as brochu res or cat alogs.
  1554                    ///  </summary>
  1555                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("dono tsendmm")]
  1556                    publ ic System. Nullable<b ool> DoNot SendMM
  1557                    {
  1558                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1559                             get
  1560                             {
  1561                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("dono tsendmm");
  1562                             }
  1563                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1564                             set
  1565                             {
  1566                                      this.OnP ropertyCha nging("DoN otSendMM") ;
  1567                                      this.Set AttributeV alue("dono tsendmm",  value);
  1568                                      this.OnP ropertyCha nged("DoNo tSendMM");
  1569                             }
  1570                    }
  1571                    
  1572                    ///  <summary>
  1573                    ///  Type the p rimary ema il address  for the a ccount.
  1574                    ///  </summary>
  1575                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("emai laddress1" )]
  1576                    publ ic string  EMailAddre ss1
  1577                    {
  1578                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1579                             get
  1580                             {
  1581                                      return t his.GetAtt ributeValu e<string>( "emailaddr ess1");
  1582                             }
  1583                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1584                             set
  1585                             {
  1586                                      this.OnP ropertyCha nging("EMa ilAddress1 ");
  1587                                      this.Set AttributeV alue("emai laddress1" , value);
  1588                                      this.OnP ropertyCha nged("EMai lAddress1" );
  1589                             }
  1590                    }
  1591                    
  1592                    ///  <summary>
  1593                    ///  Type the s econdary e mail addre ss for the  account.
  1594                    ///  </summary>
  1595                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("emai laddress2" )]
  1596                    publ ic string  EMailAddre ss2
  1597                    {
  1598                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1599                             get
  1600                             {
  1601                                      return t his.GetAtt ributeValu e<string>( "emailaddr ess2");
  1602                             }
  1603                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1604                             set
  1605                             {
  1606                                      this.OnP ropertyCha nging("EMa ilAddress2 ");
  1607                                      this.Set AttributeV alue("emai laddress2" , value);
  1608                                      this.OnP ropertyCha nged("EMai lAddress2" );
  1609                             }
  1610                    }
  1611                    
  1612                    ///  <summary>
  1613                    ///  Type an al ternate em ail addres s for the  account.
  1614                    ///  </summary>
  1615                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("emai laddress3" )]
  1616                    publ ic string  EMailAddre ss3
  1617                    {
  1618                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1619                             get
  1620                             {
  1621                                      return t his.GetAtt ributeValu e<string>( "emailaddr ess3");
  1622                             }
  1623                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1624                             set
  1625                             {
  1626                                      this.OnP ropertyCha nging("EMa ilAddress3 ");
  1627                                      this.Set AttributeV alue("emai laddress3" , value);
  1628                                      this.OnP ropertyCha nged("EMai lAddress3" );
  1629                             }
  1630                    }
  1631                    
  1632                    ///  <summary>
  1633                    ///  Shows the  default im age for th e record.
  1634                    ///  </summary>
  1635                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("enti tyimage")]
  1636                    publ ic byte[]  EntityImag e
  1637                    {
  1638                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1639                             get
  1640                             {
  1641                                      return t his.GetAtt ributeValu e<byte[]>( "entityima ge");
  1642                             }
  1643                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1644                             set
  1645                             {
  1646                                      this.OnP ropertyCha nging("Ent ityImage") ;
  1647                                      this.Set AttributeV alue("enti tyimage",  value);
  1648                                      this.OnP ropertyCha nged("Enti tyImage");
  1649                             }
  1650                    }
  1651                    
  1652                    ///  <summary>
  1653                    /// 
  1654                    ///  </summary>
  1655                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("enti tyimage_ti mestamp")]
  1656                    publ ic System. Nullable<l ong> Entit yImage_Tim estamp
  1657                    {
  1658                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1659                             get
  1660                             {
  1661                                      return t his.GetAtt ributeValu e<System.N ullable<lo ng>>("enti tyimage_ti mestamp");
  1662                             }
  1663                    }
  1664                    
  1665                    ///  <summary>
  1666                    /// 
  1667                    ///  </summary>
  1668                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("enti tyimage_ur l")]
  1669                    publ ic string  EntityImag e_URL
  1670                    {
  1671                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1672                             get
  1673                             {
  1674                                      return t his.GetAtt ributeValu e<string>( "entityima ge_url");
  1675                             }
  1676                    }
  1677                    
  1678                    ///  <summary>
  1679                    ///  For intern al use onl y.
  1680                    ///  </summary>
  1681                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("enti tyimageid" )]
  1682                    publ ic System. Nullable<S ystem.Guid > EntityIm ageId
  1683                    {
  1684                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1685                             get
  1686                             {
  1687                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("entityi mageid");
  1688                             }
  1689                    }
  1690                    
  1691                    ///  <summary>
  1692                    ///  Shows the  conversion  rate of t he record' s currency . The exch ange rate  is used to  convert a ll money f ields in t he record  from the l ocal curre ncy to the  system's  default cu rrency.
  1693                    ///  </summary>
  1694                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("exch angerate") ]
  1695                    publ ic System. Nullable<d ecimal> Ex changeRate
  1696                    {
  1697                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1698                             get
  1699                             {
  1700                                      return t his.GetAtt ributeValu e<System.N ullable<de cimal>>("e xchangerat e");
  1701                             }
  1702                    }
  1703                    
  1704                    ///  <summary>
  1705                    ///  Type the f ax number  for the ac count.
  1706                    ///  </summary>
  1707                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("fax" )]
  1708                    publ ic string  Fax
  1709                    {
  1710                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1711                             get
  1712                             {
  1713                                      return t his.GetAtt ributeValu e<string>( "fax");
  1714                             }
  1715                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1716                             set
  1717                             {
  1718                                      this.OnP ropertyCha nging("Fax ");
  1719                                      this.Set AttributeV alue("fax" , value);
  1720                                      this.OnP ropertyCha nged("Fax" );
  1721                             }
  1722                    }
  1723                    
  1724                    ///  <summary>
  1725                    ///  Informatio n about wh ether to a llow follo wing email  activity  like opens , attachme nt views a nd link cl icks for e mails sent  to the ac count.
  1726                    ///  </summary>
  1727                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("foll owemail")]
  1728                    publ ic System. Nullable<b ool> Follo wEmail
  1729                    {
  1730                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1731                             get
  1732                             {
  1733                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("foll owemail");
  1734                             }
  1735                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1736                             set
  1737                             {
  1738                                      this.OnP ropertyCha nging("Fol lowEmail") ;
  1739                                      this.Set AttributeV alue("foll owemail",  value);
  1740                                      this.OnP ropertyCha nged("Foll owEmail");
  1741                             }
  1742                    }
  1743                    
  1744                    ///  <summary>
  1745                    ///  Type the U RL for the  account's  FTP site  to enable  users to a ccess data  and share  documents .
  1746                    ///  </summary>
  1747                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ftps iteurl")]
  1748                    publ ic string  FtpSiteURL
  1749                    {
  1750                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1751                             get
  1752                             {
  1753                                      return t his.GetAtt ributeValu e<string>( "ftpsiteur l");
  1754                             }
  1755                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1756                             set
  1757                             {
  1758                                      this.OnP ropertyCha nging("Ftp SiteURL");
  1759                                      this.Set AttributeV alue("ftps iteurl", v alue);
  1760                                      this.OnP ropertyCha nged("FtpS iteURL");
  1761                             }
  1762                    }
  1763                    
  1764                    ///  <summary>
  1765                    ///  Unique ide ntifier of  the data  import or  data migra tion that  created th is record.
  1766                    ///  </summary>
  1767                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("impo rtsequence number")]
  1768                    publ ic System. Nullable<i nt> Import SequenceNu mber
  1769                    {
  1770                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1771                             get
  1772                             {
  1773                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("impor tsequencen umber");
  1774                             }
  1775                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1776                             set
  1777                             {
  1778                                      this.OnP ropertyCha nging("Imp ortSequenc eNumber");
  1779                                      this.Set AttributeV alue("impo rtsequence number", v alue);
  1780                                      this.OnP ropertyCha nged("Impo rtSequence Number");
  1781                             }
  1782                    }
  1783                    
  1784                    ///  <summary>
  1785                    ///  Select the  account's  primary i ndustry fo r use in m arketing s egmentatio n and demo graphic an alysis.
  1786                    ///  </summary>
  1787                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("indu strycode") ]
  1788                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Indu stryCode
  1789                    {
  1790                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1791                             get
  1792                             {
  1793                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("ind ustrycode" );
  1794                             }
  1795                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1796                             set
  1797                             {
  1798                                      this.OnP ropertyCha nging("Ind ustryCode" );
  1799                                      this.Set AttributeV alue("indu strycode",  value);
  1800                                      this.OnP ropertyCha nged("Indu stryCode") ;
  1801                             }
  1802                    }
  1803                    
  1804                    ///  <summary>
  1805                    ///  Contains t he date an d time sta mp of the  last on ho ld time.
  1806                    ///  </summary>
  1807                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("last onholdtime ")]
  1808                    publ ic System. Nullable<S ystem.Date Time> Last OnHoldTime
  1809                    {
  1810                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1811                             get
  1812                             {
  1813                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("las tonholdtim e");
  1814                             }
  1815                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1816                             set
  1817                             {
  1818                                      this.OnP ropertyCha nging("Las tOnHoldTim e");
  1819                                      this.Set AttributeV alue("last onholdtime ", value);
  1820                                      this.OnP ropertyCha nged("Last OnHoldTime ");
  1821                             }
  1822                    }
  1823                    
  1824                    ///  <summary>
  1825                    ///  Shows the  date when  the accoun t was last  included  in a marke ting campa ign or qui ck campaig n.
  1826                    ///  </summary>
  1827                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("last usedincamp aign")]
  1828                    publ ic System. Nullable<S ystem.Date Time> Last UsedInCamp aign
  1829                    {
  1830                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1831                             get
  1832                             {
  1833                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("las tusedincam paign");
  1834                             }
  1835                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1836                             set
  1837                             {
  1838                                      this.OnP ropertyCha nging("Las tUsedInCam paign");
  1839                                      this.Set AttributeV alue("last usedincamp aign", val ue);
  1840                                      this.OnP ropertyCha nged("Last UsedInCamp aign");
  1841                             }
  1842                    }
  1843                    
  1844                    ///  <summary>
  1845                    ///  Type the m arket capi talization  of the ac count to i dentify th e company' s equity,  used as an  indicator  in financ ial perfor mance anal ysis.
  1846                    ///  </summary>
  1847                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("mark etcap")]
  1848                    publ ic Microso ft.Xrm.Sdk .Money Mar ketCap
  1849                    {
  1850                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1851                             get
  1852                             {
  1853                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. Money>("ma rketcap");
  1854                             }
  1855                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1856                             set
  1857                             {
  1858                                      this.OnP ropertyCha nging("Mar ketCap");
  1859                                      this.Set AttributeV alue("mark etcap", va lue);
  1860                                      this.OnP ropertyCha nged("Mark etCap");
  1861                             }
  1862                    }
  1863                    
  1864                    ///  <summary>
  1865                    ///  Shows the  market cap italizatio n converte d to the s ystem's de fault base  currency.
  1866                    ///  </summary>
  1867                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("mark etcap_base ")]
  1868                    publ ic Microso ft.Xrm.Sdk .Money Mar ketCap_Bas e
  1869                    {
  1870                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1871                             get
  1872                             {
  1873                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. Money>("ma rketcap_ba se");
  1874                             }
  1875                    }
  1876                    
  1877                    ///  <summary>
  1878                    ///  Whether is  only for  marketing
  1879                    ///  </summary>
  1880                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("mark etingonly" )]
  1881                    publ ic System. Nullable<b ool> Marke tingOnly
  1882                    {
  1883                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1884                             get
  1885                             {
  1886                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("mark etingonly" );
  1887                             }
  1888                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1889                             set
  1890                             {
  1891                                      this.OnP ropertyCha nging("Mar ketingOnly ");
  1892                                      this.Set AttributeV alue("mark etingonly" , value);
  1893                                      this.OnP ropertyCha nged("Mark etingOnly" );
  1894                             }
  1895                    }
  1896                    
  1897                    ///  <summary>
  1898                    ///  Shows the  master acc ount that  the accoun t was merg ed with.
  1899                    ///  </summary>
  1900                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("mast erid")]
  1901                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mas terId
  1902                    {
  1903                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1904                             get
  1905                             {
  1906                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ma sterid");
  1907                             }
  1908                    }
  1909                    
  1910                    ///  <summary>
  1911                    ///  Shows whet her the ac count has  been merge d with ano ther accou nt.
  1912                    ///  </summary>
  1913                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("merg ed")]
  1914                    publ ic System. Nullable<b ool> Merge d
  1915                    {
  1916                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1917                             get
  1918                             {
  1919                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("merg ed");
  1920                             }
  1921                    }
  1922                    
  1923                    ///  <summary>
  1924                    ///  Shows who  last updat ed the rec ord.
  1925                    ///  </summary>
  1926                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedby")]
  1927                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedBy
  1928                    {
  1929                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1930                             get
  1931                             {
  1932                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedby") ;
  1933                             }
  1934                    }
  1935                    
  1936                    ///  <summary>
  1937                    ///  Shows the  external p arty who m odified th e record.
  1938                    ///  </summary>
  1939                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedbyexte rnalparty" )]
  1940                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedByExt ernalParty
  1941                    {
  1942                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1943                             get
  1944                             {
  1945                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedbyex ternalpart y");
  1946                             }
  1947                    }
  1948                    
  1949                    ///  <summary>
  1950                    ///  Shows the  date and t ime when t he record  was last u pdated. Th e date and  time are  displayed  in the tim e zone sel ected in M icrosoft D ynamics 36 5 options.
  1951                    ///  </summary>
  1952                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedon")]
  1953                    publ ic System. Nullable<S ystem.Date Time> Modi fiedOn
  1954                    {
  1955                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1956                             get
  1957                             {
  1958                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("mod ifiedon");
  1959                             }
  1960                    }
  1961                    
  1962                    ///  <summary>
  1963                    ///  Shows who  created th e record o n behalf o f another  user.
  1964                    ///  </summary>
  1965                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedonbeha lfby")]
  1966                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedOnBeh alfBy
  1967                    {
  1968                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1969                             get
  1970                             {
  1971                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedonbe halfby");
  1972                             }
  1973                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1974                             set
  1975                             {
  1976                                      this.OnP ropertyCha nging("Mod ifiedOnBeh alfBy");
  1977                                      this.Set AttributeV alue("modi fiedonbeha lfby", val ue);
  1978                                      this.OnP ropertyCha nged("Modi fiedOnBeha lfBy");
  1979                             }
  1980                    }
  1981                    
  1982                    ///  <summary>
  1983                    ///  Type the c ompany or  business n ame.
  1984                    ///  </summary>
  1985                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("name ")]
  1986                    publ ic string  Name
  1987                    {
  1988                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1989                             get
  1990                             {
  1991                                      return t his.GetAtt ributeValu e<string>( "name");
  1992                             }
  1993                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  1994                             set
  1995                             {
  1996                                      this.OnP ropertyCha nging("Nam e");
  1997                                      this.Set AttributeV alue("name ", value);
  1998                                      this.OnP ropertyCha nged("Name ");
  1999                             }
  2000                    }
  2001                    
  2002                    ///  <summary>
  2003                    ///  Type the n umber of e mployees t hat work a t the acco unt for us e in marke ting segme ntation an d demograp hic analys is.
  2004                    ///  </summary>
  2005                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("numb erofemploy ees")]
  2006                    publ ic System. Nullable<i nt> Number OfEmployee s
  2007                    {
  2008                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2009                             get
  2010                             {
  2011                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("numbe rofemploye es");
  2012                             }
  2013                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2014                             set
  2015                             {
  2016                                      this.OnP ropertyCha nging("Num berOfEmplo yees");
  2017                                      this.Set AttributeV alue("numb erofemploy ees", valu e);
  2018                                      this.OnP ropertyCha nged("Numb erOfEmploy ees");
  2019                             }
  2020                    }
  2021                    
  2022                    ///  <summary>
  2023                    ///  Shows how  long, in m inutes, th at the rec ord was on  hold.
  2024                    ///  </summary>
  2025                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("onho ldtime")]
  2026                    publ ic System. Nullable<i nt> OnHold Time
  2027                    {
  2028                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2029                             get
  2030                             {
  2031                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("onhol dtime");
  2032                             }
  2033                    }
  2034                    
  2035                    ///  <summary>
  2036                    ///  Number of  open oppor tunities a gainst an  account an d its chil d accounts .
  2037                    ///  </summary>
  2038                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("open deals")]
  2039                    publ ic System. Nullable<i nt> OpenDe als
  2040                    {
  2041                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2042                             get
  2043                             {
  2044                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("opend eals");
  2045                             }
  2046                    }
  2047                    
  2048                    ///  <summary>
  2049                    ///  The date t ime for Op en Deals.
  2050                    ///  </summary>
  2051                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("open deals_date ")]
  2052                    publ ic System. Nullable<S ystem.Date Time> Open Deals_Date
  2053                    {
  2054                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2055                             get
  2056                             {
  2057                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ope ndeals_dat e");
  2058                             }
  2059                    }
  2060                    
  2061                    ///  <summary>
  2062                    ///  State of O pen Deals.
  2063                    ///  </summary>
  2064                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("open deals_stat e")]
  2065                    publ ic System. Nullable<i nt> OpenDe als_State
  2066                    {
  2067                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2068                             get
  2069                             {
  2070                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("opend eals_state ");
  2071                             }
  2072                    }
  2073                    
  2074                    ///  <summary>
  2075                    ///  Sum of ope n revenue  against an  account a nd its chi ld account s.
  2076                    ///  </summary>
  2077                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("open revenue")]
  2078                    publ ic Microso ft.Xrm.Sdk .Money Ope nRevenue
  2079                    {
  2080                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2081                             get
  2082                             {
  2083                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. Money>("op enrevenue" );
  2084                             }
  2085                    }
  2086                    
  2087                    ///  <summary>
  2088                    ///  Sum of ope n revenue  against an  account a nd its chi ld account s.
  2089                    ///  </summary>
  2090                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("open revenue_ba se")]
  2091                    publ ic Microso ft.Xrm.Sdk .Money Ope nRevenue_B ase
  2092                    {
  2093                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2094                             get
  2095                             {
  2096                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. Money>("op enrevenue_ base");
  2097                             }
  2098                    }
  2099                    
  2100                    ///  <summary>
  2101                    ///  The date t ime for Op en Revenue .
  2102                    ///  </summary>
  2103                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("open revenue_da te")]
  2104                    publ ic System. Nullable<S ystem.Date Time> Open Revenue_Da te
  2105                    {
  2106                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2107                             get
  2108                             {
  2109                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ope nrevenue_d ate");
  2110                             }
  2111                    }
  2112                    
  2113                    ///  <summary>
  2114                    ///  State of O pen Revenu e.
  2115                    ///  </summary>
  2116                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("open revenue_st ate")]
  2117                    publ ic System. Nullable<i nt> OpenRe venue_Stat e
  2118                    {
  2119                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2120                             get
  2121                             {
  2122                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("openr evenue_sta te");
  2123                             }
  2124                    }
  2125                    
  2126                    ///  <summary>
  2127                    ///  Shows the  lead that  the accoun t was crea ted from i f the acco unt was cr eated by c onverting  a lead in  Microsoft  Dynamics 3 65. This i s used to  relate the  account t o data on  the origin ating lead  for use i n reportin g and anal ytics.
  2128                    ///  </summary>
  2129                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("orig inatinglea did")]
  2130                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Ori ginatingLe adId
  2131                    {
  2132                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2133                             get
  2134                             {
  2135                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("or iginatingl eadid");
  2136                             }
  2137                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2138                             set
  2139                             {
  2140                                      this.OnP ropertyCha nging("Ori ginatingLe adId");
  2141                                      this.Set AttributeV alue("orig inatinglea did", valu e);
  2142                                      this.OnP ropertyCha nged("Orig inatingLea dId");
  2143                             }
  2144                    }
  2145                    
  2146                    ///  <summary>
  2147                    ///  Date and t ime that t he record  was migrat ed.
  2148                    ///  </summary>
  2149                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("over riddencrea tedon")]
  2150                    publ ic System. Nullable<S ystem.Date Time> Over riddenCrea tedOn
  2151                    {
  2152                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2153                             get
  2154                             {
  2155                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ove rriddencre atedon");
  2156                             }
  2157                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2158                             set
  2159                             {
  2160                                      this.OnP ropertyCha nging("Ove rriddenCre atedOn");
  2161                                      this.Set AttributeV alue("over riddencrea tedon", va lue);
  2162                                      this.OnP ropertyCha nged("Over riddenCrea tedOn");
  2163                             }
  2164                    }
  2165                    
  2166                    ///  <summary>
  2167                    ///  Enter the  user or te am who is  assigned t o manage t he record.  This fiel d is updat ed every t ime the re cord is as signed to  a differen t user.
  2168                    ///  </summary>
  2169                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owne rid")]
  2170                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own erId
  2171                    {
  2172                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2173                             get
  2174                             {
  2175                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow nerid");
  2176                             }
  2177                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2178                             set
  2179                             {
  2180                                      this.OnP ropertyCha nging("Own erId");
  2181                                      this.Set AttributeV alue("owne rid", valu e);
  2182                                      this.OnP ropertyCha nged("Owne rId");
  2183                             }
  2184                    }
  2185                    
  2186                    ///  <summary>
  2187                    ///  Select the  account's  ownership  structure , such as  public or  private.
  2188                    ///  </summary>
  2189                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owne rshipcode" )]
  2190                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Owne rshipCode
  2191                    {
  2192                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2193                             get
  2194                             {
  2195                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("own ershipcode ");
  2196                             }
  2197                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2198                             set
  2199                             {
  2200                                      this.OnP ropertyCha nging("Own ershipCode ");
  2201                                      this.Set AttributeV alue("owne rshipcode" , value);
  2202                                      this.OnP ropertyCha nged("Owne rshipCode" );
  2203                             }
  2204                    }
  2205                    
  2206                    ///  <summary>
  2207                    ///  Shows the  business u nit that t he record  owner belo ngs to.
  2208                    ///  </summary>
  2209                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngbusiness unit")]
  2210                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingBusines sUnit
  2211                    {
  2212                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2213                             get
  2214                             {
  2215                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningbusine ssunit");
  2216                             }
  2217                    }
  2218                    
  2219                    ///  <summary>
  2220                    ///  Unique ide ntifier of  the team  who owns t he account .
  2221                    ///  </summary>
  2222                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngteam")]
  2223                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingTeam
  2224                    {
  2225                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2226                             get
  2227                             {
  2228                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningteam") ;
  2229                             }
  2230                    }
  2231                    
  2232                    ///  <summary>
  2233                    ///  Unique ide ntifier of  the user  who owns t he account .
  2234                    ///  </summary>
  2235                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni nguser")]
  2236                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingUser
  2237                    {
  2238                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2239                             get
  2240                             {
  2241                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ninguser") ;
  2242                             }
  2243                    }
  2244                    
  2245                    ///  <summary>
  2246                    ///  Choose the  parent ac count asso ciated wit h this acc ount to sh ow parent  and child  businesses  in report ing and an alytics.
  2247                    ///  </summary>
  2248                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("pare ntaccounti d")]
  2249                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Par entAccount Id
  2250                    {
  2251                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2252                             get
  2253                             {
  2254                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pa rentaccoun tid");
  2255                             }
  2256                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2257                             set
  2258                             {
  2259                                      this.OnP ropertyCha nging("Par entAccount Id");
  2260                                      this.Set AttributeV alue("pare ntaccounti d", value) ;
  2261                                      this.OnP ropertyCha nged("Pare ntAccountI d");
  2262                             }
  2263                    }
  2264                    
  2265                    ///  <summary>
  2266                    ///  For system  use only.  Legacy Mi crosoft Dy namics CRM  3.0 workf low data.
  2267                    ///  </summary>
  2268                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("part icipatesin workflow") ]
  2269                    publ ic System. Nullable<b ool> Parti cipatesInW orkflow
  2270                    {
  2271                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2272                             get
  2273                             {
  2274                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("part icipatesin workflow") ;
  2275                             }
  2276                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2277                             set
  2278                             {
  2279                                      this.OnP ropertyCha nging("Par ticipatesI nWorkflow" );
  2280                                      this.Set AttributeV alue("part icipatesin workflow",  value);
  2281                                      this.OnP ropertyCha nged("Part icipatesIn Workflow") ;
  2282                             }
  2283                    }
  2284                    
  2285                    ///  <summary>
  2286                    ///  Select the  payment t erms to in dicate whe n the cust omer needs  to pay th e total am ount.
  2287                    ///  </summary>
  2288                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("paym enttermsco de")]
  2289                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Paym entTermsCo de
  2290                    {
  2291                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2292                             get
  2293                             {
  2294                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("pay menttermsc ode");
  2295                             }
  2296                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2297                             set
  2298                             {
  2299                                      this.OnP ropertyCha nging("Pay mentTermsC ode");
  2300                                      this.Set AttributeV alue("paym enttermsco de", value );
  2301                                      this.OnP ropertyCha nged("Paym entTermsCo de");
  2302                             }
  2303                    }
  2304                    
  2305                    ///  <summary>
  2306                    /// 
  2307                    ///  </summary>
  2308                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _aco")]
  2309                    publ ic System. Nullable<b ool> ppms_ ACO
  2310                    {
  2311                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2312                             get
  2313                             {
  2314                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("ppms _aco");
  2315                             }
  2316                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2317                             set
  2318                             {
  2319                                      this.OnP ropertyCha nging("ppm s_ACO");
  2320                                      this.Set AttributeV alue("ppms _aco", val ue);
  2321                                      this.OnP ropertyCha nged("ppms _ACO");
  2322                             }
  2323                    }
  2324                    
  2325                    ///  <summary>
  2326                    /// 
  2327                    ///  </summary>
  2328                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _affiliati ontype_cho ice")]
  2329                    publ ic System. Nullable<b ool> ppms_ affiliatio ntype_choi ce
  2330                    {
  2331                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2332                             get
  2333                             {
  2334                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("ppms _affiliati ontype_cho ice");
  2335                             }
  2336                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2337                             set
  2338                             {
  2339                                      this.OnP ropertyCha nging("ppm s_affiliat iontype_ch oice");
  2340                                      this.Set AttributeV alue("ppms _affiliati ontype_cho ice", valu e);
  2341                                      this.OnP ropertyCha nged("ppms _affiliati ontype_cho ice");
  2342                             }
  2343                    }
  2344                    
  2345                    ///  <summary>
  2346                    /// 
  2347                    ///  </summary>
  2348                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _affiliati ontype_dep artmentofd efense")]
  2349                    publ ic System. Nullable<b ool> ppms_ affiliatio ntype_depa rtmentofde fense
  2350                    {
  2351                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2352                             get
  2353                             {
  2354                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("ppms _affiliati ontype_dep artmentofd efense");
  2355                             }
  2356                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2357                             set
  2358                             {
  2359                                      this.OnP ropertyCha nging("ppm s_affiliat iontype_de partmentof defense");
  2360                                      this.Set AttributeV alue("ppms _affiliati ontype_dep artmentofd efense", v alue);
  2361                                      this.OnP ropertyCha nged("ppms _affiliati ontype_dep artmentofd efense");
  2362                             }
  2363                    }
  2364                    
  2365                    ///  <summary>
  2366                    /// 
  2367                    ///  </summary>
  2368                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _affiliati ontype_hea lthnet")]
  2369                    publ ic System. Nullable<b ool> ppms_ affiliatio ntype_heal thnet
  2370                    {
  2371                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2372                             get
  2373                             {
  2374                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("ppms _affiliati ontype_hea lthnet");
  2375                             }
  2376                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2377                             set
  2378                             {
  2379                                      this.OnP ropertyCha nging("ppm s_affiliat iontype_he althnet");
  2380                                      this.Set AttributeV alue("ppms _affiliati ontype_hea lthnet", v alue);
  2381                                      this.OnP ropertyCha nged("ppms _affiliati ontype_hea lthnet");
  2382                             }
  2383                    }
  2384                    
  2385                    ///  <summary>
  2386                    /// 
  2387                    ///  </summary>
  2388                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _affiliati ontype_ind ianhealths ervices")]
  2389                    publ ic System. Nullable<b ool> ppms_ affiliatio ntype_indi anhealthse rvices
  2390                    {
  2391                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2392                             get
  2393                             {
  2394                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("ppms _affiliati ontype_ind ianhealths ervices");
  2395                             }
  2396                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2397                             set
  2398                             {
  2399                                      this.OnP ropertyCha nging("ppm s_affiliat iontype_in dianhealth services") ;
  2400                                      this.Set AttributeV alue("ppms _affiliati ontype_ind ianhealths ervices",  value);
  2401                                      this.OnP ropertyCha nged("ppms _affiliati ontype_ind ianhealths ervices");
  2402                             }
  2403                    }
  2404                    
  2405                    ///  <summary>
  2406                    /// 
  2407                    ///  </summary>
  2408                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _affiliati ontype_pc3 ")]
  2409                    publ ic System. Nullable<b ool> ppms_ affiliatio ntype_pc3
  2410                    {
  2411                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2412                             get
  2413                             {
  2414                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("ppms _affiliati ontype_pc3 ");
  2415                             }
  2416                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2417                             set
  2418                             {
  2419                                      this.OnP ropertyCha nging("ppm s_affiliat iontype_pc 3");
  2420                                      this.Set AttributeV alue("ppms _affiliati ontype_pc3 ", value);
  2421                                      this.OnP ropertyCha nged("ppms _affiliati ontype_pc3 ");
  2422                             }
  2423                    }
  2424                    
  2425                    ///  <summary>
  2426                    /// 
  2427                    ///  </summary>
  2428                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _affiliati ontype_pro videragree ment")]
  2429                    publ ic System. Nullable<b ool> ppms_ affiliatio ntype_prov ideragreem ent
  2430                    {
  2431                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2432                             get
  2433                             {
  2434                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("ppms _affiliati ontype_pro videragree ment");
  2435                             }
  2436                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2437                             set
  2438                             {
  2439                                      this.OnP ropertyCha nging("ppm s_affiliat iontype_pr ovideragre ement");
  2440                                      this.Set AttributeV alue("ppms _affiliati ontype_pro videragree ment", val ue);
  2441                                      this.OnP ropertyCha nged("ppms _affiliati ontype_pro videragree ment");
  2442                             }
  2443                    }
  2444                    
  2445                    ///  <summary>
  2446                    /// 
  2447                    ///  </summary>
  2448                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _affiliati ontype_tri west")]
  2449                    publ ic System. Nullable<b ool> ppms_ affiliatio ntype_triw est
  2450                    {
  2451                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2452                             get
  2453                             {
  2454                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("ppms _affiliati ontype_tri west");
  2455                             }
  2456                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2457                             set
  2458                             {
  2459                                      this.OnP ropertyCha nging("ppm s_affiliat iontype_tr iwest");
  2460                                      this.Set AttributeV alue("ppms _affiliati ontype_tri west", val ue);
  2461                                      this.OnP ropertyCha nged("ppms _affiliati ontype_tri west");
  2462                             }
  2463                    }
  2464                    
  2465                    ///  <summary>
  2466                    /// 
  2467                    ///  </summary>
  2468                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _affiliati ontype_vaa cademicaff iliate")]
  2469                    publ ic System. Nullable<b ool> ppms_ affiliatio ntype_vaac ademicaffi liate
  2470                    {
  2471                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2472                             get
  2473                             {
  2474                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("ppms _affiliati ontype_vaa cademicaff iliate");
  2475                             }
  2476                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2477                             set
  2478                             {
  2479                                      this.OnP ropertyCha nging("ppm s_affiliat iontype_va academicaf filiate");
  2480                                      this.Set AttributeV alue("ppms _affiliati ontype_vaa cademicaff iliate", v alue);
  2481                                      this.OnP ropertyCha nged("ppms _affiliati ontype_vaa cademicaff iliate");
  2482                             }
  2483                    }
  2484                    
  2485                    ///  <summary>
  2486                    ///  Correlatio n Id
  2487                    ///  </summary>
  2488                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _correlati onid")]
  2489                    publ ic string  ppms_corre lationid
  2490                    {
  2491                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2492                             get
  2493                             {
  2494                                      return t his.GetAtt ributeValu e<string>( "ppms_corr elationid" );
  2495                             }
  2496                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2497                             set
  2498                             {
  2499                                      this.OnP ropertyCha nging("ppm s_correlat ionid");
  2500                                      this.Set AttributeV alue("ppms _correlati onid", val ue);
  2501                                      this.OnP ropertyCha nged("ppms _correlati onid");
  2502                             }
  2503                    }
  2504                    
  2505                    ///  <summary>
  2506                    ///  Entity Typ e Code
  2507                    ///  </summary>
  2508                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _entitytyp ecode")]
  2509                    publ ic System. Nullable<i nt> ppms_e ntitytypec ode
  2510                    {
  2511                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2512                             get
  2513                             {
  2514                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("ppms_ entitytype code");
  2515                             }
  2516                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2517                             set
  2518                             {
  2519                                      this.OnP ropertyCha nging("ppm s_entityty pecode");
  2520                                      this.Set AttributeV alue("ppms _entitytyp ecode", va lue);
  2521                                      this.OnP ropertyCha nged("ppms _entitytyp ecode");
  2522                             }
  2523                    }
  2524                    
  2525                    ///  <summary>
  2526                    ///  Ethnicity
  2527                    ///  </summary>
  2528                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _ethnicity ")]
  2529                    publ ic Microso ft.Xrm.Sdk .OptionSet Value ppms _ethnicity
  2530                    {
  2531                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2532                             get
  2533                             {
  2534                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("ppm s_ethnicit y");
  2535                             }
  2536                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2537                             set
  2538                             {
  2539                                      this.OnP ropertyCha nging("ppm s_ethnicit y");
  2540                                      this.Set AttributeV alue("ppms _ethnicity ", value);
  2541                                      this.OnP ropertyCha nged("ppms _ethnicity ");
  2542                             }
  2543                    }
  2544                    
  2545                    ///  <summary>
  2546                    ///  External H ealth Prov ider Type
  2547                    ///  </summary>
  2548                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _externalh ealthprovi dertype")]
  2549                    publ ic Microso ft.Xrm.Sdk .OptionSet Value ppms _externalh ealthprovi dertype
  2550                    {
  2551                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2552                             get
  2553                             {
  2554                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("ppm s_external healthprov idertype") ;
  2555                             }
  2556                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2557                             set
  2558                             {
  2559                                      this.OnP ropertyCha nging("ppm s_external healthprov idertype") ;
  2560                                      this.Set AttributeV alue("ppms _externalh ealthprovi dertype",  value);
  2561                                      this.OnP ropertyCha nged("ppms _externalh ealthprovi dertype");
  2562                             }
  2563                    }
  2564                    
  2565                    ///  <summary>
  2566                    ///  External I nstitution  DEA Numbe r
  2567                    ///  </summary>
  2568                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _externali nstitution deanumber" )]
  2569                    publ ic string  ppms_exter nalinstitu tiondeanum ber
  2570                    {
  2571                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2572                             get
  2573                             {
  2574                                      return t his.GetAtt ributeValu e<string>( "ppms_exte rnalinstit utiondeanu mber");
  2575                             }
  2576                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2577                             set
  2578                             {
  2579                                      this.OnP ropertyCha nging("ppm s_external institutio ndeanumber ");
  2580                                      this.Set AttributeV alue("ppms _externali nstitution deanumber" , value);
  2581                                      this.OnP ropertyCha nged("ppms _externali nstitution deanumber" );
  2582                             }
  2583                    }
  2584                    
  2585                    ///  <summary>
  2586                    ///  On LEIE
  2587                    ///  </summary>
  2588                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _externall eie")]
  2589                    publ ic System. Nullable<b ool> ppms_ externalle ie
  2590                    {
  2591                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2592                             get
  2593                             {
  2594                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("ppms _externall eie");
  2595                             }
  2596                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2597                             set
  2598                             {
  2599                                      this.OnP ropertyCha nging("ppm s_external leie");
  2600                                      this.Set AttributeV alue("ppms _externall eie", valu e);
  2601                                      this.OnP ropertyCha nged("ppms _externall eie");
  2602                             }
  2603                    }
  2604                    
  2605                    ///  <summary>
  2606                    ///  External L EIE Check  Date
  2607                    ///  </summary>
  2608                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _externall eiecheckda te")]
  2609                    publ ic System. Nullable<S ystem.Date Time> ppms _externall eiecheckda te
  2610                    {
  2611                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2612                             get
  2613                             {
  2614                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ppm s_external leiecheckd ate");
  2615                             }
  2616                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2617                             set
  2618                             {
  2619                                      this.OnP ropertyCha nging("ppm s_external leiecheckd ate");
  2620                                      this.Set AttributeV alue("ppms _externall eiecheckda te", value );
  2621                                      this.OnP ropertyCha nged("ppms _externall eiecheckda te");
  2622                             }
  2623                    }
  2624                    
  2625                    ///  <summary>
  2626                    ///  External V alidation  Source
  2627                    ///  </summary>
  2628                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _externalv alidations ource")]
  2629                    publ ic string  ppms_exter nalvalidat ionsource
  2630                    {
  2631                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2632                             get
  2633                             {
  2634                                      return t his.GetAtt ributeValu e<string>( "ppms_exte rnalvalida tionsource ");
  2635                             }
  2636                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2637                             set
  2638                             {
  2639                                      this.OnP ropertyCha nging("ppm s_external validation source");
  2640                                      this.Set AttributeV alue("ppms _externalv alidations ource", va lue);
  2641                                      this.OnP ropertyCha nged("ppms _externalv alidations ource");
  2642                             }
  2643                    }
  2644                    
  2645                    ///  <summary>
  2646                    /// 
  2647                    ///  </summary>
  2648                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _facilityi d")]
  2649                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_facility id
  2650                    {
  2651                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2652                             get
  2653                             {
  2654                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_facilit yid");
  2655                             }
  2656                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2657                             set
  2658                             {
  2659                                      this.OnP ropertyCha nging("ppm s_facility id");
  2660                                      this.Set AttributeV alue("ppms _facilityi d", value) ;
  2661                                      this.OnP ropertyCha nged("ppms _facilityi d");
  2662                             }
  2663                    }
  2664                    
  2665                    ///  <summary>
  2666                    ///  Fee Schedu le
  2667                    ///  </summary>
  2668                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _feeschedu le")]
  2669                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_FeeSched ule
  2670                    {
  2671                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2672                             get
  2673                             {
  2674                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_feesche dule");
  2675                             }
  2676                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2677                             set
  2678                             {
  2679                                      this.OnP ropertyCha nging("ppm s_FeeSched ule");
  2680                                      this.Set AttributeV alue("ppms _feeschedu le", value );
  2681                                      this.OnP ropertyCha nged("ppms _FeeSchedu le");
  2682                             }
  2683                    }
  2684                    
  2685                    ///  <summary>
  2686                    /// 
  2687                    ///  </summary>
  2688                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _fqhc")]
  2689                    publ ic System. Nullable<b ool> ppms_ FQHC
  2690                    {
  2691                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2692                             get
  2693                             {
  2694                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("ppms _fqhc");
  2695                             }
  2696                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2697                             set
  2698                             {
  2699                                      this.OnP ropertyCha nging("ppm s_FQHC");
  2700                                      this.Set AttributeV alue("ppms _fqhc", va lue);
  2701                                      this.OnP ropertyCha nged("ppms _FQHC");
  2702                             }
  2703                    }
  2704                    
  2705                    ///  <summary>
  2706                    ///  Gender
  2707                    ///  </summary>
  2708                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _gender")]
  2709                    publ ic Microso ft.Xrm.Sdk .OptionSet Value ppms _gender
  2710                    {
  2711                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2712                             get
  2713                             {
  2714                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("ppm s_gender") ;
  2715                             }
  2716                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2717                             set
  2718                             {
  2719                                      this.OnP ropertyCha nging("ppm s_gender") ;
  2720                                      this.Set AttributeV alue("ppms _gender",  value);
  2721                                      this.OnP ropertyCha nged("ppms _gender");
  2722                             }
  2723                    }
  2724                    
  2725                    ///  <summary>
  2726                    /// 
  2727                    ///  </summary>
  2728                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _geocoded" )]
  2729                    publ ic System. Nullable<b ool> ppms_ geocoded
  2730                    {
  2731                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2732                             get
  2733                             {
  2734                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("ppms _geocoded" );
  2735                             }
  2736                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2737                             set
  2738                             {
  2739                                      this.OnP ropertyCha nging("ppm s_geocoded ");
  2740                                      this.Set AttributeV alue("ppms _geocoded" , value);
  2741                                      this.OnP ropertyCha nged("ppms _geocoded" );
  2742                             }
  2743                    }
  2744                    
  2745                    ///  <summary>
  2746                    /// 
  2747                    ///  </summary>
  2748                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _highperfo rmance")]
  2749                    publ ic System. Nullable<b ool> ppms_ HighPerfor mance
  2750                    {
  2751                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2752                             get
  2753                             {
  2754                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("ppms _highperfo rmance");
  2755                             }
  2756                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2757                             set
  2758                             {
  2759                                      this.OnP ropertyCha nging("ppm s_HighPerf ormance");
  2760                                      this.Set AttributeV alue("ppms _highperfo rmance", v alue);
  2761                                      this.OnP ropertyCha nged("ppms _HighPerfo rmance");
  2762                             }
  2763                    }
  2764                    
  2765                    ///  <summary>
  2766                    ///  Individual  Is Accept ing New Pa tients
  2767                    ///  </summary>
  2768                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _individua lisaccepti ngnewpatie nts")]
  2769                    publ ic System. Nullable<b ool> ppms_ individual isacceptin gnewpatien ts
  2770                    {
  2771                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2772                             get
  2773                             {
  2774                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("ppms _individua lisaccepti ngnewpatie nts");
  2775                             }
  2776                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2777                             set
  2778                             {
  2779                                      this.OnP ropertyCha nging("ppm s_individu alisaccept ingnewpati ents");
  2780                                      this.Set AttributeV alue("ppms _individua lisaccepti ngnewpatie nts", valu e);
  2781                                      this.OnP ropertyCha nged("ppms _individua lisaccepti ngnewpatie nts");
  2782                             }
  2783                    }
  2784                    
  2785                    ///  <summary>
  2786                    ///  Internal A ppointment  Status
  2787                    ///  </summary>
  2788                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _internala ppointment status")]
  2789                    publ ic Microso ft.Xrm.Sdk .OptionSet Value ppms _internala ppointment status
  2790                    {
  2791                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2792                             get
  2793                             {
  2794                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("ppm s_internal appointmen tstatus");
  2795                             }
  2796                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2797                             set
  2798                             {
  2799                                      this.OnP ropertyCha nging("ppm s_internal appointmen tstatus");
  2800                                      this.Set AttributeV alue("ppms _internala ppointment status", v alue);
  2801                                      this.OnP ropertyCha nged("ppms _internala ppointment status");
  2802                             }
  2803                    }
  2804                    
  2805                    ///  <summary>
  2806                    ///  Internal C an Create  Health Car e Orders
  2807                    ///  </summary>
  2808                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _internalc ancreatehe althcareor ders")]
  2809                    publ ic System. Nullable<b ool> ppms_ internalca ncreatehea lthcareord ers
  2810                    {
  2811                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2812                             get
  2813                             {
  2814                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("ppms _internalc ancreatehe althcareor ders");
  2815                             }
  2816                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2817                             set
  2818                             {
  2819                                      this.OnP ropertyCha nging("ppm s_internal cancreateh ealthcareo rders");
  2820                                      this.Set AttributeV alue("ppms _internalc ancreatehe althcareor ders", val ue);
  2821                                      this.OnP ropertyCha nged("ppms _internalc ancreatehe althcareor ders");
  2822                             }
  2823                    }
  2824                    
  2825                    ///  <summary>
  2826                    ///  Internal L icensing J urisdictio n
  2827                    ///  </summary>
  2828                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _internall icensingju risdiction ")]
  2829                    publ ic string  ppms_inter nallicensi ngjurisdic tion
  2830                    {
  2831                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2832                             get
  2833                             {
  2834                                      return t his.GetAtt ributeValu e<string>( "ppms_inte rnallicens ingjurisdi ction");
  2835                             }
  2836                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2837                             set
  2838                             {
  2839                                      this.OnP ropertyCha nging("ppm s_internal licensingj urisdictio n");
  2840                                      this.Set AttributeV alue("ppms _internall icensingju risdiction ", value);
  2841                                      this.OnP ropertyCha nged("ppms _internall icensingju risdiction ");
  2842                             }
  2843                    }
  2844                    
  2845                    ///  <summary>
  2846                    ///  Internal T ype
  2847                    ///  </summary>
  2848                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _internalt ype")]
  2849                    publ ic Microso ft.Xrm.Sdk .OptionSet Value ppms _internalt ype
  2850                    {
  2851                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2852                             get
  2853                             {
  2854                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("ppm s_internal type");
  2855                             }
  2856                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2857                             set
  2858                             {
  2859                                      this.OnP ropertyCha nging("ppm s_internal type");
  2860                                      this.Set AttributeV alue("ppms _internalt ype", valu e);
  2861                                      this.OnP ropertyCha nged("ppms _internalt ype");
  2862                             }
  2863                    }
  2864                    
  2865                    ///  <summary>
  2866                    ///  Is Externa l
  2867                    ///  </summary>
  2868                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _isexterna l")]
  2869                    publ ic System. Nullable<b ool> ppms_ isexternal
  2870                    {
  2871                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2872                             get
  2873                             {
  2874                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("ppms _isexterna l");
  2875                             }
  2876                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2877                             set
  2878                             {
  2879                                      this.OnP ropertyCha nging("ppm s_isextern al");
  2880                                      this.Set AttributeV alue("ppms _isexterna l", value) ;
  2881                                      this.OnP ropertyCha nged("ppms _isexterna l");
  2882                             }
  2883                    }
  2884                    
  2885                    ///  <summary>
  2886                    ///  Last Updat e Date
  2887                    ///  </summary>
  2888                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _lastupdat edate")]
  2889                    publ ic System. Nullable<S ystem.Date Time> ppms _lastupdat edate
  2890                    {
  2891                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2892                             get
  2893                             {
  2894                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ppm s_lastupda tedate");
  2895                             }
  2896                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2897                             set
  2898                             {
  2899                                      this.OnP ropertyCha nging("ppm s_lastupda tedate");
  2900                                      this.Set AttributeV alue("ppms _lastupdat edate", va lue);
  2901                                      this.OnP ropertyCha nged("ppms _lastupdat edate");
  2902                             }
  2903                    }
  2904                    
  2905                    ///  <summary>
  2906                    ///  Unique ide ntifier fo r NPI asso ciated wit h Provider .
  2907                    ///  </summary>
  2908                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _npiid")]
  2909                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_NPIId
  2910                    {
  2911                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2912                             get
  2913                             {
  2914                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_npiid") ;
  2915                             }
  2916                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2917                             set
  2918                             {
  2919                                      this.OnP ropertyCha nging("ppm s_NPIId");
  2920                                      this.Set AttributeV alue("ppms _npiid", v alue);
  2921                                      this.OnP ropertyCha nged("ppms _NPIId");
  2922                             }
  2923                    }
  2924                    
  2925                    ///  <summary>
  2926                    ///  Organizati on Id
  2927                    ///  </summary>
  2928                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _organizat ionid")]
  2929                    publ ic string  ppms_organ izationid
  2930                    {
  2931                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2932                             get
  2933                             {
  2934                                      return t his.GetAtt ributeValu e<string>( "ppms_orga nizationid ");
  2935                             }
  2936                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2937                             set
  2938                             {
  2939                                      this.OnP ropertyCha nging("ppm s_organiza tionid");
  2940                                      this.Set AttributeV alue("ppms _organizat ionid", va lue);
  2941                                      this.OnP ropertyCha nged("ppms _organizat ionid");
  2942                             }
  2943                    }
  2944                    
  2945                    ///  <summary>
  2946                    ///  Owned Care  Site
  2947                    ///  </summary>
  2948                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _ownedcare site")]
  2949                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_ownedcar esite
  2950                    {
  2951                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2952                             get
  2953                             {
  2954                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_ownedca resite");
  2955                             }
  2956                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2957                             set
  2958                             {
  2959                                      this.OnP ropertyCha nging("ppm s_ownedcar esite");
  2960                                      this.Set AttributeV alue("ppms _ownedcare site", val ue);
  2961                                      this.OnP ropertyCha nged("ppms _ownedcare site");
  2962                             }
  2963                    }
  2964                    
  2965                    ///  <summary>
  2966                    /// 
  2967                    ///  </summary>
  2968                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _primaryca rephysicia n")]
  2969                    publ ic System. Nullable<b ool> ppms_ PrimaryCar ePhysician
  2970                    {
  2971                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2972                             get
  2973                             {
  2974                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("ppms _primaryca rephysicia n");
  2975                             }
  2976                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2977                             set
  2978                             {
  2979                                      this.OnP ropertyCha nging("ppm s_PrimaryC arePhysici an");
  2980                                      this.Set AttributeV alue("ppms _primaryca rephysicia n", value) ;
  2981                                      this.OnP ropertyCha nged("ppms _PrimaryCa rePhysicia n");
  2982                             }
  2983                    }
  2984                    
  2985                    ///  <summary>
  2986                    ///  Individual  Is Primar y Care Pro vider Acce pting VA
  2987                    ///  </summary>
  2988                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _primaryca reprovider acceptingv a")]
  2989                    publ ic System. Nullable<b ool> ppms_ primarycar eprovidera cceptingva
  2990                    {
  2991                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2992                             get
  2993                             {
  2994                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("ppms _primaryca reprovider acceptingv a");
  2995                             }
  2996                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  2997                             set
  2998                             {
  2999                                      this.OnP ropertyCha nging("ppm s_primaryc areprovide raccepting va");
  3000                                      this.Set AttributeV alue("ppms _primaryca reprovider acceptingv a", value) ;
  3001                                      this.OnP ropertyCha nged("ppms _primaryca reprovider acceptingv a");
  3002                             }
  3003                    }
  3004                    
  3005                    ///  <summary>
  3006                    /// 
  3007                    ///  </summary>
  3008                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providera greement") ]
  3009                    publ ic System. Nullable<b ool> ppms_ ProviderAg reement
  3010                    {
  3011                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3012                             get
  3013                             {
  3014                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("ppms _providera greement") ;
  3015                             }
  3016                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3017                             set
  3018                             {
  3019                                      this.OnP ropertyCha nging("ppm s_Provider Agreement" );
  3020                                      this.Set AttributeV alue("ppms _providera greement",  value);
  3021                                      this.OnP ropertyCha nged("ppms _ProviderA greement") ;
  3022                             }
  3023                    }
  3024                    
  3025                    ///  <summary>
  3026                    ///  Provider I D
  3027                    ///  </summary>
  3028                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _provideri d")]
  3029                    publ ic string  ppms_provi derId
  3030                    {
  3031                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3032                             get
  3033                             {
  3034                                      return t his.GetAtt ributeValu e<string>( "ppms_prov iderid");
  3035                             }
  3036                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3037                             set
  3038                             {
  3039                                      this.OnP ropertyCha nging("ppm s_provider Id");
  3040                                      this.Set AttributeV alue("ppms _provideri d", value) ;
  3041                                      this.OnP ropertyCha nged("ppms _providerI d");
  3042                             }
  3043                    }
  3044                    
  3045                    ///  <summary>
  3046                    ///  Provider S tatus
  3047                    ///  </summary>
  3048                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providers tatus")]
  3049                    publ ic Microso ft.Xrm.Sdk .OptionSet Value ppms _providers tatus
  3050                    {
  3051                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3052                             get
  3053                             {
  3054                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("ppm s_provider status");
  3055                             }
  3056                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3057                             set
  3058                             {
  3059                                      this.OnP ropertyCha nging("ppm s_provider status");
  3060                                      this.Set AttributeV alue("ppms _providers tatus", va lue);
  3061                                      this.OnP ropertyCha nged("ppms _providers tatus");
  3062                             }
  3063                    }
  3064                    
  3065                    ///  <summary>
  3066                    /// 
  3067                    ///  </summary>
  3068                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providers tatusstart date")]
  3069                    publ ic System. Nullable<S ystem.Date Time> ppms _providers tatusstart date
  3070                    {
  3071                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3072                             get
  3073                             {
  3074                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ppm s_provider statusstar tdate");
  3075                             }
  3076                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3077                             set
  3078                             {
  3079                                      this.OnP ropertyCha nging("ppm s_provider statusstar tdate");
  3080                                      this.Set AttributeV alue("ppms _providers tatusstart date", val ue);
  3081                                      this.OnP ropertyCha nged("ppms _providers tatusstart date");
  3082                             }
  3083                    }
  3084                    
  3085                    ///  <summary>
  3086                    ///  Provider T ype
  3087                    ///  </summary>
  3088                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providert ype")]
  3089                    publ ic Microso ft.Xrm.Sdk .OptionSet Value ppms _providert ype
  3090                    {
  3091                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3092                             get
  3093                             {
  3094                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("ppm s_provider type");
  3095                             }
  3096                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3097                             set
  3098                             {
  3099                                      this.OnP ropertyCha nging("ppm s_provider type");
  3100                                      this.Set AttributeV alue("ppms _providert ype", valu e);
  3101                                      this.OnP ropertyCha nged("ppms _providert ype");
  3102                             }
  3103                    }
  3104                    
  3105                    ///  <summary>
  3106                    ///  Quality Ra nking Last  Updated
  3107                    ///  </summary>
  3108                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _qualityra nkinglastu pdated")]
  3109                    publ ic System. Nullable<S ystem.Date Time> ppms _qualityra nkinglastu pdated
  3110                    {
  3111                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3112                             get
  3113                             {
  3114                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ppm s_qualityr ankinglast updated");
  3115                             }
  3116                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3117                             set
  3118                             {
  3119                                      this.OnP ropertyCha nging("ppm s_qualityr ankinglast updated");
  3120                                      this.Set AttributeV alue("ppms _qualityra nkinglastu pdated", v alue);
  3121                                      this.OnP ropertyCha nged("ppms _qualityra nkinglastu pdated");
  3122                             }
  3123                    }
  3124                    
  3125                    ///  <summary>
  3126                    ///  Quality Ra nking Tota l Score
  3127                    ///  </summary>
  3128                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _qualityra nkingtotal score")]
  3129                    publ ic System. Nullable<i nt> ppms_q ualityrank ingtotalsc ore
  3130                    {
  3131                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3132                             get
  3133                             {
  3134                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("ppms_ qualityran kingtotals core");
  3135                             }
  3136                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3137                             set
  3138                             {
  3139                                      this.OnP ropertyCha nging("ppm s_qualityr ankingtota lscore");
  3140                                      this.Set AttributeV alue("ppms _qualityra nkingtotal score", va lue);
  3141                                      this.OnP ropertyCha nged("ppms _qualityra nkingtotal score");
  3142                             }
  3143                    }
  3144                    
  3145                    ///  <summary>
  3146                    /// 
  3147                    ///  </summary>
  3148                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _recordsou rce")]
  3149                    publ ic Microso ft.Xrm.Sdk .OptionSet Value ppms _RecordSou rce
  3150                    {
  3151                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3152                             get
  3153                             {
  3154                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("ppm s_recordso urce");
  3155                             }
  3156                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3157                             set
  3158                             {
  3159                                      this.OnP ropertyCha nging("ppm s_RecordSo urce");
  3160                                      this.Set AttributeV alue("ppms _recordsou rce", valu e);
  3161                                      this.OnP ropertyCha nged("ppms _RecordSou rce");
  3162                             }
  3163                    }
  3164                    
  3165                    ///  <summary>
  3166                    ///  Religion
  3167                    ///  </summary>
  3168                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _religion" )]
  3169                    publ ic string  ppms_relig ion
  3170                    {
  3171                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3172                             get
  3173                             {
  3174                                      return t his.GetAtt ributeValu e<string>( "ppms_reli gion");
  3175                             }
  3176                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3177                             set
  3178                             {
  3179                                      this.OnP ropertyCha nging("ppm s_religion ");
  3180                                      this.Set AttributeV alue("ppms _religion" , value);
  3181                                      this.OnP ropertyCha nged("ppms _religion" );
  3182                             }
  3183                    }
  3184                    
  3185                    ///  <summary>
  3186                    ///  Service Pr ovider Typ e
  3187                    ///  </summary>
  3188                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _servicepr ovidertype ")]
  3189                    publ ic Microso ft.Xrm.Sdk .OptionSet Value ppms _servicepr ovidertype
  3190                    {
  3191                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3192                             get
  3193                             {
  3194                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("ppm s_servicep rovidertyp e");
  3195                             }
  3196                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3197                             set
  3198                             {
  3199                                      this.OnP ropertyCha nging("ppm s_servicep rovidertyp e");
  3200                                      this.Set AttributeV alue("ppms _servicepr ovidertype ", value);
  3201                                      this.OnP ropertyCha nged("ppms _servicepr ovidertype ");
  3202                             }
  3203                    }
  3204                    
  3205                    ///  <summary>
  3206                    ///  Special In struction
  3207                    ///  </summary>
  3208                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _specialin struction" )]
  3209                    publ ic string  ppms_speci alinstruct ion
  3210                    {
  3211                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3212                             get
  3213                             {
  3214                                      return t his.GetAtt ributeValu e<string>( "ppms_spec ialinstruc tion");
  3215                             }
  3216                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3217                             set
  3218                             {
  3219                                      this.OnP ropertyCha nging("ppm s_speciali nstruction ");
  3220                                      this.Set AttributeV alue("ppms _specialin struction" , value);
  3221                                      this.OnP ropertyCha nged("ppms _specialin struction" );
  3222                             }
  3223                    }
  3224                    
  3225                    ///  <summary>
  3226                    ///  Organizati on Status
  3227                    ///  </summary>
  3228                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _statusorg ")]
  3229                    publ ic Microso ft.Xrm.Sdk .OptionSet Value ppms _statusorg
  3230                    {
  3231                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3232                             get
  3233                             {
  3234                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("ppm s_statusor g");
  3235                             }
  3236                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3237                             set
  3238                             {
  3239                                      this.OnP ropertyCha nging("ppm s_statusor g");
  3240                                      this.Set AttributeV alue("ppms _statusorg ", value);
  3241                                      this.OnP ropertyCha nged("ppms _statusorg ");
  3242                             }
  3243                    }
  3244                    
  3245                    ///  <summary>
  3246                    ///  Select the  preferred  day of th e week for  service a ppointment s.
  3247                    ///  </summary>
  3248                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("pref erredappoi ntmentdayc ode")]
  3249                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Pref erredAppoi ntmentDayC ode
  3250                    {
  3251                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3252                             get
  3253                             {
  3254                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("pre ferredappo intmentday code");
  3255                             }
  3256                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3257                             set
  3258                             {
  3259                                      this.OnP ropertyCha nging("Pre ferredAppo intmentDay Code");
  3260                                      this.Set AttributeV alue("pref erredappoi ntmentdayc ode", valu e);
  3261                                      this.OnP ropertyCha nged("Pref erredAppoi ntmentDayC ode");
  3262                             }
  3263                    }
  3264                    
  3265                    ///  <summary>
  3266                    ///  Select the  preferred  time of d ay for ser vice appoi ntments.
  3267                    ///  </summary>
  3268                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("pref erredappoi ntmenttime code")]
  3269                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Pref erredAppoi ntmentTime Code
  3270                    {
  3271                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3272                             get
  3273                             {
  3274                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("pre ferredappo intmenttim ecode");
  3275                             }
  3276                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3277                             set
  3278                             {
  3279                                      this.OnP ropertyCha nging("Pre ferredAppo intmentTim eCode");
  3280                                      this.Set AttributeV alue("pref erredappoi ntmenttime code", val ue);
  3281                                      this.OnP ropertyCha nged("Pref erredAppoi ntmentTime Code");
  3282                             }
  3283                    }
  3284                    
  3285                    ///  <summary>
  3286                    ///  Select the  preferred  method of  contact.
  3287                    ///  </summary>
  3288                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("pref erredconta ctmethodco de")]
  3289                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Pref erredConta ctMethodCo de
  3290                    {
  3291                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3292                             get
  3293                             {
  3294                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("pre ferredcont actmethodc ode");
  3295                             }
  3296                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3297                             set
  3298                             {
  3299                                      this.OnP ropertyCha nging("Pre ferredCont actMethodC ode");
  3300                                      this.Set AttributeV alue("pref erredconta ctmethodco de", value );
  3301                                      this.OnP ropertyCha nged("Pref erredConta ctMethodCo de");
  3302                             }
  3303                    }
  3304                    
  3305                    ///  <summary>
  3306                    ///  Choose the  account's  preferred  service f acility or  equipment  to make s ure servic es are sch eduled cor rectly for  the custo mer.
  3307                    ///  </summary>
  3308                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("pref erredequip mentid")]
  3309                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Pre ferredEqui pmentId
  3310                    {
  3311                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3312                             get
  3313                             {
  3314                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pr eferredequ ipmentid") ;
  3315                             }
  3316                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3317                             set
  3318                             {
  3319                                      this.OnP ropertyCha nging("Pre ferredEqui pmentId");
  3320                                      this.Set AttributeV alue("pref erredequip mentid", v alue);
  3321                                      this.OnP ropertyCha nged("Pref erredEquip mentId");
  3322                             }
  3323                    }
  3324                    
  3325                    ///  <summary>
  3326                    ///  Choose the  account's  preferred  service f or referen ce when yo u schedule  service a ctivities.
  3327                    ///  </summary>
  3328                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("pref erredservi ceid")]
  3329                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Pre ferredServ iceId
  3330                    {
  3331                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3332                             get
  3333                             {
  3334                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pr eferredser viceid");
  3335                             }
  3336                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3337                             set
  3338                             {
  3339                                      this.OnP ropertyCha nging("Pre ferredServ iceId");
  3340                                      this.Set AttributeV alue("pref erredservi ceid", val ue);
  3341                                      this.OnP ropertyCha nged("Pref erredServi ceId");
  3342                             }
  3343                    }
  3344                    
  3345                    ///  <summary>
  3346                    ///  Choose the  preferred  service r epresentat ive for re ference wh en you sch edule serv ice activi ties for t he account .
  3347                    ///  </summary>
  3348                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("pref erredsyste muserid")]
  3349                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Pre ferredSyst emUserId
  3350                    {
  3351                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3352                             get
  3353                             {
  3354                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pr eferredsys temuserid" );
  3355                             }
  3356                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3357                             set
  3358                             {
  3359                                      this.OnP ropertyCha nging("Pre ferredSyst emUserId") ;
  3360                                      this.Set AttributeV alue("pref erredsyste muserid",  value);
  3361                                      this.OnP ropertyCha nged("Pref erredSyste mUserId");
  3362                             }
  3363                    }
  3364                    
  3365                    ///  <summary>
  3366                    ///  Choose the  primary c ontact for  the accou nt to prov ide quick  access to  contact de tails.
  3367                    ///  </summary>
  3368                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("prim arycontact id")]
  3369                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Pri maryContac tId
  3370                    {
  3371                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3372                             get
  3373                             {
  3374                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pr imaryconta ctid");
  3375                             }
  3376                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3377                             set
  3378                             {
  3379                                      this.OnP ropertyCha nging("Pri maryContac tId");
  3380                                      this.Set AttributeV alue("prim arycontact id", value );
  3381                                      this.OnP ropertyCha nged("Prim aryContact Id");
  3382                             }
  3383                    }
  3384                    
  3385                    ///  <summary>
  3386                    ///  Primary Sa tori ID fo r Account
  3387                    ///  </summary>
  3388                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("prim arysatorii d")]
  3389                    publ ic string  PrimarySat oriId
  3390                    {
  3391                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3392                             get
  3393                             {
  3394                                      return t his.GetAtt ributeValu e<string>( "primarysa toriid");
  3395                             }
  3396                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3397                             set
  3398                             {
  3399                                      this.OnP ropertyCha nging("Pri marySatori Id");
  3400                                      this.Set AttributeV alue("prim arysatorii d", value) ;
  3401                                      this.OnP ropertyCha nged("Prim arySatoriI d");
  3402                             }
  3403                    }
  3404                    
  3405                    ///  <summary>
  3406                    ///  Primary Tw itter ID f or Account
  3407                    ///  </summary>
  3408                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("prim arytwitter id")]
  3409                    publ ic string  PrimaryTwi tterId
  3410                    {
  3411                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3412                             get
  3413                             {
  3414                                      return t his.GetAtt ributeValu e<string>( "primarytw itterid");
  3415                             }
  3416                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3417                             set
  3418                             {
  3419                                      this.OnP ropertyCha nging("Pri maryTwitte rId");
  3420                                      this.Set AttributeV alue("prim arytwitter id", value );
  3421                                      this.OnP ropertyCha nged("Prim aryTwitter Id");
  3422                             }
  3423                    }
  3424                    
  3425                    ///  <summary>
  3426                    ///  Shows the  ID of the  process.
  3427                    ///  </summary>
  3428                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("proc essid")]
  3429                    publ ic System. Nullable<S ystem.Guid > ProcessI d
  3430                    {
  3431                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3432                             get
  3433                             {
  3434                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("process id");
  3435                             }
  3436                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3437                             set
  3438                             {
  3439                                      this.OnP ropertyCha nging("Pro cessId");
  3440                                      this.Set AttributeV alue("proc essid", va lue);
  3441                                      this.OnP ropertyCha nged("Proc essId");
  3442                             }
  3443                    }
  3444                    
  3445                    ///  <summary>
  3446                    ///  Type the a nnual reve nue for th e account,  used as a n indicato r in finan cial perfo rmance ana lysis.
  3447                    ///  </summary>
  3448                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("reve nue")]
  3449                    publ ic Microso ft.Xrm.Sdk .Money Rev enue
  3450                    {
  3451                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3452                             get
  3453                             {
  3454                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. Money>("re venue");
  3455                             }
  3456                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3457                             set
  3458                             {
  3459                                      this.OnP ropertyCha nging("Rev enue");
  3460                                      this.Set AttributeV alue("reve nue", valu e);
  3461                                      this.OnP ropertyCha nged("Reve nue");
  3462                             }
  3463                    }
  3464                    
  3465                    ///  <summary>
  3466                    ///  Shows the  annual rev enue conve rted to th e system's  default b ase curren cy. The ca lculations  use the e xchange ra te specifi ed in the  Currencies  area.
  3467                    ///  </summary>
  3468                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("reve nue_base") ]
  3469                    publ ic Microso ft.Xrm.Sdk .Money Rev enue_Base
  3470                    {
  3471                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3472                             get
  3473                             {
  3474                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. Money>("re venue_base ");
  3475                             }
  3476                    }
  3477                    
  3478                    ///  <summary>
  3479                    ///  Type the n umber of s hares avai lable to t he public  for the ac count. Thi s number i s used as  an indicat or in fina ncial perf ormance an alysis.
  3480                    ///  </summary>
  3481                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("shar esoutstand ing")]
  3482                    publ ic System. Nullable<i nt> Shares Outstandin g
  3483                    {
  3484                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3485                             get
  3486                             {
  3487                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("share soutstandi ng");
  3488                             }
  3489                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3490                             set
  3491                             {
  3492                                      this.OnP ropertyCha nging("Sha resOutstan ding");
  3493                                      this.Set AttributeV alue("shar esoutstand ing", valu e);
  3494                                      this.OnP ropertyCha nged("Shar esOutstand ing");
  3495                             }
  3496                    }
  3497                    
  3498                    ///  <summary>
  3499                    ///  Select a s hipping me thod for d eliveries  sent to th e account' s address  to designa te the pre ferred car rier or ot her delive ry option.
  3500                    ///  </summary>
  3501                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ship pingmethod code")]
  3502                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Ship pingMethod Code
  3503                    {
  3504                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3505                             get
  3506                             {
  3507                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("shi ppingmetho dcode");
  3508                             }
  3509                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3510                             set
  3511                             {
  3512                                      this.OnP ropertyCha nging("Shi ppingMetho dCode");
  3513                                      this.Set AttributeV alue("ship pingmethod code", val ue);
  3514                                      this.OnP ropertyCha nged("Ship pingMethod Code");
  3515                             }
  3516                    }
  3517                    
  3518                    ///  <summary>
  3519                    ///  Type the S tandard In dustrial C lassificat ion (SIC)  code that  indicates  the accoun t's primar y industry  of busine ss, for us e in marke ting segme ntation an d demograp hic analys is.
  3520                    ///  </summary>
  3521                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("sic" )]
  3522                    publ ic string  SIC
  3523                    {
  3524                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3525                             get
  3526                             {
  3527                                      return t his.GetAtt ributeValu e<string>( "sic");
  3528                             }
  3529                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3530                             set
  3531                             {
  3532                                      this.OnP ropertyCha nging("SIC ");
  3533                                      this.Set AttributeV alue("sic" , value);
  3534                                      this.OnP ropertyCha nged("SIC" );
  3535                             }
  3536                    }
  3537                    
  3538                    ///  <summary>
  3539                    ///  Choose the  service l evel agree ment (SLA)  that you  want to ap ply to the  Account r ecord.
  3540                    ///  </summary>
  3541                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("slai d")]
  3542                    publ ic Microso ft.Xrm.Sdk .EntityRef erence SLA Id
  3543                    {
  3544                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3545                             get
  3546                             {
  3547                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("sl aid");
  3548                             }
  3549                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3550                             set
  3551                             {
  3552                                      this.OnP ropertyCha nging("SLA Id");
  3553                                      this.Set AttributeV alue("slai d", value) ;
  3554                                      this.OnP ropertyCha nged("SLAI d");
  3555                             }
  3556                    }
  3557                    
  3558                    ///  <summary>
  3559                    ///  Last SLA t hat was ap plied to t his case.  This field  is for in ternal use  only.
  3560                    ///  </summary>
  3561                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("slai nvokedid") ]
  3562                    publ ic Microso ft.Xrm.Sdk .EntityRef erence SLA InvokedId
  3563                    {
  3564                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3565                             get
  3566                             {
  3567                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("sl ainvokedid ");
  3568                             }
  3569                    }
  3570                    
  3571                    ///  <summary>
  3572                    ///  Shows the  ID of the  stage.
  3573                    ///  </summary>
  3574                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stag eid")]
  3575                    publ ic System. Nullable<S ystem.Guid > StageId
  3576                    {
  3577                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3578                             get
  3579                             {
  3580                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("stageid ");
  3581                             }
  3582                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3583                             set
  3584                             {
  3585                                      this.OnP ropertyCha nging("Sta geId");
  3586                                      this.Set AttributeV alue("stag eid", valu e);
  3587                                      this.OnP ropertyCha nged("Stag eId");
  3588                             }
  3589                    }
  3590                    
  3591                    ///  <summary>
  3592                    ///  Shows whet her the ac count is a ctive or i nactive. I nactive ac counts are  read-only  and can't  be edited  unless th ey are rea ctivated.
  3593                    ///  </summary>
  3594                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat ecode")]
  3595                    publ ic System. Nullable<V A.PPMS.Con text.Accou ntState> S tateCode
  3596                    {
  3597                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3598                             get
  3599                             {
  3600                                      Microsof t.Xrm.Sdk. OptionSetV alue optio nSet = thi s.GetAttri buteValue< Microsoft. Xrm.Sdk.Op tionSetVal ue>("state code");
  3601                                      if ((opt ionSet !=  null))
  3602                                      {
  3603                                               return ((V A.PPMS.Con text.Accou ntState)(S ystem.Enum .ToObject( typeof(VA. PPMS.Conte xt.Account State), op tionSet.Va lue)));
  3604                                      }
  3605                                      else
  3606                                      {
  3607                                               return nul l;
  3608                                      }
  3609                             }
  3610                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3611                             set
  3612                             {
  3613                                      this.OnP ropertyCha nging("Sta teCode");
  3614                                      if ((val ue == null ))
  3615                                      {
  3616                                               this.SetAt tributeVal ue("statec ode", null );
  3617                                      }
  3618                                      else
  3619                                      {
  3620                                               this.SetAt tributeVal ue("statec ode", new  Microsoft. Xrm.Sdk.Op tionSetVal ue(((int)( value))));
  3621                                      }
  3622                                      this.OnP ropertyCha nged("Stat eCode");
  3623                             }
  3624                    }
  3625                    
  3626                    ///  <summary>
  3627                    ///  Select the  account's  status.
  3628                    ///  </summary>
  3629                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  3630                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Stat usCode
  3631                    {
  3632                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3633                             get
  3634                             {
  3635                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("sta tuscode");
  3636                             }
  3637                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3638                             set
  3639                             {
  3640                                      this.OnP ropertyCha nging("Sta tusCode");
  3641                                      this.Set AttributeV alue("stat uscode", v alue);
  3642                                      this.OnP ropertyCha nged("Stat usCode");
  3643                             }
  3644                    }
  3645                    
  3646                    ///  <summary>
  3647                    ///  Type the s tock excha nge at whi ch the acc ount is li sted to tr ack their  stock and  financial  performanc e of the c ompany.
  3648                    ///  </summary>
  3649                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stoc kexchange" )]
  3650                    publ ic string  StockExcha nge
  3651                    {
  3652                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3653                             get
  3654                             {
  3655                                      return t his.GetAtt ributeValu e<string>( "stockexch ange");
  3656                             }
  3657                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3658                             set
  3659                             {
  3660                                      this.OnP ropertyCha nging("Sto ckExchange ");
  3661                                      this.Set AttributeV alue("stoc kexchange" , value);
  3662                                      this.OnP ropertyCha nged("Stoc kExchange" );
  3663                             }
  3664                    }
  3665                    
  3666                    ///  <summary>
  3667                    ///  Type the m ain phone  number for  this acco unt.
  3668                    ///  </summary>
  3669                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("tele phone1")]
  3670                    publ ic string  Telephone1
  3671                    {
  3672                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3673                             get
  3674                             {
  3675                                      return t his.GetAtt ributeValu e<string>( "telephone 1");
  3676                             }
  3677                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3678                             set
  3679                             {
  3680                                      this.OnP ropertyCha nging("Tel ephone1");
  3681                                      this.Set AttributeV alue("tele phone1", v alue);
  3682                                      this.OnP ropertyCha nged("Tele phone1");
  3683                             }
  3684                    }
  3685                    
  3686                    ///  <summary>
  3687                    ///  Type a sec ond phone  number for  this acco unt.
  3688                    ///  </summary>
  3689                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("tele phone2")]
  3690                    publ ic string  Telephone2
  3691                    {
  3692                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3693                             get
  3694                             {
  3695                                      return t his.GetAtt ributeValu e<string>( "telephone 2");
  3696                             }
  3697                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3698                             set
  3699                             {
  3700                                      this.OnP ropertyCha nging("Tel ephone2");
  3701                                      this.Set AttributeV alue("tele phone2", v alue);
  3702                                      this.OnP ropertyCha nged("Tele phone2");
  3703                             }
  3704                    }
  3705                    
  3706                    ///  <summary>
  3707                    ///  Type a thi rd phone n umber for  this accou nt.
  3708                    ///  </summary>
  3709                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("tele phone3")]
  3710                    publ ic string  Telephone3
  3711                    {
  3712                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3713                             get
  3714                             {
  3715                                      return t his.GetAtt ributeValu e<string>( "telephone 3");
  3716                             }
  3717                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3718                             set
  3719                             {
  3720                                      this.OnP ropertyCha nging("Tel ephone3");
  3721                                      this.Set AttributeV alue("tele phone3", v alue);
  3722                                      this.OnP ropertyCha nged("Tele phone3");
  3723                             }
  3724                    }
  3725                    
  3726                    ///  <summary>
  3727                    ///  Select a r egion or t erritory f or the acc ount for u se in segm entation a nd analysi s.
  3728                    ///  </summary>
  3729                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("terr itorycode" )]
  3730                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Terr itoryCode
  3731                    {
  3732                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3733                             get
  3734                             {
  3735                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("ter ritorycode ");
  3736                             }
  3737                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3738                             set
  3739                             {
  3740                                      this.OnP ropertyCha nging("Ter ritoryCode ");
  3741                                      this.Set AttributeV alue("terr itorycode" , value);
  3742                                      this.OnP ropertyCha nged("Terr itoryCode" );
  3743                             }
  3744                    }
  3745                    
  3746                    ///  <summary>
  3747                    ///  Choose the  sales reg ion or ter ritory for  the accou nt to make  sure the  account is  assigned  to the cor rect repre sentative  and for us e in segme ntation an d analysis .
  3748                    ///  </summary>
  3749                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("terr itoryid")]
  3750                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Ter ritoryId
  3751                    {
  3752                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3753                             get
  3754                             {
  3755                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("te rritoryid" );
  3756                             }
  3757                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3758                             set
  3759                             {
  3760                                      this.OnP ropertyCha nging("Ter ritoryId") ;
  3761                                      this.Set AttributeV alue("terr itoryid",  value);
  3762                                      this.OnP ropertyCha nged("Terr itoryId");
  3763                             }
  3764                    }
  3765                    
  3766                    ///  <summary>
  3767                    ///  Type the s tock excha nge symbol  for the a ccount to  track fina ncial perf ormance of  the compa ny. You ca n click th e code ent ered in th is field t o access t he latest  trading in formation  from MSN M oney.
  3768                    ///  </summary>
  3769                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("tick ersymbol") ]
  3770                    publ ic string  TickerSymb ol
  3771                    {
  3772                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3773                             get
  3774                             {
  3775                                      return t his.GetAtt ributeValu e<string>( "tickersym bol");
  3776                             }
  3777                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3778                             set
  3779                             {
  3780                                      this.OnP ropertyCha nging("Tic kerSymbol" );
  3781                                      this.Set AttributeV alue("tick ersymbol",  value);
  3782                                      this.OnP ropertyCha nged("Tick erSymbol") ;
  3783                             }
  3784                    }
  3785                    
  3786                    ///  <summary>
  3787                    ///  Total time  spent for  emails (r ead and wr ite) and m eetings by  me in rel ation to a ccount rec ord.
  3788                    ///  </summary>
  3789                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("time spentbymeo nemailandm eetings")]
  3790                    publ ic string  TimeSpentB yMeOnEmail AndMeeting s
  3791                    {
  3792                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3793                             get
  3794                             {
  3795                                      return t his.GetAtt ributeValu e<string>( "timespent bymeonemai landmeetin gs");
  3796                             }
  3797                    }
  3798                    
  3799                    ///  <summary>
  3800                    ///  For intern al use onl y.
  3801                    ///  </summary>
  3802                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("time zoneruleve rsionnumbe r")]
  3803                    publ ic System. Nullable<i nt> TimeZo neRuleVers ionNumber
  3804                    {
  3805                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3806                             get
  3807                             {
  3808                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("timez onerulever sionnumber ");
  3809                             }
  3810                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3811                             set
  3812                             {
  3813                                      this.OnP ropertyCha nging("Tim eZoneRuleV ersionNumb er");
  3814                                      this.Set AttributeV alue("time zoneruleve rsionnumbe r", value) ;
  3815                                      this.OnP ropertyCha nged("Time ZoneRuleVe rsionNumbe r");
  3816                             }
  3817                    }
  3818                    
  3819                    ///  <summary>
  3820                    ///  Choose the  local cur rency for  the record  to make s ure budget s are repo rted in th e correct  currency.
  3821                    ///  </summary>
  3822                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("tran sactioncur rencyid")]
  3823                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Tra nsactionCu rrencyId
  3824                    {
  3825                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3826                             get
  3827                             {
  3828                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("tr ansactionc urrencyid" );
  3829                             }
  3830                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3831                             set
  3832                             {
  3833                                      this.OnP ropertyCha nging("Tra nsactionCu rrencyId") ;
  3834                                      this.Set AttributeV alue("tran sactioncur rencyid",  value);
  3835                                      this.OnP ropertyCha nged("Tran sactionCur rencyId");
  3836                             }
  3837                    }
  3838                    
  3839                    ///  <summary>
  3840                    ///  For intern al use onl y.
  3841                    ///  </summary>
  3842                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("trav ersedpath" )]
  3843                    publ ic string  TraversedP ath
  3844                    {
  3845                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3846                             get
  3847                             {
  3848                                      return t his.GetAtt ributeValu e<string>( "traversed path");
  3849                             }
  3850                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3851                             set
  3852                             {
  3853                                      this.OnP ropertyCha nging("Tra versedPath ");
  3854                                      this.Set AttributeV alue("trav ersedpath" , value);
  3855                                      this.OnP ropertyCha nged("Trav ersedPath" );
  3856                             }
  3857                    }
  3858                    
  3859                    ///  <summary>
  3860                    ///  Time zone  code that  was in use  when the  record was  created.
  3861                    ///  </summary>
  3862                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("utcc onversiont imezonecod e")]
  3863                    publ ic System. Nullable<i nt> UTCCon versionTim eZoneCode
  3864                    {
  3865                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3866                             get
  3867                             {
  3868                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("utcco nversionti mezonecode ");
  3869                             }
  3870                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3871                             set
  3872                             {
  3873                                      this.OnP ropertyCha nging("UTC Conversion TimeZoneCo de");
  3874                                      this.Set AttributeV alue("utcc onversiont imezonecod e", value) ;
  3875                                      this.OnP ropertyCha nged("UTCC onversionT imeZoneCod e");
  3876                             }
  3877                    }
  3878                    
  3879                    ///  <summary>
  3880                    ///  Version nu mber of th e account.
  3881                    ///  </summary>
  3882                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("vers ionnumber" )]
  3883                    publ ic System. Nullable<l ong> Versi onNumber
  3884                    {
  3885                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3886                             get
  3887                             {
  3888                                      return t his.GetAtt ributeValu e<System.N ullable<lo ng>>("vers ionnumber" );
  3889                             }
  3890                    }
  3891                    
  3892                    ///  <summary>
  3893                    ///  Type the a ccount's w ebsite URL  to get qu ick detail s about th e company  profile.
  3894                    ///  </summary>
  3895                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("webs iteurl")]
  3896                    publ ic string  WebSiteURL
  3897                    {
  3898                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3899                             get
  3900                             {
  3901                                      return t his.GetAtt ributeValu e<string>( "websiteur l");
  3902                             }
  3903                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3904                             set
  3905                             {
  3906                                      this.OnP ropertyCha nging("Web SiteURL");
  3907                                      this.Set AttributeV alue("webs iteurl", v alue);
  3908                                      this.OnP ropertyCha nged("WebS iteURL");
  3909                             }
  3910                    }
  3911                    
  3912                    ///  <summary>
  3913                    ///  Type the p honetic sp elling of  the compan y name, if  specified  in Japane se, to mak e sure the  name is p ronounced  correctly  in phone c alls and o ther commu nications.
  3914                    ///  </summary>
  3915                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("yomi name")]
  3916                    publ ic string  YomiName
  3917                    {
  3918                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3919                             get
  3920                             {
  3921                                      return t his.GetAtt ributeValu e<string>( "yominame" );
  3922                             }
  3923                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3924                             set
  3925                             {
  3926                                      this.OnP ropertyCha nging("Yom iName");
  3927                                      this.Set AttributeV alue("yomi name", val ue);
  3928                                      this.OnP ropertyCha nged("Yomi Name");
  3929                             }
  3930                    }
  3931                    
  3932                    ///  <summary>
  3933                    ///  1:N accoun t_master_a ccount
  3934                    ///  </summary>
  3935                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("ac count_mast er_account ", Microso ft.Xrm.Sdk .EntityRol e.Referenc ed)]
  3936                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.Ac count> Ref erencedacc ount_maste r_account
  3937                    {
  3938                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3939                             get
  3940                             {
  3941                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.A ccount>("a ccount_mas ter_accoun t", Micros oft.Xrm.Sd k.EntityRo le.Referen ced);
  3942                             }
  3943                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3944                             set
  3945                             {
  3946                                      this.OnP ropertyCha nging("Ref erencedacc ount_maste r_account" );
  3947                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.Account> ("account_ master_acc ount", Mic rosoft.Xrm .Sdk.Entit yRole.Refe renced, va lue);
  3948                                      this.OnP ropertyCha nged("Refe rencedacco unt_master _account") ;
  3949                             }
  3950                    }
  3951                    
  3952                    ///  <summary>
  3953                    ///  1:N accoun t_parent_a ccount
  3954                    ///  </summary>
  3955                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("ac count_pare nt_account ", Microso ft.Xrm.Sdk .EntityRol e.Referenc ed)]
  3956                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.Ac count> Ref erencedacc ount_paren t_account
  3957                    {
  3958                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3959                             get
  3960                             {
  3961                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.A ccount>("a ccount_par ent_accoun t", Micros oft.Xrm.Sd k.EntityRo le.Referen ced);
  3962                             }
  3963                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3964                             set
  3965                             {
  3966                                      this.OnP ropertyCha nging("Ref erencedacc ount_paren t_account" );
  3967                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.Account> ("account_ parent_acc ount", Mic rosoft.Xrm .Sdk.Entit yRole.Refe renced, va lue);
  3968                                      this.OnP ropertyCha nged("Refe rencedacco unt_parent _account") ;
  3969                             }
  3970                    }
  3971                    
  3972                    ///  <summary>
  3973                    ///  1:N contac t_customer _accounts
  3974                    ///  </summary>
  3975                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("co ntact_cust omer_accou nts")]
  3976                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.Co ntact> con tact_custo mer_accoun ts
  3977                    {
  3978                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3979                             get
  3980                             {
  3981                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.C ontact>("c ontact_cus tomer_acco unts", nul l);
  3982                             }
  3983                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3984                             set
  3985                             {
  3986                                      this.OnP ropertyCha nging("con tact_custo mer_accoun ts");
  3987                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.Contact> ("contact_ customer_a ccounts",  null, valu e);
  3988                                      this.OnP ropertyCha nged("cont act_custom er_account s");
  3989                             }
  3990                    }
  3991                    
  3992                    ///  <summary>
  3993                    ///  1:N ppms_a ccount_agr eementprov ider_Exter nalProvide r
  3994                    ///  </summary>
  3995                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_account _agreement provider_E xternalPro vider")]
  3996                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_agreeme ntprovider > ppms_acc ount_agree mentprovid er_Externa lProvider
  3997                    {
  3998                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  3999                             get
  4000                             {
  4001                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_agreem entprovide r>("ppms_a ccount_agr eementprov ider_Exter nalProvide r", null);
  4002                             }
  4003                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4004                             set
  4005                             {
  4006                                      this.OnP ropertyCha nging("ppm s_account_ agreementp rovider_Ex ternalProv ider");
  4007                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_agr eementprov ider>("ppm s_account_ agreementp rovider_Ex ternalProv ider", nul l, value);
  4008                                      this.OnP ropertyCha nged("ppms _account_a greementpr ovider_Ext ernalProvi der");
  4009                             }
  4010                    }
  4011                    
  4012                    ///  <summary>
  4013                    ///  1:N ppms_a ccount_car esite_orga nization
  4014                    ///  </summary>
  4015                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_account _caresite_ organizati on")]
  4016                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_caresit e> ppms_ac count_care site_organ ization
  4017                    {
  4018                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4019                             get
  4020                             {
  4021                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_caresi te>("ppms_ account_ca resite_org anization" , null);
  4022                             }
  4023                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4024                             set
  4025                             {
  4026                                      this.OnP ropertyCha nging("ppm s_account_ caresite_o rganizatio n");
  4027                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_car esite>("pp ms_account _caresite_ organizati on", null,  value);
  4028                                      this.OnP ropertyCha nged("ppms _account_c aresite_or ganization ");
  4029                             }
  4030                    }
  4031                    
  4032                    ///  <summary>
  4033                    ///  1:N ppms_a ccount_ppm s_agreemen tprovider_ ProviderGr oup
  4034                    ///  </summary>
  4035                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_account _ppms_agre ementprovi der_Provid erGroup")]
  4036                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_agreeme ntprovider > ppms_acc ount_ppms_ agreementp rovider_Pr oviderGrou p
  4037                    {
  4038                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4039                             get
  4040                             {
  4041                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_agreem entprovide r>("ppms_a ccount_ppm s_agreemen tprovider_ ProviderGr oup", null );
  4042                             }
  4043                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4044                             set
  4045                             {
  4046                                      this.OnP ropertyCha nging("ppm s_account_ ppms_agree mentprovid er_Provide rGroup");
  4047                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_agr eementprov ider>("ppm s_account_ ppms_agree mentprovid er_Provide rGroup", n ull, value );
  4048                                      this.OnP ropertyCha nged("ppms _account_p pms_agreem entprovide r_Provider Group");
  4049                             }
  4050                    }
  4051                    
  4052                    ///  <summary>
  4053                    ///  1:N ppms_a ccount_ppm s_historyl og_provide rid
  4054                    ///  </summary>
  4055                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_account _ppms_hist orylog_pro viderid")]
  4056                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_history log> ppms_ account_pp ms_history log_provid erid
  4057                    {
  4058                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4059                             get
  4060                             {
  4061                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_histor ylog>("ppm s_account_ ppms_histo rylog_prov iderid", n ull);
  4062                             }
  4063                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4064                             set
  4065                             {
  4066                                      this.OnP ropertyCha nging("ppm s_account_ ppms_histo rylog_prov iderid");
  4067                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_his torylog>(" ppms_accou nt_ppms_hi storylog_p roviderid" , null, va lue);
  4068                                      this.OnP ropertyCha nged("ppms _account_p pms_histor ylog_provi derid");
  4069                             }
  4070                    }
  4071                    
  4072                    ///  <summary>
  4073                    ///  1:N ppms_a ccount_ppm s_npi
  4074                    ///  </summary>
  4075                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_account _ppms_npi" )]
  4076                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_npi> pp ms_account _ppms_npi
  4077                    {
  4078                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4079                             get
  4080                             {
  4081                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_npi>(" ppms_accou nt_ppms_np i", null);
  4082                             }
  4083                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4084                             set
  4085                             {
  4086                                      this.OnP ropertyCha nging("ppm s_account_ ppms_npi") ;
  4087                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_npi >("ppms_ac count_ppms _npi", nul l, value);
  4088                                      this.OnP ropertyCha nged("ppms _account_p pms_npi");
  4089                             }
  4090                    }
  4091                    
  4092                    ///  <summary>
  4093                    ///  1:N ppms_a ccount_ppm s_othernam e
  4094                    ///  </summary>
  4095                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_account _ppms_othe rname")]
  4096                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_otherna me> ppms_a ccount_ppm s_othernam e
  4097                    {
  4098                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4099                             get
  4100                             {
  4101                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_othern ame>("ppms _account_p pms_othern ame", null );
  4102                             }
  4103                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4104                             set
  4105                             {
  4106                                      this.OnP ropertyCha nging("ppm s_account_ ppms_other name");
  4107                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_oth ername>("p pms_accoun t_ppms_oth ername", n ull, value );
  4108                                      this.OnP ropertyCha nged("ppms _account_p pms_othern ame");
  4109                             }
  4110                    }
  4111                    
  4112                    ///  <summary>
  4113                    ///  1:N ppms_a ccount_ppm s_provider credential
  4114                    ///  </summary>
  4115                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_account _ppms_prov idercreden tial")]
  4116                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_provide rcredentia l> ppms_ac count_ppms _providerc redential
  4117                    {
  4118                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4119                             get
  4120                             {
  4121                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_provid ercredenti al>("ppms_ account_pp ms_provide rcredentia l", null);
  4122                             }
  4123                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4124                             set
  4125                             {
  4126                                      this.OnP ropertyCha nging("ppm s_account_ ppms_provi dercredent ial");
  4127                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_pro vidercrede ntial>("pp ms_account _ppms_prov idercreden tial", nul l, value);
  4128                                      this.OnP ropertyCha nged("ppms _account_p pms_provid ercredenti al");
  4129                             }
  4130                    }
  4131                    
  4132                    ///  <summary>
  4133                    ///  1:N ppms_a ccount_ppm s_provider service
  4134                    ///  </summary>
  4135                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_account _ppms_prov iderservic e")]
  4136                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_provide rservice>  ppms_accou nt_ppms_pr oviderserv ice
  4137                    {
  4138                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4139                             get
  4140                             {
  4141                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_provid erservice> ("ppms_acc ount_ppms_ providerse rvice", nu ll);
  4142                             }
  4143                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4144                             set
  4145                             {
  4146                                      this.OnP ropertyCha nging("ppm s_account_ ppms_provi derservice ");
  4147                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_pro viderservi ce>("ppms_ account_pp ms_provide rservice",  null, val ue);
  4148                                      this.OnP ropertyCha nged("ppms _account_p pms_provid erservice" );
  4149                             }
  4150                    }
  4151                    
  4152                    ///  <summary>
  4153                    ///  1:N ppms_a ccount_ppm s_provider taxonomy
  4154                    ///  </summary>
  4155                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_account _ppms_prov idertaxono my")]
  4156                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_provide rtaxonomy>  ppms_acco unt_ppms_p rovidertax onomy
  4157                    {
  4158                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4159                             get
  4160                             {
  4161                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_provid ertaxonomy >("ppms_ac count_ppms _providert axonomy",  null);
  4162                             }
  4163                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4164                             set
  4165                             {
  4166                                      this.OnP ropertyCha nging("ppm s_account_ ppms_provi dertaxonom y");
  4167                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_pro vidertaxon omy>("ppms _account_p pms_provid ertaxonomy ", null, v alue);
  4168                                      this.OnP ropertyCha nged("ppms _account_p pms_provid ertaxonomy ");
  4169                             }
  4170                    }
  4171                    
  4172                    ///  <summary>
  4173                    ///  1:N ppms_a ccount_ppm s_vainstit utionaffil iation
  4174                    ///  </summary>
  4175                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_account _ppms_vain stitutiona ffiliation ")]
  4176                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_vainsti tutionaffi liation> p pms_accoun t_ppms_vai nstitution affiliatio n
  4177                    {
  4178                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4179                             get
  4180                             {
  4181                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_vainst itutionaff iliation>( "ppms_acco unt_ppms_v ainstituti onaffiliat ion", null );
  4182                             }
  4183                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4184                             set
  4185                             {
  4186                                      this.OnP ropertyCha nging("ppm s_account_ ppms_vains titutionaf filiation" );
  4187                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_vai nstitution affiliatio n>("ppms_a ccount_ppm s_vainstit utionaffil iation", n ull, value );
  4188                                      this.OnP ropertyCha nged("ppms _account_p pms_vainst itutionaff iliation") ;
  4189                             }
  4190                    }
  4191                    
  4192                    ///  <summary>
  4193                    ///  1:N ppms_a ccount_ppm s_vaprovid errelation ship
  4194                    ///  </summary>
  4195                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_account _ppms_vapr oviderrela tionship") ]
  4196                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_vaprovi derrelatio nship> ppm s_account_ ppms_vapro viderrelat ionship
  4197                    {
  4198                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4199                             get
  4200                             {
  4201                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_vaprov iderrelati onship>("p pms_accoun t_ppms_vap roviderrel ationship" , null);
  4202                             }
  4203                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4204                             set
  4205                             {
  4206                                      this.OnP ropertyCha nging("ppm s_account_ ppms_vapro viderrelat ionship");
  4207                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_vap roviderrel ationship> ("ppms_acc ount_ppms_ vaprovider relationsh ip", null,  value);
  4208                                      this.OnP ropertyCha nged("ppms _account_p pms_vaprov iderrelati onship");
  4209                             }
  4210                    }
  4211                    
  4212                    ///  <summary>
  4213                    ///  1:N ppms_a ccount_pro viderlicen sure
  4214                    ///  </summary>
  4215                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_account _providerl icensure") ]
  4216                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_provide rlicensure > ppms_acc ount_provi derlicensu re
  4217                    {
  4218                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4219                             get
  4220                             {
  4221                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_provid erlicensur e>("ppms_a ccount_pro viderlicen sure", nul l);
  4222                             }
  4223                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4224                             set
  4225                             {
  4226                                      this.OnP ropertyCha nging("ppm s_account_ providerli censure");
  4227                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_pro viderlicen sure>("ppm s_account_ providerli censure",  null, valu e);
  4228                                      this.OnP ropertyCha nged("ppms _account_p roviderlic ensure");
  4229                             }
  4230                    }
  4231                    
  4232                    ///  <summary>
  4233                    ///  1:N ppms_a ccount_pro viderprivi lege
  4234                    ///  </summary>
  4235                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_account _providerp rivilege") ]
  4236                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_provide rprivilege > ppms_acc ount_provi derprivile ge
  4237                    {
  4238                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4239                             get
  4240                             {
  4241                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_provid erprivileg e>("ppms_a ccount_pro viderprivi lege", nul l);
  4242                             }
  4243                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4244                             set
  4245                             {
  4246                                      this.OnP ropertyCha nging("ppm s_account_ providerpr ivilege");
  4247                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_pro viderprivi lege>("ppm s_account_ providerpr ivilege",  null, valu e);
  4248                                      this.OnP ropertyCha nged("ppms _account_p roviderpri vilege");
  4249                             }
  4250                    }
  4251                    
  4252                    ///  <summary>
  4253                    ///  1:N ppms_a ccount_tax onomy
  4254                    ///  </summary>
  4255                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_account _taxonomy" )]
  4256                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_taxonom y> ppms_ac count_taxo nomy
  4257                    {
  4258                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4259                             get
  4260                             {
  4261                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_taxono my>("ppms_ account_ta xonomy", n ull);
  4262                             }
  4263                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4264                             set
  4265                             {
  4266                                      this.OnP ropertyCha nging("ppm s_account_ taxonomy") ;
  4267                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_tax onomy>("pp ms_account _taxonomy" , null, va lue);
  4268                                      this.OnP ropertyCha nged("ppms _account_t axonomy");
  4269                             }
  4270                    }
  4271                    
  4272                    ///  <summary>
  4273                    ///  1:N ppms_a ccount_vap rovidernet work_opera tingorgani zation
  4274                    ///  </summary>
  4275                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_account _vaprovide rnetwork_o peratingor ganization ")]
  4276                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_vaprovi dernetwork > ppms_acc ount_vapro vidernetwo rk_operati ngorganiza tion
  4277                    {
  4278                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4279                             get
  4280                             {
  4281                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_vaprov idernetwor k>("ppms_a ccount_vap rovidernet work_opera tingorgani zation", n ull);
  4282                             }
  4283                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4284                             set
  4285                             {
  4286                                      this.OnP ropertyCha nging("ppm s_account_ vaprovider network_op eratingorg anization" );
  4287                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_vap rovidernet work>("ppm s_account_ vaprovider network_op eratingorg anization" , null, va lue);
  4288                                      this.OnP ropertyCha nged("ppms _account_v aprovidern etwork_ope ratingorga nization") ;
  4289                             }
  4290                    }
  4291                    
  4292                    ///  <summary>
  4293                    ///  1:N ppms_p pm_provide ragreement
  4294                    ///  </summary>
  4295                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_ppm_pro videragree ment")]
  4296                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_provide ragreement > ppms_ppm _providera greement
  4297                    {
  4298                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4299                             get
  4300                             {
  4301                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_provid eragreemen t>("ppms_p pm_provide ragreement ", null);
  4302                             }
  4303                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4304                             set
  4305                             {
  4306                                      this.OnP ropertyCha nging("ppm s_ppm_prov ideragreem ent");
  4307                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_pro videragree ment>("ppm s_ppm_prov ideragreem ent", null , value);
  4308                                      this.OnP ropertyCha nged("ppms _ppm_provi deragreeme nt");
  4309                             }
  4310                    }
  4311                    
  4312                    ///  <summary>
  4313                    ///  1:N ppms_p roviderser vice_Organ ization
  4314                    ///  </summary>
  4315                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_provide rservice_O rganizatio n")]
  4316                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_provide rservice>  ppms_provi derservice _Organizat ion
  4317                    {
  4318                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4319                             get
  4320                             {
  4321                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_provid erservice> ("ppms_pro viderservi ce_Organiz ation", nu ll);
  4322                             }
  4323                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4324                             set
  4325                             {
  4326                                      this.OnP ropertyCha nging("ppm s_provider service_Or ganization ");
  4327                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_pro viderservi ce>("ppms_ providerse rvice_Orga nization",  null, val ue);
  4328                                      this.OnP ropertyCha nged("ppms _providers ervice_Org anization" );
  4329                             }
  4330                    }
  4331                    
  4332                    ///  <summary>
  4333                    ///  N:1 accoun t_master_a ccount
  4334                    ///  </summary>
  4335                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("mast erid")]
  4336                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("ac count_mast er_account ", Microso ft.Xrm.Sdk .EntityRol e.Referenc ing)]
  4337                    publ ic VA.PPMS .Context.A ccount Ref erencingac count_mast er_account
  4338                    {
  4339                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4340                             get
  4341                             {
  4342                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.Acc ount>("acc ount_maste r_account" , Microsof t.Xrm.Sdk. EntityRole .Referenci ng);
  4343                             }
  4344                    }
  4345                    
  4346                    ///  <summary>
  4347                    ///  N:1 accoun t_parent_a ccount
  4348                    ///  </summary>
  4349                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("pare ntaccounti d")]
  4350                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("ac count_pare nt_account ", Microso ft.Xrm.Sdk .EntityRol e.Referenc ing)]
  4351                    publ ic VA.PPMS .Context.A ccount Ref erencingac count_pare nt_account
  4352                    {
  4353                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4354                             get
  4355                             {
  4356                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.Acc ount>("acc ount_paren t_account" , Microsof t.Xrm.Sdk. EntityRole .Referenci ng);
  4357                             }
  4358                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4359                             set
  4360                             {
  4361                                      this.OnP ropertyCha nging("Ref erencingac count_pare nt_account ");
  4362                                      this.Set RelatedEnt ity<VA.PPM S.Context. Account>(" account_pa rent_accou nt", Micro soft.Xrm.S dk.EntityR ole.Refere ncing, val ue);
  4363                                      this.OnP ropertyCha nged("Refe rencingacc ount_paren t_account" );
  4364                             }
  4365                    }
  4366                    
  4367                    ///  <summary>
  4368                    ///  N:1 accoun t_primary_ contact
  4369                    ///  </summary>
  4370                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("prim arycontact id")]
  4371                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("ac count_prim ary_contac t")]
  4372                    publ ic VA.PPMS .Context.C ontact acc ount_prima ry_contact
  4373                    {
  4374                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4375                             get
  4376                             {
  4377                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.Con tact>("acc ount_prima ry_contact ", null);
  4378                             }
  4379                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4380                             set
  4381                             {
  4382                                      this.OnP ropertyCha nging("acc ount_prima ry_contact ");
  4383                                      this.Set RelatedEnt ity<VA.PPM S.Context. Contact>(" account_pr imary_cont act", null , value);
  4384                                      this.OnP ropertyCha nged("acco unt_primar y_contact" );
  4385                             }
  4386                    }
  4387                    
  4388                    ///  <summary>
  4389                    ///  N:1 ppms_c aresite_ac count_owne dcaresite
  4390                    ///  </summary>
  4391                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _ownedcare site")]
  4392                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_caresit e_account_ ownedcares ite")]
  4393                    publ ic VA.PPMS .Context.p pms_caresi te ppms_ca resite_acc ount_owned caresite
  4394                    {
  4395                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4396                             get
  4397                             {
  4398                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.ppm s_caresite >("ppms_ca resite_acc ount_owned caresite",  null);
  4399                             }
  4400                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4401                             set
  4402                             {
  4403                                      this.OnP ropertyCha nging("ppm s_caresite _account_o wnedcaresi te");
  4404                                      this.Set RelatedEnt ity<VA.PPM S.Context. ppms_cares ite>("ppms _caresite_ account_ow nedcaresit e", null,  value);
  4405                                      this.OnP ropertyCha nged("ppms _caresite_ account_ow nedcaresit e");
  4406                             }
  4407                    }
  4408                    
  4409                    ///  <summary>
  4410                    ///  N:1 ppms_p pms_npi_ac count
  4411                    ///  </summary>
  4412                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _npiid")]
  4413                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_ppms_np i_account" )]
  4414                    publ ic VA.PPMS .Context.p pms_npi pp ms_ppms_np i_account
  4415                    {
  4416                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4417                             get
  4418                             {
  4419                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.ppm s_npi>("pp ms_ppms_np i_account" , null);
  4420                             }
  4421                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4422                             set
  4423                             {
  4424                                      this.OnP ropertyCha nging("ppm s_ppms_npi _account") ;
  4425                                      this.Set RelatedEnt ity<VA.PPM S.Context. ppms_npi>( "ppms_ppms _npi_accou nt", null,  value);
  4426                                      this.OnP ropertyCha nged("ppms _ppms_npi_ account");
  4427                             }
  4428                    }
  4429                    
  4430                    ///  <summary>
  4431                    ///  N:1 ppms_v a_facility _account_f acilityid
  4432                    ///  </summary>
  4433                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _facilityi d")]
  4434                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_va_faci lity_accou nt_facilit yid")]
  4435                    publ ic VA.PPMS .Context.v a_facility  ppms_va_f acility_ac count_faci lityid
  4436                    {
  4437                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4438                             get
  4439                             {
  4440                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.va_ facility>( "ppms_va_f acility_ac count_faci lityid", n ull);
  4441                             }
  4442                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4443                             set
  4444                             {
  4445                                      this.OnP ropertyCha nging("ppm s_va_facil ity_accoun t_facility id");
  4446                                      this.Set RelatedEnt ity<VA.PPM S.Context. va_facilit y>("ppms_v a_facility _account_f acilityid" , null, va lue);
  4447                                      this.OnP ropertyCha nged("ppms _va_facili ty_account _facilityi d");
  4448                             }
  4449                    }
  4450                    
  4451                    ///  <summary>
  4452                    ///  Constructo r for popu lating via  LINQ quer ies given  a LINQ ano nymous typ e
  4453                    ///  <param nam e="anonymo usType">LI NQ anonymo us type.</ param>
  4454                    ///  </summary>
  4455                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  4456                    publ ic Account (object an onymousTyp e) : 
  4457                                      this()
  4458                    {
  4459                foreach  (var p in  anonymousT ype.GetTyp e().GetPro perties())
  4460                {
  4461                    var  value = p. GetValue(a nonymousTy pe, null);
  4462                    var  name = p.N ame.ToLowe r();
  4463                
  4464                    if ( name.EndsW ith("enum" ) && value .GetType() .BaseType  == typeof( System.Enu m))
  4465                    {
  4466                         value = ne w Microsof t.Xrm.Sdk. OptionSetV alue((int)  value);
  4467                         name = nam e.Remove(n ame.Length  - "enum". Length);
  4468                    }
  4469                
  4470                    swit ch (name)
  4471                    {
  4472                         case "id":
  4473                             base.I d = (Syste m.Guid)val ue;
  4474                             Attrib utes["acco untid"] =  base.Id;
  4475                             break;
  4476                         case "acco untid":
  4477                             var id  = (System .Nullable< System.Gui d>) value;
  4478                             if(id  == null){  continue;  }
  4479                             base.I d = id.Val ue;
  4480                             Attrib utes[name]  = base.Id ;
  4481                             break;
  4482                         case "form attedvalue s":
  4483                             // Add  Support f or Formatt edValues
  4484                             Format tedValues. AddRange(( Microsoft. Xrm.Sdk.Fo rmattedVal ueCollecti on)value);
  4485                             break;
  4486                         default:
  4487                             Attrib utes[name]  = value;
  4488                             break;
  4489                    }
  4490                }
  4491                    }
  4492                    
  4493                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("acco untcategor ycode")]
  4494                    publ ic virtual  Account_A ccountCate goryCode?  AccountCat egoryCodeE num
  4495                    {
  4496                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4497                             get
  4498                             {
  4499                                      return ( (Account_A ccountCate goryCode?) (EntityOpt ionSetEnum .GetEnum(t his, "acco untcategor ycode")));
  4500                             }
  4501                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4502                             set
  4503                             {
  4504                                      AccountC ategoryCod e = value. HasValue ?  new Micro soft.Xrm.S dk.OptionS etValue((i nt)value)  : null;
  4505                             }
  4506                    }
  4507                    
  4508                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("acco untclassif icationcod e")]
  4509                    publ ic virtual  Account_A ccountClas sification Code? Acco untClassif icationCod eEnum
  4510                    {
  4511                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4512                             get
  4513                             {
  4514                                      return ( (Account_A ccountClas sification Code?)(Ent ityOptionS etEnum.Get Enum(this,  "accountc lassificat ioncode")) );
  4515                             }
  4516                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4517                             set
  4518                             {
  4519                                      AccountC lassificat ionCode =  value.HasV alue ? new  Microsoft .Xrm.Sdk.O ptionSetVa lue((int)v alue) : nu ll;
  4520                             }
  4521                    }
  4522                    
  4523                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("acco untratingc ode")]
  4524                    publ ic virtual  Account_A ccountRati ngCode? Ac countRatin gCodeEnum
  4525                    {
  4526                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4527                             get
  4528                             {
  4529                                      return ( (Account_A ccountRati ngCode?)(E ntityOptio nSetEnum.G etEnum(thi s, "accoun tratingcod e")));
  4530                             }
  4531                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4532                             set
  4533                             {
  4534                                      AccountR atingCode  = value.Ha sValue ? n ew Microso ft.Xrm.Sdk .OptionSet Value((int )value) :  null;
  4535                             }
  4536                    }
  4537                    
  4538                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_addre sstypecode ")]
  4539                    publ ic virtual  Account_A ddress1_Ad dressTypeC ode? Addre ss1_Addres sTypeCodeE num
  4540                    {
  4541                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4542                             get
  4543                             {
  4544                                      return ( (Account_A ddress1_Ad dressTypeC ode?)(Enti tyOptionSe tEnum.GetE num(this,  "address1_ addresstyp ecode")));
  4545                             }
  4546                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4547                             set
  4548                             {
  4549                                      Address1 _AddressTy peCode = v alue.HasVa lue ? new  Microsoft. Xrm.Sdk.Op tionSetVal ue((int)va lue) : nul l;
  4550                             }
  4551                    }
  4552                    
  4553                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_freig httermscod e")]
  4554                    publ ic virtual  Account_A ddress1_Fr eightTerms Code? Addr ess1_Freig htTermsCod eEnum
  4555                    {
  4556                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4557                             get
  4558                             {
  4559                                      return ( (Account_A ddress1_Fr eightTerms Code?)(Ent ityOptionS etEnum.Get Enum(this,  "address1 _freightte rmscode")) );
  4560                             }
  4561                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4562                             set
  4563                             {
  4564                                      Address1 _FreightTe rmsCode =  value.HasV alue ? new  Microsoft .Xrm.Sdk.O ptionSetVa lue((int)v alue) : nu ll;
  4565                             }
  4566                    }
  4567                    
  4568                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_shipp ingmethodc ode")]
  4569                    publ ic virtual  Account_A ddress1_Sh ippingMeth odCode? Ad dress1_Shi ppingMetho dCodeEnum
  4570                    {
  4571                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4572                             get
  4573                             {
  4574                                      return ( (Account_A ddress1_Sh ippingMeth odCode?)(E ntityOptio nSetEnum.G etEnum(thi s, "addres s1_shippin gmethodcod e")));
  4575                             }
  4576                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4577                             set
  4578                             {
  4579                                      Address1 _ShippingM ethodCode  = value.Ha sValue ? n ew Microso ft.Xrm.Sdk .OptionSet Value((int )value) :  null;
  4580                             }
  4581                    }
  4582                    
  4583                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_addre sstypecode ")]
  4584                    publ ic virtual  Account_A ddress2_Ad dressTypeC ode? Addre ss2_Addres sTypeCodeE num
  4585                    {
  4586                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4587                             get
  4588                             {
  4589                                      return ( (Account_A ddress2_Ad dressTypeC ode?)(Enti tyOptionSe tEnum.GetE num(this,  "address2_ addresstyp ecode")));
  4590                             }
  4591                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4592                             set
  4593                             {
  4594                                      Address2 _AddressTy peCode = v alue.HasVa lue ? new  Microsoft. Xrm.Sdk.Op tionSetVal ue((int)va lue) : nul l;
  4595                             }
  4596                    }
  4597                    
  4598                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_freig httermscod e")]
  4599                    publ ic virtual  Account_A ddress2_Fr eightTerms Code? Addr ess2_Freig htTermsCod eEnum
  4600                    {
  4601                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4602                             get
  4603                             {
  4604                                      return ( (Account_A ddress2_Fr eightTerms Code?)(Ent ityOptionS etEnum.Get Enum(this,  "address2 _freightte rmscode")) );
  4605                             }
  4606                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4607                             set
  4608                             {
  4609                                      Address2 _FreightTe rmsCode =  value.HasV alue ? new  Microsoft .Xrm.Sdk.O ptionSetVa lue((int)v alue) : nu ll;
  4610                             }
  4611                    }
  4612                    
  4613                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_shipp ingmethodc ode")]
  4614                    publ ic virtual  Account_A ddress2_Sh ippingMeth odCode? Ad dress2_Shi ppingMetho dCodeEnum
  4615                    {
  4616                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4617                             get
  4618                             {
  4619                                      return ( (Account_A ddress2_Sh ippingMeth odCode?)(E ntityOptio nSetEnum.G etEnum(thi s, "addres s2_shippin gmethodcod e")));
  4620                             }
  4621                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4622                             set
  4623                             {
  4624                                      Address2 _ShippingM ethodCode  = value.Ha sValue ? n ew Microso ft.Xrm.Sdk .OptionSet Value((int )value) :  null;
  4625                             }
  4626                    }
  4627                    
  4628                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("busi nesstypeco de")]
  4629                    publ ic virtual  Account_B usinessTyp eCode? Bus inessTypeC odeEnum
  4630                    {
  4631                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4632                             get
  4633                             {
  4634                                      return ( (Account_B usinessTyp eCode?)(En tityOption SetEnum.Ge tEnum(this , "busines stypecode" )));
  4635                             }
  4636                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4637                             set
  4638                             {
  4639                                      Business TypeCode =  value.Has Value ? ne w Microsof t.Xrm.Sdk. OptionSetV alue((int) value) : n ull;
  4640                             }
  4641                    }
  4642                    
  4643                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("cust omersizeco de")]
  4644                    publ ic virtual  Account_C ustomerSiz eCode? Cus tomerSizeC odeEnum
  4645                    {
  4646                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4647                             get
  4648                             {
  4649                                      return ( (Account_C ustomerSiz eCode?)(En tityOption SetEnum.Ge tEnum(this , "custome rsizecode" )));
  4650                             }
  4651                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4652                             set
  4653                             {
  4654                                      Customer SizeCode =  value.Has Value ? ne w Microsof t.Xrm.Sdk. OptionSetV alue((int) value) : n ull;
  4655                             }
  4656                    }
  4657                    
  4658                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("cust omertypeco de")]
  4659                    publ ic virtual  Account_C ustomerTyp eCode? Cus tomerTypeC odeEnum
  4660                    {
  4661                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4662                             get
  4663                             {
  4664                                      return ( (Account_C ustomerTyp eCode?)(En tityOption SetEnum.Ge tEnum(this , "custome rtypecode" )));
  4665                             }
  4666                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4667                             set
  4668                             {
  4669                                      Customer TypeCode =  value.Has Value ? ne w Microsof t.Xrm.Sdk. OptionSetV alue((int) value) : n ull;
  4670                             }
  4671                    }
  4672                    
  4673                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("indu strycode") ]
  4674                    publ ic virtual  Account_I ndustryCod e? Industr yCodeEnum
  4675                    {
  4676                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4677                             get
  4678                             {
  4679                                      return ( (Account_I ndustryCod e?)(Entity OptionSetE num.GetEnu m(this, "i ndustrycod e")));
  4680                             }
  4681                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4682                             set
  4683                             {
  4684                                      Industry Code = val ue.HasValu e ? new Mi crosoft.Xr m.Sdk.Opti onSetValue ((int)valu e) : null;
  4685                             }
  4686                    }
  4687                    
  4688                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owne rshipcode" )]
  4689                    publ ic virtual  Account_O wnershipCo de? Owners hipCodeEnu m
  4690                    {
  4691                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4692                             get
  4693                             {
  4694                                      return ( (Account_O wnershipCo de?)(Entit yOptionSet Enum.GetEn um(this, " ownershipc ode")));
  4695                             }
  4696                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4697                             set
  4698                             {
  4699                                      Ownershi pCode = va lue.HasVal ue ? new M icrosoft.X rm.Sdk.Opt ionSetValu e((int)val ue) : null ;
  4700                             }
  4701                    }
  4702                    
  4703                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("paym enttermsco de")]
  4704                    publ ic virtual  Account_P aymentTerm sCode? Pay mentTermsC odeEnum
  4705                    {
  4706                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4707                             get
  4708                             {
  4709                                      return ( (Account_P aymentTerm sCode?)(En tityOption SetEnum.Ge tEnum(this , "payment termscode" )));
  4710                             }
  4711                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4712                             set
  4713                             {
  4714                                      PaymentT ermsCode =  value.Has Value ? ne w Microsof t.Xrm.Sdk. OptionSetV alue((int) value) : n ull;
  4715                             }
  4716                    }
  4717                    
  4718                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _ethnicity ")]
  4719                    publ ic virtual  Account_p pms_ethnic ity? ppms_ ethnicityE num
  4720                    {
  4721                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4722                             get
  4723                             {
  4724                                      return ( (Account_p pms_ethnic ity?)(Enti tyOptionSe tEnum.GetE num(this,  "ppms_ethn icity")));
  4725                             }
  4726                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4727                             set
  4728                             {
  4729                                      ppms_eth nicity = v alue.HasVa lue ? new  Microsoft. Xrm.Sdk.Op tionSetVal ue((int)va lue) : nul l;
  4730                             }
  4731                    }
  4732                    
  4733                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _externalh ealthprovi dertype")]
  4734                    publ ic virtual  Account_p pms_extern alhealthpr ovidertype ? ppms_ext ernalhealt hprovidert ypeEnum
  4735                    {
  4736                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4737                             get
  4738                             {
  4739                                      return ( (Account_p pms_extern alhealthpr ovidertype ?)(EntityO ptionSetEn um.GetEnum (this, "pp ms_externa lhealthpro vidertype" )));
  4740                             }
  4741                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4742                             set
  4743                             {
  4744                                      ppms_ext ernalhealt hprovidert ype = valu e.HasValue  ? new Mic rosoft.Xrm .Sdk.Optio nSetValue( (int)value ) : null;
  4745                             }
  4746                    }
  4747                    
  4748                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _gender")]
  4749                    publ ic virtual  ppms_Gend er? ppms_g enderEnum
  4750                    {
  4751                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4752                             get
  4753                             {
  4754                                      return ( (ppms_Gend er?)(Entit yOptionSet Enum.GetEn um(this, " ppms_gende r")));
  4755                             }
  4756                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4757                             set
  4758                             {
  4759                                      ppms_gen der = valu e.HasValue  ? new Mic rosoft.Xrm .Sdk.Optio nSetValue( (int)value ) : null;
  4760                             }
  4761                    }
  4762                    
  4763                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _internala ppointment status")]
  4764                    publ ic virtual  Account_p pms_intern alappointm entstatus?  ppms_inte rnalappoin tmentstatu sEnum
  4765                    {
  4766                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4767                             get
  4768                             {
  4769                                      return ( (Account_p pms_intern alappointm entstatus? )(EntityOp tionSetEnu m.GetEnum( this, "ppm s_internal appointmen tstatus")) );
  4770                             }
  4771                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4772                             set
  4773                             {
  4774                                      ppms_int ernalappoi ntmentstat us = value .HasValue  ? new Micr osoft.Xrm. Sdk.Option SetValue(( int)value)  : null;
  4775                             }
  4776                    }
  4777                    
  4778                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _internalt ype")]
  4779                    publ ic virtual  Account_p pms_intern altype? pp ms_interna ltypeEnum
  4780                    {
  4781                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4782                             get
  4783                             {
  4784                                      return ( (Account_p pms_intern altype?)(E ntityOptio nSetEnum.G etEnum(thi s, "ppms_i nternaltyp e")));
  4785                             }
  4786                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4787                             set
  4788                             {
  4789                                      ppms_int ernaltype  = value.Ha sValue ? n ew Microso ft.Xrm.Sdk .OptionSet Value((int )value) :  null;
  4790                             }
  4791                    }
  4792                    
  4793                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providers tatus")]
  4794                    publ ic virtual  Account_p pms_provid erstatus?  ppms_provi derstatusE num
  4795                    {
  4796                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4797                             get
  4798                             {
  4799                                      return ( (Account_p pms_provid erstatus?) (EntityOpt ionSetEnum .GetEnum(t his, "ppms _providers tatus")));
  4800                             }
  4801                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4802                             set
  4803                             {
  4804                                      ppms_pro viderstatu s = value. HasValue ?  new Micro soft.Xrm.S dk.OptionS etValue((i nt)value)  : null;
  4805                             }
  4806                    }
  4807                    
  4808                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providert ype")]
  4809                    publ ic virtual  Account_p pms_provid ertype? pp ms_provide rtypeEnum
  4810                    {
  4811                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4812                             get
  4813                             {
  4814                                      return ( (Account_p pms_provid ertype?)(E ntityOptio nSetEnum.G etEnum(thi s, "ppms_p rovidertyp e")));
  4815                             }
  4816                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4817                             set
  4818                             {
  4819                                      ppms_pro vidertype  = value.Ha sValue ? n ew Microso ft.Xrm.Sdk .OptionSet Value((int )value) :  null;
  4820                             }
  4821                    }
  4822                    
  4823                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _recordsou rce")]
  4824                    publ ic virtual  Account_p pms_Record Source? pp ms_RecordS ourceEnum
  4825                    {
  4826                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4827                             get
  4828                             {
  4829                                      return ( (Account_p pms_Record Source?)(E ntityOptio nSetEnum.G etEnum(thi s, "ppms_r ecordsourc e")));
  4830                             }
  4831                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4832                             set
  4833                             {
  4834                                      ppms_Rec ordSource  = value.Ha sValue ? n ew Microso ft.Xrm.Sdk .OptionSet Value((int )value) :  null;
  4835                             }
  4836                    }
  4837                    
  4838                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _servicepr ovidertype ")]
  4839                    publ ic virtual  Account_p pms_servic eprovidert ype? ppms_ servicepro vidertypeE num
  4840                    {
  4841                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4842                             get
  4843                             {
  4844                                      return ( (Account_p pms_servic eprovidert ype?)(Enti tyOptionSe tEnum.GetE num(this,  "ppms_serv iceprovide rtype")));
  4845                             }
  4846                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4847                             set
  4848                             {
  4849                                      ppms_ser viceprovid ertype = v alue.HasVa lue ? new  Microsoft. Xrm.Sdk.Op tionSetVal ue((int)va lue) : nul l;
  4850                             }
  4851                    }
  4852                    
  4853                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _statusorg ")]
  4854                    publ ic virtual  new_Activ eInactiveL ist? ppms_ statusorgE num
  4855                    {
  4856                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4857                             get
  4858                             {
  4859                                      return ( (new_Activ eInactiveL ist?)(Enti tyOptionSe tEnum.GetE num(this,  "ppms_stat usorg")));
  4860                             }
  4861                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4862                             set
  4863                             {
  4864                                      ppms_sta tusorg = v alue.HasVa lue ? new  Microsoft. Xrm.Sdk.Op tionSetVal ue((int)va lue) : nul l;
  4865                             }
  4866                    }
  4867                    
  4868                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("pref erredappoi ntmentdayc ode")]
  4869                    publ ic virtual  Account_P referredAp pointmentD ayCode? Pr eferredApp ointmentDa yCodeEnum
  4870                    {
  4871                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4872                             get
  4873                             {
  4874                                      return ( (Account_P referredAp pointmentD ayCode?)(E ntityOptio nSetEnum.G etEnum(thi s, "prefer redappoint mentdaycod e")));
  4875                             }
  4876                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4877                             set
  4878                             {
  4879                                      Preferre dAppointme ntDayCode  = value.Ha sValue ? n ew Microso ft.Xrm.Sdk .OptionSet Value((int )value) :  null;
  4880                             }
  4881                    }
  4882                    
  4883                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("pref erredappoi ntmenttime code")]
  4884                    publ ic virtual  Account_P referredAp pointmentT imeCode? P referredAp pointmentT imeCodeEnu m
  4885                    {
  4886                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4887                             get
  4888                             {
  4889                                      return ( (Account_P referredAp pointmentT imeCode?)( EntityOpti onSetEnum. GetEnum(th is, "prefe rredappoin tmenttimec ode")));
  4890                             }
  4891                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4892                             set
  4893                             {
  4894                                      Preferre dAppointme ntTimeCode  = value.H asValue ?  new Micros oft.Xrm.Sd k.OptionSe tValue((in t)value) :  null;
  4895                             }
  4896                    }
  4897                    
  4898                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("pref erredconta ctmethodco de")]
  4899                    publ ic virtual  Account_P referredCo ntactMetho dCode? Pre ferredCont actMethodC odeEnum
  4900                    {
  4901                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4902                             get
  4903                             {
  4904                                      return ( (Account_P referredCo ntactMetho dCode?)(En tityOption SetEnum.Ge tEnum(this , "preferr edcontactm ethodcode" )));
  4905                             }
  4906                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4907                             set
  4908                             {
  4909                                      Preferre dContactMe thodCode =  value.Has Value ? ne w Microsof t.Xrm.Sdk. OptionSetV alue((int) value) : n ull;
  4910                             }
  4911                    }
  4912                    
  4913                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ship pingmethod code")]
  4914                    publ ic virtual  Account_S hippingMet hodCode? S hippingMet hodCodeEnu m
  4915                    {
  4916                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4917                             get
  4918                             {
  4919                                      return ( (Account_S hippingMet hodCode?)( EntityOpti onSetEnum. GetEnum(th is, "shipp ingmethodc ode")));
  4920                             }
  4921                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4922                             set
  4923                             {
  4924                                      Shipping MethodCode  = value.H asValue ?  new Micros oft.Xrm.Sd k.OptionSe tValue((in t)value) :  null;
  4925                             }
  4926                    }
  4927                    
  4928                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  4929                    publ ic virtual  Account_S tatusCode?  StatusCod eEnum
  4930                    {
  4931                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4932                             get
  4933                             {
  4934                                      return ( (Account_S tatusCode? )(EntityOp tionSetEnu m.GetEnum( this, "sta tuscode")) );
  4935                             }
  4936                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4937                             set
  4938                             {
  4939                                      StatusCo de = value .HasValue  ? new Micr osoft.Xrm. Sdk.Option SetValue(( int)value)  : null;
  4940                             }
  4941                    }
  4942                    
  4943                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("terr itorycode" )]
  4944                    publ ic virtual  Account_T erritoryCo de? Territ oryCodeEnu m
  4945                    {
  4946                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4947                             get
  4948                             {
  4949                                      return ( (Account_T erritoryCo de?)(Entit yOptionSet Enum.GetEn um(this, " territoryc ode")));
  4950                             }
  4951                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  4952                             set
  4953                             {
  4954                                      Territor yCode = va lue.HasVal ue ? new M icrosoft.X rm.Sdk.Opt ionSetValu e((int)val ue) : null ;
  4955                             }
  4956                    }
  4957           }
  4958           
  4959           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  4960           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  4961           pu blic enum  ContactSta te
  4962           {
  4963                    
  4964                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  4965                    Acti ve = 0,
  4966                    
  4967                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  4968                    Inac tive = 1,
  4969           }
  4970           
  4971           // / <summary >
  4972           // / Person w ith whom a  business  unit has a  relations hip, such  as custome r, supplie r, and col league.
  4973           // / </summar y>
  4974           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  4975           [M icrosoft.X rm.Sdk.Cli ent.Entity LogicalNam eAttribute ("contact" )]
  4976           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  4977           pu blic parti al class C ontact : M icrosoft.X rm.Sdk.Ent ity, Syste m.Componen tModel.INo tifyProper tyChanging , System.C omponentMo del.INotif yPropertyC hanged
  4978           {
  4979                    
  4980                    ///  <summary>
  4981                    ///  Default Co nstructor.
  4982                    ///  </summary>
  4983                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  4984                    publ ic Contact () : 
  4985                                      base(Ent ityLogical Name)
  4986                    {
  4987                    }
  4988                    
  4989                    publ ic const s tring Enti tyLogicalN ame = "con tact";
  4990                    
  4991                    publ ic const i nt EntityT ypeCode =  2;
  4992                    
  4993                    publ ic event S ystem.Comp onentModel .PropertyC hangedEven tHandler P ropertyCha nged;
  4994                    
  4995                    publ ic event S ystem.Comp onentModel .PropertyC hangingEve ntHandler  PropertyCh anging;
  4996                    
  4997                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  4998                    priv ate void O nPropertyC hanged(str ing proper tyName)
  4999                    {
  5000                             if ((t his.Proper tyChanged  != null))
  5001                             {
  5002                                      this.Pro pertyChang ed(this, n ew System. ComponentM odel.Prope rtyChanged EventArgs( propertyNa me));
  5003                             }
  5004                    }
  5005                    
  5006                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  5007                    priv ate void O nPropertyC hanging(st ring prope rtyName)
  5008                    {
  5009                             if ((t his.Proper tyChanging  != null))
  5010                             {
  5011                                      this.Pro pertyChang ing(this,  new System .Component Model.Prop ertyChangi ngEventArg s(property Name));
  5012                             }
  5013                    }
  5014                    
  5015                    ///  <summary>
  5016                    ///  Unique ide ntifier of  the accou nt with wh ich the co ntact is a ssociated.
  5017                    ///  </summary>
  5018                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("acco untid")]
  5019                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Acc ountId
  5020                    {
  5021                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5022                             get
  5023                             {
  5024                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ac countid");
  5025                             }
  5026                    }
  5027                    
  5028                    ///  <summary>
  5029                    ///  Select the  contact's  role with in the com pany or sa les proces s, such as  decision  maker, emp loyee, or  influencer .
  5030                    ///  </summary>
  5031                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("acco untrolecod e")]
  5032                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Acco untRoleCod e
  5033                    {
  5034                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5035                             get
  5036                             {
  5037                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("acc ountroleco de");
  5038                             }
  5039                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5040                             set
  5041                             {
  5042                                      this.OnP ropertyCha nging("Acc ountRoleCo de");
  5043                                      this.Set AttributeV alue("acco untrolecod e", value) ;
  5044                                      this.OnP ropertyCha nged("Acco untRoleCod e");
  5045                             }
  5046                    }
  5047                    
  5048                    ///  <summary>
  5049                    ///  Unique ide ntifier fo r address  1.
  5050                    ///  </summary>
  5051                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_addre ssid")]
  5052                    publ ic System. Nullable<S ystem.Guid > Address1 _AddressId
  5053                    {
  5054                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5055                             get
  5056                             {
  5057                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("address 1_addressi d");
  5058                             }
  5059                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5060                             set
  5061                             {
  5062                                      this.OnP ropertyCha nging("Add ress1_Addr essId");
  5063                                      this.Set AttributeV alue("addr ess1_addre ssid", val ue);
  5064                                      this.OnP ropertyCha nged("Addr ess1_Addre ssId");
  5065                             }
  5066                    }
  5067                    
  5068                    ///  <summary>
  5069                    ///  Select the  primary a ddress typ e.
  5070                    ///  </summary>
  5071                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_addre sstypecode ")]
  5072                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Addr ess1_Addre ssTypeCode
  5073                    {
  5074                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5075                             get
  5076                             {
  5077                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("add ress1_addr esstypecod e");
  5078                             }
  5079                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5080                             set
  5081                             {
  5082                                      this.OnP ropertyCha nging("Add ress1_Addr essTypeCod e");
  5083                                      this.Set AttributeV alue("addr ess1_addre sstypecode ", value);
  5084                                      this.OnP ropertyCha nged("Addr ess1_Addre ssTypeCode ");
  5085                             }
  5086                    }
  5087                    
  5088                    ///  <summary>
  5089                    ///  Type the c ity for th e primary  address.
  5090                    ///  </summary>
  5091                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_city" )]
  5092                    publ ic string  Address1_C ity
  5093                    {
  5094                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5095                             get
  5096                             {
  5097                                      return t his.GetAtt ributeValu e<string>( "address1_ city");
  5098                             }
  5099                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5100                             set
  5101                             {
  5102                                      this.OnP ropertyCha nging("Add ress1_City ");
  5103                                      this.Set AttributeV alue("addr ess1_city" , value);
  5104                                      this.OnP ropertyCha nged("Addr ess1_City" );
  5105                             }
  5106                    }
  5107                    
  5108                    ///  <summary>
  5109                    ///  Shows the  complete p rimary add ress.
  5110                    ///  </summary>
  5111                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_compo site")]
  5112                    publ ic string  Address1_C omposite
  5113                    {
  5114                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5115                             get
  5116                             {
  5117                                      return t his.GetAtt ributeValu e<string>( "address1_ composite" );
  5118                             }
  5119                    }
  5120                    
  5121                    ///  <summary>
  5122                    ///  Type the c ountry or  region for  the prima ry address .
  5123                    ///  </summary>
  5124                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_count ry")]
  5125                    publ ic string  Address1_C ountry
  5126                    {
  5127                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5128                             get
  5129                             {
  5130                                      return t his.GetAtt ributeValu e<string>( "address1_ country");
  5131                             }
  5132                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5133                             set
  5134                             {
  5135                                      this.OnP ropertyCha nging("Add ress1_Coun try");
  5136                                      this.Set AttributeV alue("addr ess1_count ry", value );
  5137                                      this.OnP ropertyCha nged("Addr ess1_Count ry");
  5138                             }
  5139                    }
  5140                    
  5141                    ///  <summary>
  5142                    ///  Type the c ounty for  the primar y address.
  5143                    ///  </summary>
  5144                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_count y")]
  5145                    publ ic string  Address1_C ounty
  5146                    {
  5147                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5148                             get
  5149                             {
  5150                                      return t his.GetAtt ributeValu e<string>( "address1_ county");
  5151                             }
  5152                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5153                             set
  5154                             {
  5155                                      this.OnP ropertyCha nging("Add ress1_Coun ty");
  5156                                      this.Set AttributeV alue("addr ess1_count y", value) ;
  5157                                      this.OnP ropertyCha nged("Addr ess1_Count y");
  5158                             }
  5159                    }
  5160                    
  5161                    ///  <summary>
  5162                    ///  Type the f ax number  associated  with the  primary ad dress.
  5163                    ///  </summary>
  5164                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_fax") ]
  5165                    publ ic string  Address1_F ax
  5166                    {
  5167                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5168                             get
  5169                             {
  5170                                      return t his.GetAtt ributeValu e<string>( "address1_ fax");
  5171                             }
  5172                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5173                             set
  5174                             {
  5175                                      this.OnP ropertyCha nging("Add ress1_Fax" );
  5176                                      this.Set AttributeV alue("addr ess1_fax",  value);
  5177                                      this.OnP ropertyCha nged("Addr ess1_Fax") ;
  5178                             }
  5179                    }
  5180                    
  5181                    ///  <summary>
  5182                    ///  Select the  freight t erms for t he primary  address t o make sur e shipping  orders ar e processe d correctl y.
  5183                    ///  </summary>
  5184                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_freig httermscod e")]
  5185                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Addr ess1_Freig htTermsCod e
  5186                    {
  5187                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5188                             get
  5189                             {
  5190                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("add ress1_frei ghttermsco de");
  5191                             }
  5192                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5193                             set
  5194                             {
  5195                                      this.OnP ropertyCha nging("Add ress1_Frei ghtTermsCo de");
  5196                                      this.Set AttributeV alue("addr ess1_freig httermscod e", value) ;
  5197                                      this.OnP ropertyCha nged("Addr ess1_Freig htTermsCod e");
  5198                             }
  5199                    }
  5200                    
  5201                    ///  <summary>
  5202                    ///  Type the l atitude va lue for th e primary  address fo r use in m apping and  other app lications.
  5203                    ///  </summary>
  5204                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_latit ude")]
  5205                    publ ic System. Nullable<d ouble> Add ress1_Lati tude
  5206                    {
  5207                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5208                             get
  5209                             {
  5210                                      return t his.GetAtt ributeValu e<System.N ullable<do uble>>("ad dress1_lat itude");
  5211                             }
  5212                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5213                             set
  5214                             {
  5215                                      this.OnP ropertyCha nging("Add ress1_Lati tude");
  5216                                      this.Set AttributeV alue("addr ess1_latit ude", valu e);
  5217                                      this.OnP ropertyCha nged("Addr ess1_Latit ude");
  5218                             }
  5219                    }
  5220                    
  5221                    ///  <summary>
  5222                    ///  Type the f irst line  of the pri mary addre ss.
  5223                    ///  </summary>
  5224                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_line1 ")]
  5225                    publ ic string  Address1_L ine1
  5226                    {
  5227                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5228                             get
  5229                             {
  5230                                      return t his.GetAtt ributeValu e<string>( "address1_ line1");
  5231                             }
  5232                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5233                             set
  5234                             {
  5235                                      this.OnP ropertyCha nging("Add ress1_Line 1");
  5236                                      this.Set AttributeV alue("addr ess1_line1 ", value);
  5237                                      this.OnP ropertyCha nged("Addr ess1_Line1 ");
  5238                             }
  5239                    }
  5240                    
  5241                    ///  <summary>
  5242                    ///  Type the s econd line  of the pr imary addr ess.
  5243                    ///  </summary>
  5244                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_line2 ")]
  5245                    publ ic string  Address1_L ine2
  5246                    {
  5247                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5248                             get
  5249                             {
  5250                                      return t his.GetAtt ributeValu e<string>( "address1_ line2");
  5251                             }
  5252                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5253                             set
  5254                             {
  5255                                      this.OnP ropertyCha nging("Add ress1_Line 2");
  5256                                      this.Set AttributeV alue("addr ess1_line2 ", value);
  5257                                      this.OnP ropertyCha nged("Addr ess1_Line2 ");
  5258                             }
  5259                    }
  5260                    
  5261                    ///  <summary>
  5262                    ///  Type the t hird line  of the pri mary addre ss.
  5263                    ///  </summary>
  5264                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_line3 ")]
  5265                    publ ic string  Address1_L ine3
  5266                    {
  5267                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5268                             get
  5269                             {
  5270                                      return t his.GetAtt ributeValu e<string>( "address1_ line3");
  5271                             }
  5272                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5273                             set
  5274                             {
  5275                                      this.OnP ropertyCha nging("Add ress1_Line 3");
  5276                                      this.Set AttributeV alue("addr ess1_line3 ", value);
  5277                                      this.OnP ropertyCha nged("Addr ess1_Line3 ");
  5278                             }
  5279                    }
  5280                    
  5281                    ///  <summary>
  5282                    ///  Type the l ongitude v alue for t he primary  address f or use in  mapping an d other ap plications .
  5283                    ///  </summary>
  5284                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_longi tude")]
  5285                    publ ic System. Nullable<d ouble> Add ress1_Long itude
  5286                    {
  5287                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5288                             get
  5289                             {
  5290                                      return t his.GetAtt ributeValu e<System.N ullable<do uble>>("ad dress1_lon gitude");
  5291                             }
  5292                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5293                             set
  5294                             {
  5295                                      this.OnP ropertyCha nging("Add ress1_Long itude");
  5296                                      this.Set AttributeV alue("addr ess1_longi tude", val ue);
  5297                                      this.OnP ropertyCha nged("Addr ess1_Longi tude");
  5298                             }
  5299                    }
  5300                    
  5301                    ///  <summary>
  5302                    ///  Type a des criptive n ame for th e primary  address, s uch as Cor porate Hea dquarters.
  5303                    ///  </summary>
  5304                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_name" )]
  5305                    publ ic string  Address1_N ame
  5306                    {
  5307                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5308                             get
  5309                             {
  5310                                      return t his.GetAtt ributeValu e<string>( "address1_ name");
  5311                             }
  5312                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5313                             set
  5314                             {
  5315                                      this.OnP ropertyCha nging("Add ress1_Name ");
  5316                                      this.Set AttributeV alue("addr ess1_name" , value);
  5317                                      this.OnP ropertyCha nged("Addr ess1_Name" );
  5318                             }
  5319                    }
  5320                    
  5321                    ///  <summary>
  5322                    ///  Type the Z IP Code or  postal co de for the  primary a ddress.
  5323                    ///  </summary>
  5324                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_posta lcode")]
  5325                    publ ic string  Address1_P ostalCode
  5326                    {
  5327                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5328                             get
  5329                             {
  5330                                      return t his.GetAtt ributeValu e<string>( "address1_ postalcode ");
  5331                             }
  5332                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5333                             set
  5334                             {
  5335                                      this.OnP ropertyCha nging("Add ress1_Post alCode");
  5336                                      this.Set AttributeV alue("addr ess1_posta lcode", va lue);
  5337                                      this.OnP ropertyCha nged("Addr ess1_Posta lCode");
  5338                             }
  5339                    }
  5340                    
  5341                    ///  <summary>
  5342                    ///  Type the p ost office  box numbe r of the p rimary add ress.
  5343                    ///  </summary>
  5344                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_posto fficebox") ]
  5345                    publ ic string  Address1_P ostOfficeB ox
  5346                    {
  5347                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5348                             get
  5349                             {
  5350                                      return t his.GetAtt ributeValu e<string>( "address1_ postoffice box");
  5351                             }
  5352                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5353                             set
  5354                             {
  5355                                      this.OnP ropertyCha nging("Add ress1_Post OfficeBox" );
  5356                                      this.Set AttributeV alue("addr ess1_posto fficebox",  value);
  5357                                      this.OnP ropertyCha nged("Addr ess1_PostO fficeBox") ;
  5358                             }
  5359                    }
  5360                    
  5361                    ///  <summary>
  5362                    ///  Type the n ame of the  main cont act at the  account's  primary a ddress.
  5363                    ///  </summary>
  5364                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_prima rycontactn ame")]
  5365                    publ ic string  Address1_P rimaryCont actName
  5366                    {
  5367                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5368                             get
  5369                             {
  5370                                      return t his.GetAtt ributeValu e<string>( "address1_ primarycon tactname") ;
  5371                             }
  5372                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5373                             set
  5374                             {
  5375                                      this.OnP ropertyCha nging("Add ress1_Prim aryContact Name");
  5376                                      this.Set AttributeV alue("addr ess1_prima rycontactn ame", valu e);
  5377                                      this.OnP ropertyCha nged("Addr ess1_Prima ryContactN ame");
  5378                             }
  5379                    }
  5380                    
  5381                    ///  <summary>
  5382                    ///  Select a s hipping me thod for d eliveries  sent to th is address .
  5383                    ///  </summary>
  5384                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_shipp ingmethodc ode")]
  5385                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Addr ess1_Shipp ingMethodC ode
  5386                    {
  5387                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5388                             get
  5389                             {
  5390                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("add ress1_ship pingmethod code");
  5391                             }
  5392                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5393                             set
  5394                             {
  5395                                      this.OnP ropertyCha nging("Add ress1_Ship pingMethod Code");
  5396                                      this.Set AttributeV alue("addr ess1_shipp ingmethodc ode", valu e);
  5397                                      this.OnP ropertyCha nged("Addr ess1_Shipp ingMethodC ode");
  5398                             }
  5399                    }
  5400                    
  5401                    ///  <summary>
  5402                    ///  Type the s tate or pr ovince of  the primar y address.
  5403                    ///  </summary>
  5404                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_state orprovince ")]
  5405                    publ ic string  Address1_S tateOrProv ince
  5406                    {
  5407                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5408                             get
  5409                             {
  5410                                      return t his.GetAtt ributeValu e<string>( "address1_ stateorpro vince");
  5411                             }
  5412                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5413                             set
  5414                             {
  5415                                      this.OnP ropertyCha nging("Add ress1_Stat eOrProvinc e");
  5416                                      this.Set AttributeV alue("addr ess1_state orprovince ", value);
  5417                                      this.OnP ropertyCha nged("Addr ess1_State OrProvince ");
  5418                             }
  5419                    }
  5420                    
  5421                    ///  <summary>
  5422                    ///  Type the m ain phone  number ass ociated wi th the pri mary addre ss.
  5423                    ///  </summary>
  5424                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_telep hone1")]
  5425                    publ ic string  Address1_T elephone1
  5426                    {
  5427                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5428                             get
  5429                             {
  5430                                      return t his.GetAtt ributeValu e<string>( "address1_ telephone1 ");
  5431                             }
  5432                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5433                             set
  5434                             {
  5435                                      this.OnP ropertyCha nging("Add ress1_Tele phone1");
  5436                                      this.Set AttributeV alue("addr ess1_telep hone1", va lue);
  5437                                      this.OnP ropertyCha nged("Addr ess1_Telep hone1");
  5438                             }
  5439                    }
  5440                    
  5441                    ///  <summary>
  5442                    ///  Type a sec ond phone  number ass ociated wi th the pri mary addre ss.
  5443                    ///  </summary>
  5444                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_telep hone2")]
  5445                    publ ic string  Address1_T elephone2
  5446                    {
  5447                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5448                             get
  5449                             {
  5450                                      return t his.GetAtt ributeValu e<string>( "address1_ telephone2 ");
  5451                             }
  5452                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5453                             set
  5454                             {
  5455                                      this.OnP ropertyCha nging("Add ress1_Tele phone2");
  5456                                      this.Set AttributeV alue("addr ess1_telep hone2", va lue);
  5457                                      this.OnP ropertyCha nged("Addr ess1_Telep hone2");
  5458                             }
  5459                    }
  5460                    
  5461                    ///  <summary>
  5462                    ///  Type a thi rd phone n umber asso ciated wit h the prim ary addres s.
  5463                    ///  </summary>
  5464                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_telep hone3")]
  5465                    publ ic string  Address1_T elephone3
  5466                    {
  5467                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5468                             get
  5469                             {
  5470                                      return t his.GetAtt ributeValu e<string>( "address1_ telephone3 ");
  5471                             }
  5472                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5473                             set
  5474                             {
  5475                                      this.OnP ropertyCha nging("Add ress1_Tele phone3");
  5476                                      this.Set AttributeV alue("addr ess1_telep hone3", va lue);
  5477                                      this.OnP ropertyCha nged("Addr ess1_Telep hone3");
  5478                             }
  5479                    }
  5480                    
  5481                    ///  <summary>
  5482                    ///  Type the U PS zone of  the prima ry address  to make s ure shippi ng charges  are calcu lated corr ectly and  deliveries  are made  promptly,  if shipped  by UPS.
  5483                    ///  </summary>
  5484                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_upszo ne")]
  5485                    publ ic string  Address1_U PSZone
  5486                    {
  5487                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5488                             get
  5489                             {
  5490                                      return t his.GetAtt ributeValu e<string>( "address1_ upszone");
  5491                             }
  5492                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5493                             set
  5494                             {
  5495                                      this.OnP ropertyCha nging("Add ress1_UPSZ one");
  5496                                      this.Set AttributeV alue("addr ess1_upszo ne", value );
  5497                                      this.OnP ropertyCha nged("Addr ess1_UPSZo ne");
  5498                             }
  5499                    }
  5500                    
  5501                    ///  <summary>
  5502                    ///  Select the  time zone , or UTC o ffset, for  this addr ess so tha t other pe ople can r eference i t when the y contact  someone at  this addr ess.
  5503                    ///  </summary>
  5504                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_utcof fset")]
  5505                    publ ic System. Nullable<i nt> Addres s1_UTCOffs et
  5506                    {
  5507                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5508                             get
  5509                             {
  5510                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("addre ss1_utcoff set");
  5511                             }
  5512                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5513                             set
  5514                             {
  5515                                      this.OnP ropertyCha nging("Add ress1_UTCO ffset");
  5516                                      this.Set AttributeV alue("addr ess1_utcof fset", val ue);
  5517                                      this.OnP ropertyCha nged("Addr ess1_UTCOf fset");
  5518                             }
  5519                    }
  5520                    
  5521                    ///  <summary>
  5522                    ///  Unique ide ntifier fo r address  2.
  5523                    ///  </summary>
  5524                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_addre ssid")]
  5525                    publ ic System. Nullable<S ystem.Guid > Address2 _AddressId
  5526                    {
  5527                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5528                             get
  5529                             {
  5530                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("address 2_addressi d");
  5531                             }
  5532                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5533                             set
  5534                             {
  5535                                      this.OnP ropertyCha nging("Add ress2_Addr essId");
  5536                                      this.Set AttributeV alue("addr ess2_addre ssid", val ue);
  5537                                      this.OnP ropertyCha nged("Addr ess2_Addre ssId");
  5538                             }
  5539                    }
  5540                    
  5541                    ///  <summary>
  5542                    ///  Select the  secondary  address t ype.
  5543                    ///  </summary>
  5544                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_addre sstypecode ")]
  5545                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Addr ess2_Addre ssTypeCode
  5546                    {
  5547                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5548                             get
  5549                             {
  5550                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("add ress2_addr esstypecod e");
  5551                             }
  5552                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5553                             set
  5554                             {
  5555                                      this.OnP ropertyCha nging("Add ress2_Addr essTypeCod e");
  5556                                      this.Set AttributeV alue("addr ess2_addre sstypecode ", value);
  5557                                      this.OnP ropertyCha nged("Addr ess2_Addre ssTypeCode ");
  5558                             }
  5559                    }
  5560                    
  5561                    ///  <summary>
  5562                    ///  Type the c ity for th e secondar y address.
  5563                    ///  </summary>
  5564                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_city" )]
  5565                    publ ic string  Address2_C ity
  5566                    {
  5567                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5568                             get
  5569                             {
  5570                                      return t his.GetAtt ributeValu e<string>( "address2_ city");
  5571                             }
  5572                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5573                             set
  5574                             {
  5575                                      this.OnP ropertyCha nging("Add ress2_City ");
  5576                                      this.Set AttributeV alue("addr ess2_city" , value);
  5577                                      this.OnP ropertyCha nged("Addr ess2_City" );
  5578                             }
  5579                    }
  5580                    
  5581                    ///  <summary>
  5582                    ///  Shows the  complete s econdary a ddress.
  5583                    ///  </summary>
  5584                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_compo site")]
  5585                    publ ic string  Address2_C omposite
  5586                    {
  5587                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5588                             get
  5589                             {
  5590                                      return t his.GetAtt ributeValu e<string>( "address2_ composite" );
  5591                             }
  5592                    }
  5593                    
  5594                    ///  <summary>
  5595                    ///  Type the c ountry or  region for  the secon dary addre ss.
  5596                    ///  </summary>
  5597                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_count ry")]
  5598                    publ ic string  Address2_C ountry
  5599                    {
  5600                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5601                             get
  5602                             {
  5603                                      return t his.GetAtt ributeValu e<string>( "address2_ country");
  5604                             }
  5605                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5606                             set
  5607                             {
  5608                                      this.OnP ropertyCha nging("Add ress2_Coun try");
  5609                                      this.Set AttributeV alue("addr ess2_count ry", value );
  5610                                      this.OnP ropertyCha nged("Addr ess2_Count ry");
  5611                             }
  5612                    }
  5613                    
  5614                    ///  <summary>
  5615                    ///  Type the c ounty for  the second ary addres s.
  5616                    ///  </summary>
  5617                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_count y")]
  5618                    publ ic string  Address2_C ounty
  5619                    {
  5620                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5621                             get
  5622                             {
  5623                                      return t his.GetAtt ributeValu e<string>( "address2_ county");
  5624                             }
  5625                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5626                             set
  5627                             {
  5628                                      this.OnP ropertyCha nging("Add ress2_Coun ty");
  5629                                      this.Set AttributeV alue("addr ess2_count y", value) ;
  5630                                      this.OnP ropertyCha nged("Addr ess2_Count y");
  5631                             }
  5632                    }
  5633                    
  5634                    ///  <summary>
  5635                    ///  Type the f ax number  associated  with the  secondary  address.
  5636                    ///  </summary>
  5637                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_fax") ]
  5638                    publ ic string  Address2_F ax
  5639                    {
  5640                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5641                             get
  5642                             {
  5643                                      return t his.GetAtt ributeValu e<string>( "address2_ fax");
  5644                             }
  5645                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5646                             set
  5647                             {
  5648                                      this.OnP ropertyCha nging("Add ress2_Fax" );
  5649                                      this.Set AttributeV alue("addr ess2_fax",  value);
  5650                                      this.OnP ropertyCha nged("Addr ess2_Fax") ;
  5651                             }
  5652                    }
  5653                    
  5654                    ///  <summary>
  5655                    ///  Select the  freight t erms for t he seconda ry address  to make s ure shippi ng orders  are proces sed correc tly.
  5656                    ///  </summary>
  5657                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_freig httermscod e")]
  5658                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Addr ess2_Freig htTermsCod e
  5659                    {
  5660                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5661                             get
  5662                             {
  5663                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("add ress2_frei ghttermsco de");
  5664                             }
  5665                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5666                             set
  5667                             {
  5668                                      this.OnP ropertyCha nging("Add ress2_Frei ghtTermsCo de");
  5669                                      this.Set AttributeV alue("addr ess2_freig httermscod e", value) ;
  5670                                      this.OnP ropertyCha nged("Addr ess2_Freig htTermsCod e");
  5671                             }
  5672                    }
  5673                    
  5674                    ///  <summary>
  5675                    ///  Type the l atitude va lue for th e secondar y address  for use in  mapping a nd other a pplication s.
  5676                    ///  </summary>
  5677                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_latit ude")]
  5678                    publ ic System. Nullable<d ouble> Add ress2_Lati tude
  5679                    {
  5680                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5681                             get
  5682                             {
  5683                                      return t his.GetAtt ributeValu e<System.N ullable<do uble>>("ad dress2_lat itude");
  5684                             }
  5685                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5686                             set
  5687                             {
  5688                                      this.OnP ropertyCha nging("Add ress2_Lati tude");
  5689                                      this.Set AttributeV alue("addr ess2_latit ude", valu e);
  5690                                      this.OnP ropertyCha nged("Addr ess2_Latit ude");
  5691                             }
  5692                    }
  5693                    
  5694                    ///  <summary>
  5695                    ///  Type the f irst line  of the sec ondary add ress.
  5696                    ///  </summary>
  5697                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_line1 ")]
  5698                    publ ic string  Address2_L ine1
  5699                    {
  5700                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5701                             get
  5702                             {
  5703                                      return t his.GetAtt ributeValu e<string>( "address2_ line1");
  5704                             }
  5705                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5706                             set
  5707                             {
  5708                                      this.OnP ropertyCha nging("Add ress2_Line 1");
  5709                                      this.Set AttributeV alue("addr ess2_line1 ", value);
  5710                                      this.OnP ropertyCha nged("Addr ess2_Line1 ");
  5711                             }
  5712                    }
  5713                    
  5714                    ///  <summary>
  5715                    ///  Type the s econd line  of the se condary ad dress.
  5716                    ///  </summary>
  5717                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_line2 ")]
  5718                    publ ic string  Address2_L ine2
  5719                    {
  5720                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5721                             get
  5722                             {
  5723                                      return t his.GetAtt ributeValu e<string>( "address2_ line2");
  5724                             }
  5725                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5726                             set
  5727                             {
  5728                                      this.OnP ropertyCha nging("Add ress2_Line 2");
  5729                                      this.Set AttributeV alue("addr ess2_line2 ", value);
  5730                                      this.OnP ropertyCha nged("Addr ess2_Line2 ");
  5731                             }
  5732                    }
  5733                    
  5734                    ///  <summary>
  5735                    ///  Type the t hird line  of the sec ondary add ress.
  5736                    ///  </summary>
  5737                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_line3 ")]
  5738                    publ ic string  Address2_L ine3
  5739                    {
  5740                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5741                             get
  5742                             {
  5743                                      return t his.GetAtt ributeValu e<string>( "address2_ line3");
  5744                             }
  5745                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5746                             set
  5747                             {
  5748                                      this.OnP ropertyCha nging("Add ress2_Line 3");
  5749                                      this.Set AttributeV alue("addr ess2_line3 ", value);
  5750                                      this.OnP ropertyCha nged("Addr ess2_Line3 ");
  5751                             }
  5752                    }
  5753                    
  5754                    ///  <summary>
  5755                    ///  Type the l ongitude v alue for t he seconda ry address  for use i n mapping  and other  applicatio ns.
  5756                    ///  </summary>
  5757                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_longi tude")]
  5758                    publ ic System. Nullable<d ouble> Add ress2_Long itude
  5759                    {
  5760                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5761                             get
  5762                             {
  5763                                      return t his.GetAtt ributeValu e<System.N ullable<do uble>>("ad dress2_lon gitude");
  5764                             }
  5765                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5766                             set
  5767                             {
  5768                                      this.OnP ropertyCha nging("Add ress2_Long itude");
  5769                                      this.Set AttributeV alue("addr ess2_longi tude", val ue);
  5770                                      this.OnP ropertyCha nged("Addr ess2_Longi tude");
  5771                             }
  5772                    }
  5773                    
  5774                    ///  <summary>
  5775                    ///  Type a des criptive n ame for th e secondar y address,  such as C orporate H eadquarter s.
  5776                    ///  </summary>
  5777                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_name" )]
  5778                    publ ic string  Address2_N ame
  5779                    {
  5780                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5781                             get
  5782                             {
  5783                                      return t his.GetAtt ributeValu e<string>( "address2_ name");
  5784                             }
  5785                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5786                             set
  5787                             {
  5788                                      this.OnP ropertyCha nging("Add ress2_Name ");
  5789                                      this.Set AttributeV alue("addr ess2_name" , value);
  5790                                      this.OnP ropertyCha nged("Addr ess2_Name" );
  5791                             }
  5792                    }
  5793                    
  5794                    ///  <summary>
  5795                    ///  Type the Z IP Code or  postal co de for the  secondary  address.
  5796                    ///  </summary>
  5797                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_posta lcode")]
  5798                    publ ic string  Address2_P ostalCode
  5799                    {
  5800                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5801                             get
  5802                             {
  5803                                      return t his.GetAtt ributeValu e<string>( "address2_ postalcode ");
  5804                             }
  5805                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5806                             set
  5807                             {
  5808                                      this.OnP ropertyCha nging("Add ress2_Post alCode");
  5809                                      this.Set AttributeV alue("addr ess2_posta lcode", va lue);
  5810                                      this.OnP ropertyCha nged("Addr ess2_Posta lCode");
  5811                             }
  5812                    }
  5813                    
  5814                    ///  <summary>
  5815                    ///  Type the p ost office  box numbe r of the s econdary a ddress.
  5816                    ///  </summary>
  5817                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_posto fficebox") ]
  5818                    publ ic string  Address2_P ostOfficeB ox
  5819                    {
  5820                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5821                             get
  5822                             {
  5823                                      return t his.GetAtt ributeValu e<string>( "address2_ postoffice box");
  5824                             }
  5825                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5826                             set
  5827                             {
  5828                                      this.OnP ropertyCha nging("Add ress2_Post OfficeBox" );
  5829                                      this.Set AttributeV alue("addr ess2_posto fficebox",  value);
  5830                                      this.OnP ropertyCha nged("Addr ess2_PostO fficeBox") ;
  5831                             }
  5832                    }
  5833                    
  5834                    ///  <summary>
  5835                    ///  Type the n ame of the  main cont act at the  account's  secondary  address.
  5836                    ///  </summary>
  5837                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_prima rycontactn ame")]
  5838                    publ ic string  Address2_P rimaryCont actName
  5839                    {
  5840                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5841                             get
  5842                             {
  5843                                      return t his.GetAtt ributeValu e<string>( "address2_ primarycon tactname") ;
  5844                             }
  5845                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5846                             set
  5847                             {
  5848                                      this.OnP ropertyCha nging("Add ress2_Prim aryContact Name");
  5849                                      this.Set AttributeV alue("addr ess2_prima rycontactn ame", valu e);
  5850                                      this.OnP ropertyCha nged("Addr ess2_Prima ryContactN ame");
  5851                             }
  5852                    }
  5853                    
  5854                    ///  <summary>
  5855                    ///  Select a s hipping me thod for d eliveries  sent to th is address .
  5856                    ///  </summary>
  5857                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_shipp ingmethodc ode")]
  5858                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Addr ess2_Shipp ingMethodC ode
  5859                    {
  5860                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5861                             get
  5862                             {
  5863                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("add ress2_ship pingmethod code");
  5864                             }
  5865                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5866                             set
  5867                             {
  5868                                      this.OnP ropertyCha nging("Add ress2_Ship pingMethod Code");
  5869                                      this.Set AttributeV alue("addr ess2_shipp ingmethodc ode", valu e);
  5870                                      this.OnP ropertyCha nged("Addr ess2_Shipp ingMethodC ode");
  5871                             }
  5872                    }
  5873                    
  5874                    ///  <summary>
  5875                    ///  Type the s tate or pr ovince of  the second ary addres s.
  5876                    ///  </summary>
  5877                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_state orprovince ")]
  5878                    publ ic string  Address2_S tateOrProv ince
  5879                    {
  5880                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5881                             get
  5882                             {
  5883                                      return t his.GetAtt ributeValu e<string>( "address2_ stateorpro vince");
  5884                             }
  5885                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5886                             set
  5887                             {
  5888                                      this.OnP ropertyCha nging("Add ress2_Stat eOrProvinc e");
  5889                                      this.Set AttributeV alue("addr ess2_state orprovince ", value);
  5890                                      this.OnP ropertyCha nged("Addr ess2_State OrProvince ");
  5891                             }
  5892                    }
  5893                    
  5894                    ///  <summary>
  5895                    ///  Type the m ain phone  number ass ociated wi th the sec ondary add ress.
  5896                    ///  </summary>
  5897                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_telep hone1")]
  5898                    publ ic string  Address2_T elephone1
  5899                    {
  5900                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5901                             get
  5902                             {
  5903                                      return t his.GetAtt ributeValu e<string>( "address2_ telephone1 ");
  5904                             }
  5905                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5906                             set
  5907                             {
  5908                                      this.OnP ropertyCha nging("Add ress2_Tele phone1");
  5909                                      this.Set AttributeV alue("addr ess2_telep hone1", va lue);
  5910                                      this.OnP ropertyCha nged("Addr ess2_Telep hone1");
  5911                             }
  5912                    }
  5913                    
  5914                    ///  <summary>
  5915                    ///  Type a sec ond phone  number ass ociated wi th the sec ondary add ress.
  5916                    ///  </summary>
  5917                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_telep hone2")]
  5918                    publ ic string  Address2_T elephone2
  5919                    {
  5920                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5921                             get
  5922                             {
  5923                                      return t his.GetAtt ributeValu e<string>( "address2_ telephone2 ");
  5924                             }
  5925                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5926                             set
  5927                             {
  5928                                      this.OnP ropertyCha nging("Add ress2_Tele phone2");
  5929                                      this.Set AttributeV alue("addr ess2_telep hone2", va lue);
  5930                                      this.OnP ropertyCha nged("Addr ess2_Telep hone2");
  5931                             }
  5932                    }
  5933                    
  5934                    ///  <summary>
  5935                    ///  Type a thi rd phone n umber asso ciated wit h the seco ndary addr ess.
  5936                    ///  </summary>
  5937                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_telep hone3")]
  5938                    publ ic string  Address2_T elephone3
  5939                    {
  5940                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5941                             get
  5942                             {
  5943                                      return t his.GetAtt ributeValu e<string>( "address2_ telephone3 ");
  5944                             }
  5945                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5946                             set
  5947                             {
  5948                                      this.OnP ropertyCha nging("Add ress2_Tele phone3");
  5949                                      this.Set AttributeV alue("addr ess2_telep hone3", va lue);
  5950                                      this.OnP ropertyCha nged("Addr ess2_Telep hone3");
  5951                             }
  5952                    }
  5953                    
  5954                    ///  <summary>
  5955                    ///  Type the U PS zone of  the secon dary addre ss to make  sure ship ping charg es are cal culated co rrectly an d deliveri es are mad e promptly , if shipp ed by UPS.
  5956                    ///  </summary>
  5957                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_upszo ne")]
  5958                    publ ic string  Address2_U PSZone
  5959                    {
  5960                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5961                             get
  5962                             {
  5963                                      return t his.GetAtt ributeValu e<string>( "address2_ upszone");
  5964                             }
  5965                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5966                             set
  5967                             {
  5968                                      this.OnP ropertyCha nging("Add ress2_UPSZ one");
  5969                                      this.Set AttributeV alue("addr ess2_upszo ne", value );
  5970                                      this.OnP ropertyCha nged("Addr ess2_UPSZo ne");
  5971                             }
  5972                    }
  5973                    
  5974                    ///  <summary>
  5975                    ///  Select the  time zone , or UTC o ffset, for  this addr ess so tha t other pe ople can r eference i t when the y contact  someone at  this addr ess.
  5976                    ///  </summary>
  5977                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_utcof fset")]
  5978                    publ ic System. Nullable<i nt> Addres s2_UTCOffs et
  5979                    {
  5980                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5981                             get
  5982                             {
  5983                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("addre ss2_utcoff set");
  5984                             }
  5985                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  5986                             set
  5987                             {
  5988                                      this.OnP ropertyCha nging("Add ress2_UTCO ffset");
  5989                                      this.Set AttributeV alue("addr ess2_utcof fset", val ue);
  5990                                      this.OnP ropertyCha nged("Addr ess2_UTCOf fset");
  5991                             }
  5992                    }
  5993                    
  5994                    ///  <summary>
  5995                    ///  Unique ide ntifier fo r address  3.
  5996                    ///  </summary>
  5997                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess3_addre ssid")]
  5998                    publ ic System. Nullable<S ystem.Guid > Address3 _AddressId
  5999                    {
  6000                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6001                             get
  6002                             {
  6003                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("address 3_addressi d");
  6004                             }
  6005                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6006                             set
  6007                             {
  6008                                      this.OnP ropertyCha nging("Add ress3_Addr essId");
  6009                                      this.Set AttributeV alue("addr ess3_addre ssid", val ue);
  6010                                      this.OnP ropertyCha nged("Addr ess3_Addre ssId");
  6011                             }
  6012                    }
  6013                    
  6014                    ///  <summary>
  6015                    ///  Select the  third add ress type.
  6016                    ///  </summary>
  6017                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess3_addre sstypecode ")]
  6018                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Addr ess3_Addre ssTypeCode
  6019                    {
  6020                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6021                             get
  6022                             {
  6023                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("add ress3_addr esstypecod e");
  6024                             }
  6025                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6026                             set
  6027                             {
  6028                                      this.OnP ropertyCha nging("Add ress3_Addr essTypeCod e");
  6029                                      this.Set AttributeV alue("addr ess3_addre sstypecode ", value);
  6030                                      this.OnP ropertyCha nged("Addr ess3_Addre ssTypeCode ");
  6031                             }
  6032                    }
  6033                    
  6034                    ///  <summary>
  6035                    ///  Type the c ity for th e 3rd addr ess.
  6036                    ///  </summary>
  6037                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess3_city" )]
  6038                    publ ic string  Address3_C ity
  6039                    {
  6040                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6041                             get
  6042                             {
  6043                                      return t his.GetAtt ributeValu e<string>( "address3_ city");
  6044                             }
  6045                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6046                             set
  6047                             {
  6048                                      this.OnP ropertyCha nging("Add ress3_City ");
  6049                                      this.Set AttributeV alue("addr ess3_city" , value);
  6050                                      this.OnP ropertyCha nged("Addr ess3_City" );
  6051                             }
  6052                    }
  6053                    
  6054                    ///  <summary>
  6055                    ///  Shows the  complete t hird addre ss.
  6056                    ///  </summary>
  6057                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess3_compo site")]
  6058                    publ ic string  Address3_C omposite
  6059                    {
  6060                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6061                             get
  6062                             {
  6063                                      return t his.GetAtt ributeValu e<string>( "address3_ composite" );
  6064                             }
  6065                    }
  6066                    
  6067                    ///  <summary>
  6068                    ///  the countr y or regio n for the  3rd addres s.
  6069                    ///  </summary>
  6070                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess3_count ry")]
  6071                    publ ic string  Address3_C ountry
  6072                    {
  6073                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6074                             get
  6075                             {
  6076                                      return t his.GetAtt ributeValu e<string>( "address3_ country");
  6077                             }
  6078                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6079                             set
  6080                             {
  6081                                      this.OnP ropertyCha nging("Add ress3_Coun try");
  6082                                      this.Set AttributeV alue("addr ess3_count ry", value );
  6083                                      this.OnP ropertyCha nged("Addr ess3_Count ry");
  6084                             }
  6085                    }
  6086                    
  6087                    ///  <summary>
  6088                    ///  Type the c ounty for  the third  address.
  6089                    ///  </summary>
  6090                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess3_count y")]
  6091                    publ ic string  Address3_C ounty
  6092                    {
  6093                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6094                             get
  6095                             {
  6096                                      return t his.GetAtt ributeValu e<string>( "address3_ county");
  6097                             }
  6098                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6099                             set
  6100                             {
  6101                                      this.OnP ropertyCha nging("Add ress3_Coun ty");
  6102                                      this.Set AttributeV alue("addr ess3_count y", value) ;
  6103                                      this.OnP ropertyCha nged("Addr ess3_Count y");
  6104                             }
  6105                    }
  6106                    
  6107                    ///  <summary>
  6108                    ///  Type the f ax number  associated  with the  third addr ess.
  6109                    ///  </summary>
  6110                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess3_fax") ]
  6111                    publ ic string  Address3_F ax
  6112                    {
  6113                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6114                             get
  6115                             {
  6116                                      return t his.GetAtt ributeValu e<string>( "address3_ fax");
  6117                             }
  6118                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6119                             set
  6120                             {
  6121                                      this.OnP ropertyCha nging("Add ress3_Fax" );
  6122                                      this.Set AttributeV alue("addr ess3_fax",  value);
  6123                                      this.OnP ropertyCha nged("Addr ess3_Fax") ;
  6124                             }
  6125                    }
  6126                    
  6127                    ///  <summary>
  6128                    ///  Select the  freight t erms for t he third a ddress to  make sure  shipping o rders are  processed  correctly.
  6129                    ///  </summary>
  6130                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess3_freig httermscod e")]
  6131                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Addr ess3_Freig htTermsCod e
  6132                    {
  6133                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6134                             get
  6135                             {
  6136                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("add ress3_frei ghttermsco de");
  6137                             }
  6138                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6139                             set
  6140                             {
  6141                                      this.OnP ropertyCha nging("Add ress3_Frei ghtTermsCo de");
  6142                                      this.Set AttributeV alue("addr ess3_freig httermscod e", value) ;
  6143                                      this.OnP ropertyCha nged("Addr ess3_Freig htTermsCod e");
  6144                             }
  6145                    }
  6146                    
  6147                    ///  <summary>
  6148                    ///  Type the l atitude va lue for th e third ad dress for  use in map ping and o ther appli cations.
  6149                    ///  </summary>
  6150                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess3_latit ude")]
  6151                    publ ic System. Nullable<d ouble> Add ress3_Lati tude
  6152                    {
  6153                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6154                             get
  6155                             {
  6156                                      return t his.GetAtt ributeValu e<System.N ullable<do uble>>("ad dress3_lat itude");
  6157                             }
  6158                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6159                             set
  6160                             {
  6161                                      this.OnP ropertyCha nging("Add ress3_Lati tude");
  6162                                      this.Set AttributeV alue("addr ess3_latit ude", valu e);
  6163                                      this.OnP ropertyCha nged("Addr ess3_Latit ude");
  6164                             }
  6165                    }
  6166                    
  6167                    ///  <summary>
  6168                    ///  the first  line of th e 3rd addr ess.
  6169                    ///  </summary>
  6170                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess3_line1 ")]
  6171                    publ ic string  Address3_L ine1
  6172                    {
  6173                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6174                             get
  6175                             {
  6176                                      return t his.GetAtt ributeValu e<string>( "address3_ line1");
  6177                             }
  6178                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6179                             set
  6180                             {
  6181                                      this.OnP ropertyCha nging("Add ress3_Line 1");
  6182                                      this.Set AttributeV alue("addr ess3_line1 ", value);
  6183                                      this.OnP ropertyCha nged("Addr ess3_Line1 ");
  6184                             }
  6185                    }
  6186                    
  6187                    ///  <summary>
  6188                    ///  the second  line of t he 3rd add ress.
  6189                    ///  </summary>
  6190                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess3_line2 ")]
  6191                    publ ic string  Address3_L ine2
  6192                    {
  6193                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6194                             get
  6195                             {
  6196                                      return t his.GetAtt ributeValu e<string>( "address3_ line2");
  6197                             }
  6198                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6199                             set
  6200                             {
  6201                                      this.OnP ropertyCha nging("Add ress3_Line 2");
  6202                                      this.Set AttributeV alue("addr ess3_line2 ", value);
  6203                                      this.OnP ropertyCha nged("Addr ess3_Line2 ");
  6204                             }
  6205                    }
  6206                    
  6207                    ///  <summary>
  6208                    ///  the third  line of th e 3rd addr ess.
  6209                    ///  </summary>
  6210                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess3_line3 ")]
  6211                    publ ic string  Address3_L ine3
  6212                    {
  6213                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6214                             get
  6215                             {
  6216                                      return t his.GetAtt ributeValu e<string>( "address3_ line3");
  6217                             }
  6218                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6219                             set
  6220                             {
  6221                                      this.OnP ropertyCha nging("Add ress3_Line 3");
  6222                                      this.Set AttributeV alue("addr ess3_line3 ", value);
  6223                                      this.OnP ropertyCha nged("Addr ess3_Line3 ");
  6224                             }
  6225                    }
  6226                    
  6227                    ///  <summary>
  6228                    ///  Type the l ongitude v alue for t he third a ddress for  use in ma pping and  other appl ications.
  6229                    ///  </summary>
  6230                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess3_longi tude")]
  6231                    publ ic System. Nullable<d ouble> Add ress3_Long itude
  6232                    {
  6233                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6234                             get
  6235                             {
  6236                                      return t his.GetAtt ributeValu e<System.N ullable<do uble>>("ad dress3_lon gitude");
  6237                             }
  6238                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6239                             set
  6240                             {
  6241                                      this.OnP ropertyCha nging("Add ress3_Long itude");
  6242                                      this.Set AttributeV alue("addr ess3_longi tude", val ue);
  6243                                      this.OnP ropertyCha nged("Addr ess3_Longi tude");
  6244                             }
  6245                    }
  6246                    
  6247                    ///  <summary>
  6248                    ///  Type a des criptive n ame for th e third ad dress, suc h as Corpo rate Headq uarters.
  6249                    ///  </summary>
  6250                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess3_name" )]
  6251                    publ ic string  Address3_N ame
  6252                    {
  6253                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6254                             get
  6255                             {
  6256                                      return t his.GetAtt ributeValu e<string>( "address3_ name");
  6257                             }
  6258                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6259                             set
  6260                             {
  6261                                      this.OnP ropertyCha nging("Add ress3_Name ");
  6262                                      this.Set AttributeV alue("addr ess3_name" , value);
  6263                                      this.OnP ropertyCha nged("Addr ess3_Name" );
  6264                             }
  6265                    }
  6266                    
  6267                    ///  <summary>
  6268                    ///  the ZIP Co de or post al code fo r the 3rd  address.
  6269                    ///  </summary>
  6270                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess3_posta lcode")]
  6271                    publ ic string  Address3_P ostalCode
  6272                    {
  6273                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6274                             get
  6275                             {
  6276                                      return t his.GetAtt ributeValu e<string>( "address3_ postalcode ");
  6277                             }
  6278                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6279                             set
  6280                             {
  6281                                      this.OnP ropertyCha nging("Add ress3_Post alCode");
  6282                                      this.Set AttributeV alue("addr ess3_posta lcode", va lue);
  6283                                      this.OnP ropertyCha nged("Addr ess3_Posta lCode");
  6284                             }
  6285                    }
  6286                    
  6287                    ///  <summary>
  6288                    ///  the post o ffice box  number of  the 3rd ad dress.
  6289                    ///  </summary>
  6290                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess3_posto fficebox") ]
  6291                    publ ic string  Address3_P ostOfficeB ox
  6292                    {
  6293                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6294                             get
  6295                             {
  6296                                      return t his.GetAtt ributeValu e<string>( "address3_ postoffice box");
  6297                             }
  6298                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6299                             set
  6300                             {
  6301                                      this.OnP ropertyCha nging("Add ress3_Post OfficeBox" );
  6302                                      this.Set AttributeV alue("addr ess3_posto fficebox",  value);
  6303                                      this.OnP ropertyCha nged("Addr ess3_PostO fficeBox") ;
  6304                             }
  6305                    }
  6306                    
  6307                    ///  <summary>
  6308                    ///  Type the n ame of the  main cont act at the  account's  third add ress.
  6309                    ///  </summary>
  6310                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess3_prima rycontactn ame")]
  6311                    publ ic string  Address3_P rimaryCont actName
  6312                    {
  6313                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6314                             get
  6315                             {
  6316                                      return t his.GetAtt ributeValu e<string>( "address3_ primarycon tactname") ;
  6317                             }
  6318                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6319                             set
  6320                             {
  6321                                      this.OnP ropertyCha nging("Add ress3_Prim aryContact Name");
  6322                                      this.Set AttributeV alue("addr ess3_prima rycontactn ame", valu e);
  6323                                      this.OnP ropertyCha nged("Addr ess3_Prima ryContactN ame");
  6324                             }
  6325                    }
  6326                    
  6327                    ///  <summary>
  6328                    ///  Select a s hipping me thod for d eliveries  sent to th is address .
  6329                    ///  </summary>
  6330                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess3_shipp ingmethodc ode")]
  6331                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Addr ess3_Shipp ingMethodC ode
  6332                    {
  6333                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6334                             get
  6335                             {
  6336                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("add ress3_ship pingmethod code");
  6337                             }
  6338                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6339                             set
  6340                             {
  6341                                      this.OnP ropertyCha nging("Add ress3_Ship pingMethod Code");
  6342                                      this.Set AttributeV alue("addr ess3_shipp ingmethodc ode", valu e);
  6343                                      this.OnP ropertyCha nged("Addr ess3_Shipp ingMethodC ode");
  6344                             }
  6345                    }
  6346                    
  6347                    ///  <summary>
  6348                    ///  the state  or provinc e of the t hird addre ss.
  6349                    ///  </summary>
  6350                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess3_state orprovince ")]
  6351                    publ ic string  Address3_S tateOrProv ince
  6352                    {
  6353                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6354                             get
  6355                             {
  6356                                      return t his.GetAtt ributeValu e<string>( "address3_ stateorpro vince");
  6357                             }
  6358                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6359                             set
  6360                             {
  6361                                      this.OnP ropertyCha nging("Add ress3_Stat eOrProvinc e");
  6362                                      this.Set AttributeV alue("addr ess3_state orprovince ", value);
  6363                                      this.OnP ropertyCha nged("Addr ess3_State OrProvince ");
  6364                             }
  6365                    }
  6366                    
  6367                    ///  <summary>
  6368                    ///  Type the m ain phone  number ass ociated wi th the thi rd address .
  6369                    ///  </summary>
  6370                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess3_telep hone1")]
  6371                    publ ic string  Address3_T elephone1
  6372                    {
  6373                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6374                             get
  6375                             {
  6376                                      return t his.GetAtt ributeValu e<string>( "address3_ telephone1 ");
  6377                             }
  6378                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6379                             set
  6380                             {
  6381                                      this.OnP ropertyCha nging("Add ress3_Tele phone1");
  6382                                      this.Set AttributeV alue("addr ess3_telep hone1", va lue);
  6383                                      this.OnP ropertyCha nged("Addr ess3_Telep hone1");
  6384                             }
  6385                    }
  6386                    
  6387                    ///  <summary>
  6388                    ///  Type a sec ond phone  number ass ociated wi th the thi rd address .
  6389                    ///  </summary>
  6390                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess3_telep hone2")]
  6391                    publ ic string  Address3_T elephone2
  6392                    {
  6393                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6394                             get
  6395                             {
  6396                                      return t his.GetAtt ributeValu e<string>( "address3_ telephone2 ");
  6397                             }
  6398                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6399                             set
  6400                             {
  6401                                      this.OnP ropertyCha nging("Add ress3_Tele phone2");
  6402                                      this.Set AttributeV alue("addr ess3_telep hone2", va lue);
  6403                                      this.OnP ropertyCha nged("Addr ess3_Telep hone2");
  6404                             }
  6405                    }
  6406                    
  6407                    ///  <summary>
  6408                    ///  Type a thi rd phone n umber asso ciated wit h the prim ary addres s.
  6409                    ///  </summary>
  6410                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess3_telep hone3")]
  6411                    publ ic string  Address3_T elephone3
  6412                    {
  6413                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6414                             get
  6415                             {
  6416                                      return t his.GetAtt ributeValu e<string>( "address3_ telephone3 ");
  6417                             }
  6418                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6419                             set
  6420                             {
  6421                                      this.OnP ropertyCha nging("Add ress3_Tele phone3");
  6422                                      this.Set AttributeV alue("addr ess3_telep hone3", va lue);
  6423                                      this.OnP ropertyCha nged("Addr ess3_Telep hone3");
  6424                             }
  6425                    }
  6426                    
  6427                    ///  <summary>
  6428                    ///  Type the U PS zone of  the third  address t o make sur e shipping  charges a re calcula ted correc tly and de liveries a re made pr omptly, if  shipped b y UPS.
  6429                    ///  </summary>
  6430                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess3_upszo ne")]
  6431                    publ ic string  Address3_U PSZone
  6432                    {
  6433                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6434                             get
  6435                             {
  6436                                      return t his.GetAtt ributeValu e<string>( "address3_ upszone");
  6437                             }
  6438                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6439                             set
  6440                             {
  6441                                      this.OnP ropertyCha nging("Add ress3_UPSZ one");
  6442                                      this.Set AttributeV alue("addr ess3_upszo ne", value );
  6443                                      this.OnP ropertyCha nged("Addr ess3_UPSZo ne");
  6444                             }
  6445                    }
  6446                    
  6447                    ///  <summary>
  6448                    ///  Select the  time zone , or UTC o ffset, for  this addr ess so tha t other pe ople can r eference i t when the y contact  someone at  this addr ess.
  6449                    ///  </summary>
  6450                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess3_utcof fset")]
  6451                    publ ic System. Nullable<i nt> Addres s3_UTCOffs et
  6452                    {
  6453                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6454                             get
  6455                             {
  6456                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("addre ss3_utcoff set");
  6457                             }
  6458                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6459                             set
  6460                             {
  6461                                      this.OnP ropertyCha nging("Add ress3_UTCO ffset");
  6462                                      this.Set AttributeV alue("addr ess3_utcof fset", val ue);
  6463                                      this.OnP ropertyCha nged("Addr ess3_UTCOf fset");
  6464                             }
  6465                    }
  6466                    
  6467                    ///  <summary>
  6468                    ///  For system  use only.
  6469                    ///  </summary>
  6470                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("agin g30")]
  6471                    publ ic Microso ft.Xrm.Sdk .Money Agi ng30
  6472                    {
  6473                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6474                             get
  6475                             {
  6476                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. Money>("ag ing30");
  6477                             }
  6478                    }
  6479                    
  6480                    ///  <summary>
  6481                    ///  Shows the  Aging 30 f ield conve rted to th e system's  default b ase curren cy. The ca lculations  use the e xchange ra te specifi ed in the  Currencies  area.
  6482                    ///  </summary>
  6483                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("agin g30_base") ]
  6484                    publ ic Microso ft.Xrm.Sdk .Money Agi ng30_Base
  6485                    {
  6486                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6487                             get
  6488                             {
  6489                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. Money>("ag ing30_base ");
  6490                             }
  6491                    }
  6492                    
  6493                    ///  <summary>
  6494                    ///  For system  use only.
  6495                    ///  </summary>
  6496                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("agin g60")]
  6497                    publ ic Microso ft.Xrm.Sdk .Money Agi ng60
  6498                    {
  6499                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6500                             get
  6501                             {
  6502                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. Money>("ag ing60");
  6503                             }
  6504                    }
  6505                    
  6506                    ///  <summary>
  6507                    ///  Shows the  Aging 60 f ield conve rted to th e system's  default b ase curren cy. The ca lculations  use the e xchange ra te specifi ed in the  Currencies  area.
  6508                    ///  </summary>
  6509                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("agin g60_base") ]
  6510                    publ ic Microso ft.Xrm.Sdk .Money Agi ng60_Base
  6511                    {
  6512                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6513                             get
  6514                             {
  6515                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. Money>("ag ing60_base ");
  6516                             }
  6517                    }
  6518                    
  6519                    ///  <summary>
  6520                    ///  For system  use only.
  6521                    ///  </summary>
  6522                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("agin g90")]
  6523                    publ ic Microso ft.Xrm.Sdk .Money Agi ng90
  6524                    {
  6525                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6526                             get
  6527                             {
  6528                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. Money>("ag ing90");
  6529                             }
  6530                    }
  6531                    
  6532                    ///  <summary>
  6533                    ///  Shows the  Aging 90 f ield conve rted to th e system's  default b ase curren cy. The ca lculations  use the e xchange ra te specifi ed in the  Currencies  area.
  6534                    ///  </summary>
  6535                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("agin g90_base") ]
  6536                    publ ic Microso ft.Xrm.Sdk .Money Agi ng90_Base
  6537                    {
  6538                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6539                             get
  6540                             {
  6541                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. Money>("ag ing90_base ");
  6542                             }
  6543                    }
  6544                    
  6545                    ///  <summary>
  6546                    ///  Enter the  date of th e contact' s wedding  or service  anniversa ry for use  in custom er gift pr ograms or  other comm unications .
  6547                    ///  </summary>
  6548                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("anni versary")]
  6549                    publ ic System. Nullable<S ystem.Date Time> Anni versary
  6550                    {
  6551                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6552                             get
  6553                             {
  6554                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ann iversary") ;
  6555                             }
  6556                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6557                             set
  6558                             {
  6559                                      this.OnP ropertyCha nging("Ann iversary") ;
  6560                                      this.Set AttributeV alue("anni versary",  value);
  6561                                      this.OnP ropertyCha nged("Anni versary");
  6562                             }
  6563                    }
  6564                    
  6565                    ///  <summary>
  6566                    ///  Type the c ontact's a nnual inco me for use  in profil ing and fi nancial an alysis.
  6567                    ///  </summary>
  6568                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("annu alincome") ]
  6569                    publ ic Microso ft.Xrm.Sdk .Money Ann ualIncome
  6570                    {
  6571                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6572                             get
  6573                             {
  6574                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. Money>("an nualincome ");
  6575                             }
  6576                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6577                             set
  6578                             {
  6579                                      this.OnP ropertyCha nging("Ann ualIncome" );
  6580                                      this.Set AttributeV alue("annu alincome",  value);
  6581                                      this.OnP ropertyCha nged("Annu alIncome") ;
  6582                             }
  6583                    }
  6584                    
  6585                    ///  <summary>
  6586                    ///  Shows the  Annual Inc ome field  converted  to the sys tem's defa ult base c urrency. T he calcula tions use  the exchan ge rate sp ecified in  the Curre ncies area .
  6587                    ///  </summary>
  6588                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("annu alincome_b ase")]
  6589                    publ ic Microso ft.Xrm.Sdk .Money Ann ualIncome_ Base
  6590                    {
  6591                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6592                             get
  6593                             {
  6594                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. Money>("an nualincome _base");
  6595                             }
  6596                    }
  6597                    
  6598                    ///  <summary>
  6599                    ///  Type the n ame of the  contact's  assistant .
  6600                    ///  </summary>
  6601                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("assi stantname" )]
  6602                    publ ic string  AssistantN ame
  6603                    {
  6604                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6605                             get
  6606                             {
  6607                                      return t his.GetAtt ributeValu e<string>( "assistant name");
  6608                             }
  6609                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6610                             set
  6611                             {
  6612                                      this.OnP ropertyCha nging("Ass istantName ");
  6613                                      this.Set AttributeV alue("assi stantname" , value);
  6614                                      this.OnP ropertyCha nged("Assi stantName" );
  6615                             }
  6616                    }
  6617                    
  6618                    ///  <summary>
  6619                    ///  Type the p hone numbe r for the  contact's  assistant.
  6620                    ///  </summary>
  6621                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("assi stantphone ")]
  6622                    publ ic string  AssistantP hone
  6623                    {
  6624                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6625                             get
  6626                             {
  6627                                      return t his.GetAtt ributeValu e<string>( "assistant phone");
  6628                             }
  6629                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6630                             set
  6631                             {
  6632                                      this.OnP ropertyCha nging("Ass istantPhon e");
  6633                                      this.Set AttributeV alue("assi stantphone ", value);
  6634                                      this.OnP ropertyCha nged("Assi stantPhone ");
  6635                             }
  6636                    }
  6637                    
  6638                    ///  <summary>
  6639                    ///  Enter the  contact's  birthday f or use in  customer g ift progra ms or othe r communic ations.
  6640                    ///  </summary>
  6641                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("birt hdate")]
  6642                    publ ic System. Nullable<S ystem.Date Time> Birt hDate
  6643                    {
  6644                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6645                             get
  6646                             {
  6647                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("bir thdate");
  6648                             }
  6649                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6650                             set
  6651                             {
  6652                                      this.OnP ropertyCha nging("Bir thDate");
  6653                                      this.Set AttributeV alue("birt hdate", va lue);
  6654                                      this.OnP ropertyCha nged("Birt hDate");
  6655                             }
  6656                    }
  6657                    
  6658                    ///  <summary>
  6659                    ///  Type a sec ond busine ss phone n umber for  this conta ct.
  6660                    ///  </summary>
  6661                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("busi ness2")]
  6662                    publ ic string  Business2
  6663                    {
  6664                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6665                             get
  6666                             {
  6667                                      return t his.GetAtt ributeValu e<string>( "business2 ");
  6668                             }
  6669                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6670                             set
  6671                             {
  6672                                      this.OnP ropertyCha nging("Bus iness2");
  6673                                      this.Set AttributeV alue("busi ness2", va lue);
  6674                                      this.OnP ropertyCha nged("Busi ness2");
  6675                             }
  6676                    }
  6677                    
  6678                    ///  <summary>
  6679                    ///  Type a cal lback phon e number f or this co ntact.
  6680                    ///  </summary>
  6681                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("call back")]
  6682                    publ ic string  Callback
  6683                    {
  6684                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6685                             get
  6686                             {
  6687                                      return t his.GetAtt ributeValu e<string>( "callback" );
  6688                             }
  6689                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6690                             set
  6691                             {
  6692                                      this.OnP ropertyCha nging("Cal lback");
  6693                                      this.Set AttributeV alue("call back", val ue);
  6694                                      this.OnP ropertyCha nged("Call back");
  6695                             }
  6696                    }
  6697                    
  6698                    ///  <summary>
  6699                    ///  Type the n ames of th e contact' s children  for refer ence in co mmunicatio ns and cli ent progra ms.
  6700                    ///  </summary>
  6701                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("chil drensnames ")]
  6702                    publ ic string  ChildrensN ames
  6703                    {
  6704                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6705                             get
  6706                             {
  6707                                      return t his.GetAtt ributeValu e<string>( "childrens names");
  6708                             }
  6709                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6710                             set
  6711                             {
  6712                                      this.OnP ropertyCha nging("Chi ldrensName s");
  6713                                      this.Set AttributeV alue("chil drensnames ", value);
  6714                                      this.OnP ropertyCha nged("Chil drensNames ");
  6715                             }
  6716                    }
  6717                    
  6718                    ///  <summary>
  6719                    ///  Type the c ompany pho ne of the  contact.
  6720                    ///  </summary>
  6721                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("comp any")]
  6722                    publ ic string  Company
  6723                    {
  6724                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6725                             get
  6726                             {
  6727                                      return t his.GetAtt ributeValu e<string>( "company") ;
  6728                             }
  6729                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6730                             set
  6731                             {
  6732                                      this.OnP ropertyCha nging("Com pany");
  6733                                      this.Set AttributeV alue("comp any", valu e);
  6734                                      this.OnP ropertyCha nged("Comp any");
  6735                             }
  6736                    }
  6737                    
  6738                    ///  <summary>
  6739                    ///  Unique ide ntifier of  the conta ct.
  6740                    ///  </summary>
  6741                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("cont actid")]
  6742                    publ ic System. Nullable<S ystem.Guid > ContactI d
  6743                    {
  6744                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6745                             get
  6746                             {
  6747                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("contact id");
  6748                             }
  6749                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6750                             set
  6751                             {
  6752                                      this.OnP ropertyCha nging("Con tactId");
  6753                                      this.Set AttributeV alue("cont actid", va lue);
  6754                                      if (valu e.HasValue )
  6755                                      {
  6756                                               base.Id =  value.Valu e;
  6757                                      }
  6758                                      else
  6759                                      {
  6760                                               base.Id =  System.Gui d.Empty;
  6761                                      }
  6762                                      this.OnP ropertyCha nged("Cont actId");
  6763                             }
  6764                    }
  6765                    
  6766                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("cont actid")]
  6767                    publ ic overrid e System.G uid Id
  6768                    {
  6769                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6770                             get
  6771                             {
  6772                                      return b ase.Id;
  6773                             }
  6774                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6775                             set
  6776                             {
  6777                                      this.Con tactId = v alue;
  6778                             }
  6779                    }
  6780                    
  6781                    ///  <summary>
  6782                    ///  Shows who  created th e record.
  6783                    ///  </summary>
  6784                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedby")]
  6785                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedBy
  6786                    {
  6787                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6788                             get
  6789                             {
  6790                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedby");
  6791                             }
  6792                    }
  6793                    
  6794                    ///  <summary>
  6795                    ///  Shows the  external p arty who c reated the  record.
  6796                    ///  </summary>
  6797                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedbyexter nalparty") ]
  6798                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedByExte rnalParty
  6799                    {
  6800                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6801                             get
  6802                             {
  6803                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedbyext ernalparty ");
  6804                             }
  6805                    }
  6806                    
  6807                    ///  <summary>
  6808                    ///  Shows the  date and t ime when t he record  was create d. The dat e and time  are displ ayed in th e time zon e selected  in Micros oft Dynami cs 365 opt ions.
  6809                    ///  </summary>
  6810                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedon")]
  6811                    publ ic System. Nullable<S ystem.Date Time> Crea tedOn
  6812                    {
  6813                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6814                             get
  6815                             {
  6816                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("cre atedon");
  6817                             }
  6818                    }
  6819                    
  6820                    ///  <summary>
  6821                    ///  Shows who  created th e record o n behalf o f another  user.
  6822                    ///  </summary>
  6823                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedonbehal fby")]
  6824                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedOnBeha lfBy
  6825                    {
  6826                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6827                             get
  6828                             {
  6829                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedonbeh alfby");
  6830                             }
  6831                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6832                             set
  6833                             {
  6834                                      this.OnP ropertyCha nging("Cre atedOnBeha lfBy");
  6835                                      this.Set AttributeV alue("crea tedonbehal fby", valu e);
  6836                                      this.OnP ropertyCha nged("Crea tedOnBehal fBy");
  6837                             }
  6838                    }
  6839                    
  6840                    ///  <summary>
  6841                    ///  Type the c redit limi t of the c ontact for  reference  when you  address in voice and  accounting  issues wi th the cus tomer.
  6842                    ///  </summary>
  6843                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("cred itlimit")]
  6844                    publ ic Microso ft.Xrm.Sdk .Money Cre ditLimit
  6845                    {
  6846                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6847                             get
  6848                             {
  6849                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. Money>("cr editlimit" );
  6850                             }
  6851                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6852                             set
  6853                             {
  6854                                      this.OnP ropertyCha nging("Cre ditLimit") ;
  6855                                      this.Set AttributeV alue("cred itlimit",  value);
  6856                                      this.OnP ropertyCha nged("Cred itLimit");
  6857                             }
  6858                    }
  6859                    
  6860                    ///  <summary>
  6861                    ///  Shows the  Credit Lim it field c onverted t o the syst em's defau lt base cu rrency for  reporting  purposes.  The calcu lations us e the exch ange rate  specified  in the Cur rencies ar ea.
  6862                    ///  </summary>
  6863                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("cred itlimit_ba se")]
  6864                    publ ic Microso ft.Xrm.Sdk .Money Cre ditLimit_B ase
  6865                    {
  6866                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6867                             get
  6868                             {
  6869                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. Money>("cr editlimit_ base");
  6870                             }
  6871                    }
  6872                    
  6873                    ///  <summary>
  6874                    ///  Select whe ther the c ontact is  on a credi t hold, fo r referenc e when add ressing in voice and  accounting  issues.
  6875                    ///  </summary>
  6876                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("cred itonhold") ]
  6877                    publ ic System. Nullable<b ool> Credi tOnHold
  6878                    {
  6879                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6880                             get
  6881                             {
  6882                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("cred itonhold") ;
  6883                             }
  6884                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6885                             set
  6886                             {
  6887                                      this.OnP ropertyCha nging("Cre ditOnHold" );
  6888                                      this.Set AttributeV alue("cred itonhold",  value);
  6889                                      this.OnP ropertyCha nged("Cred itOnHold") ;
  6890                             }
  6891                    }
  6892                    
  6893                    ///  <summary>
  6894                    ///  Select the  size of t he contact 's company  for segme ntation an d reportin g purposes .
  6895                    ///  </summary>
  6896                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("cust omersizeco de")]
  6897                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Cust omerSizeCo de
  6898                    {
  6899                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6900                             get
  6901                             {
  6902                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("cus tomersizec ode");
  6903                             }
  6904                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6905                             set
  6906                             {
  6907                                      this.OnP ropertyCha nging("Cus tomerSizeC ode");
  6908                                      this.Set AttributeV alue("cust omersizeco de", value );
  6909                                      this.OnP ropertyCha nged("Cust omerSizeCo de");
  6910                             }
  6911                    }
  6912                    
  6913                    ///  <summary>
  6914                    ///  Select the  category  that best  describes  the relati onship bet ween the c ontact and  your orga nization.
  6915                    ///  </summary>
  6916                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("cust omertypeco de")]
  6917                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Cust omerTypeCo de
  6918                    {
  6919                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6920                             get
  6921                             {
  6922                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("cus tomertypec ode");
  6923                             }
  6924                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6925                             set
  6926                             {
  6927                                      this.OnP ropertyCha nging("Cus tomerTypeC ode");
  6928                                      this.Set AttributeV alue("cust omertypeco de", value );
  6929                                      this.OnP ropertyCha nged("Cust omerTypeCo de");
  6930                             }
  6931                    }
  6932                    
  6933                    ///  <summary>
  6934                    ///  Choose the  default p rice list  associated  with the  contact to  make sure  the corre ct product  prices fo r this cus tomer are  applied in  sales opp ortunities , quotes,  and orders .
  6935                    ///  </summary>
  6936                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("defa ultpricele velid")]
  6937                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Def aultPriceL evelId
  6938                    {
  6939                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6940                             get
  6941                             {
  6942                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("de faultprice levelid");
  6943                             }
  6944                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6945                             set
  6946                             {
  6947                                      this.OnP ropertyCha nging("Def aultPriceL evelId");
  6948                                      this.Set AttributeV alue("defa ultpricele velid", va lue);
  6949                                      this.OnP ropertyCha nged("Defa ultPriceLe velId");
  6950                             }
  6951                    }
  6952                    
  6953                    ///  <summary>
  6954                    ///  Type the d epartment  or busines s unit whe re the con tact works  in the pa rent compa ny or busi ness.
  6955                    ///  </summary>
  6956                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("depa rtment")]
  6957                    publ ic string  Department
  6958                    {
  6959                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6960                             get
  6961                             {
  6962                                      return t his.GetAtt ributeValu e<string>( "departmen t");
  6963                             }
  6964                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6965                             set
  6966                             {
  6967                                      this.OnP ropertyCha nging("Dep artment");
  6968                                      this.Set AttributeV alue("depa rtment", v alue);
  6969                                      this.OnP ropertyCha nged("Depa rtment");
  6970                             }
  6971                    }
  6972                    
  6973                    ///  <summary>
  6974                    ///  Type addit ional info rmation to  describe  the contac t, such as  an excerp t from the  company's  website.
  6975                    ///  </summary>
  6976                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("desc ription")]
  6977                    publ ic string  Descriptio n
  6978                    {
  6979                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6980                             get
  6981                             {
  6982                                      return t his.GetAtt ributeValu e<string>( "descripti on");
  6983                             }
  6984                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  6985                             set
  6986                             {
  6987                                      this.OnP ropertyCha nging("Des cription") ;
  6988                                      this.Set AttributeV alue("desc ription",  value);
  6989                                      this.OnP ropertyCha nged("Desc ription");
  6990                             }
  6991                    }
  6992                    
  6993                    ///  <summary>
  6994                    ///  Select whe ther the c ontact acc epts bulk  email sent  through m arketing c ampaigns o r quick ca mpaigns. I f Do Not A llow is se lected, th e contact  can be add ed to mark eting list s, but wil l be exclu ded from t he email.
  6995                    ///  </summary>
  6996                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("dono tbulkemail ")]
  6997                    publ ic System. Nullable<b ool> DoNot BulkEMail
  6998                    {
  6999                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7000                             get
  7001                             {
  7002                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("dono tbulkemail ");
  7003                             }
  7004                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7005                             set
  7006                             {
  7007                                      this.OnP ropertyCha nging("DoN otBulkEMai l");
  7008                                      this.Set AttributeV alue("dono tbulkemail ", value);
  7009                                      this.OnP ropertyCha nged("DoNo tBulkEMail ");
  7010                             }
  7011                    }
  7012                    
  7013                    ///  <summary>
  7014                    ///  Select whe ther the c ontact acc epts bulk  postal mai l sent thr ough marke ting campa igns or qu ick campai gns. If Do  Not Allow  is select ed, the co ntact can  be added t o marketin g lists, b ut will be  excluded  from the l etters.
  7015                    ///  </summary>
  7016                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("dono tbulkposta lmail")]
  7017                    publ ic System. Nullable<b ool> DoNot BulkPostal Mail
  7018                    {
  7019                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7020                             get
  7021                             {
  7022                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("dono tbulkposta lmail");
  7023                             }
  7024                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7025                             set
  7026                             {
  7027                                      this.OnP ropertyCha nging("DoN otBulkPost alMail");
  7028                                      this.Set AttributeV alue("dono tbulkposta lmail", va lue);
  7029                                      this.OnP ropertyCha nged("DoNo tBulkPosta lMail");
  7030                             }
  7031                    }
  7032                    
  7033                    ///  <summary>
  7034                    ///  Select whe ther the c ontact all ows direct  email sen t from Mic rosoft Dyn amics 365.  If Do Not  Allow is  selected,  Microsoft  Dynamics 3 65 will no t send the  email.
  7035                    ///  </summary>
  7036                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("dono temail")]
  7037                    publ ic System. Nullable<b ool> DoNot EMail
  7038                    {
  7039                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7040                             get
  7041                             {
  7042                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("dono temail");
  7043                             }
  7044                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7045                             set
  7046                             {
  7047                                      this.OnP ropertyCha nging("DoN otEMail");
  7048                                      this.Set AttributeV alue("dono temail", v alue);
  7049                                      this.OnP ropertyCha nged("DoNo tEMail");
  7050                             }
  7051                    }
  7052                    
  7053                    ///  <summary>
  7054                    ///  Select whe ther the c ontact all ows faxes.  If Do Not  Allow is  selected,  the contac t will be  excluded f rom any fa x activiti es distrib uted in ma rketing ca mpaigns.
  7055                    ///  </summary>
  7056                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("dono tfax")]
  7057                    publ ic System. Nullable<b ool> DoNot Fax
  7058                    {
  7059                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7060                             get
  7061                             {
  7062                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("dono tfax");
  7063                             }
  7064                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7065                             set
  7066                             {
  7067                                      this.OnP ropertyCha nging("DoN otFax");
  7068                                      this.Set AttributeV alue("dono tfax", val ue);
  7069                                      this.OnP ropertyCha nged("DoNo tFax");
  7070                             }
  7071                    }
  7072                    
  7073                    ///  <summary>
  7074                    ///  Select whe ther the c ontact acc epts phone  calls. If  Do Not Al low is sel ected, the  contact w ill be exc luded from  any phone  call acti vities dis tributed i n marketin g campaign s.
  7075                    ///  </summary>
  7076                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("dono tphone")]
  7077                    publ ic System. Nullable<b ool> DoNot Phone
  7078                    {
  7079                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7080                             get
  7081                             {
  7082                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("dono tphone");
  7083                             }
  7084                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7085                             set
  7086                             {
  7087                                      this.OnP ropertyCha nging("DoN otPhone");
  7088                                      this.Set AttributeV alue("dono tphone", v alue);
  7089                                      this.OnP ropertyCha nged("DoNo tPhone");
  7090                             }
  7091                    }
  7092                    
  7093                    ///  <summary>
  7094                    ///  Select whe ther the c ontact all ows direct  mail. If  Do Not All ow is sele cted, the  contact wi ll be excl uded from  letter act ivities di stributed  in marketi ng campaig ns.
  7095                    ///  </summary>
  7096                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("dono tpostalmai l")]
  7097                    publ ic System. Nullable<b ool> DoNot PostalMail
  7098                    {
  7099                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7100                             get
  7101                             {
  7102                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("dono tpostalmai l");
  7103                             }
  7104                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7105                             set
  7106                             {
  7107                                      this.OnP ropertyCha nging("DoN otPostalMa il");
  7108                                      this.Set AttributeV alue("dono tpostalmai l", value) ;
  7109                                      this.OnP ropertyCha nged("DoNo tPostalMai l");
  7110                             }
  7111                    }
  7112                    
  7113                    ///  <summary>
  7114                    ///  Select whe ther the c ontact acc epts marke ting mater ials, such  as brochu res or cat alogs. Con tacts that  opt out c an be excl uded from  marketing  initiative s.
  7115                    ///  </summary>
  7116                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("dono tsendmm")]
  7117                    publ ic System. Nullable<b ool> DoNot SendMM
  7118                    {
  7119                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7120                             get
  7121                             {
  7122                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("dono tsendmm");
  7123                             }
  7124                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7125                             set
  7126                             {
  7127                                      this.OnP ropertyCha nging("DoN otSendMM") ;
  7128                                      this.Set AttributeV alue("dono tsendmm",  value);
  7129                                      this.OnP ropertyCha nged("DoNo tSendMM");
  7130                             }
  7131                    }
  7132                    
  7133                    ///  <summary>
  7134                    ///  Select the  contact's  highest l evel of ed ucation fo r use in s egmentatio n and anal ysis.
  7135                    ///  </summary>
  7136                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("educ ationcode" )]
  7137                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Educ ationCode
  7138                    {
  7139                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7140                             get
  7141                             {
  7142                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("edu cationcode ");
  7143                             }
  7144                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7145                             set
  7146                             {
  7147                                      this.OnP ropertyCha nging("Edu cationCode ");
  7148                                      this.Set AttributeV alue("educ ationcode" , value);
  7149                                      this.OnP ropertyCha nged("Educ ationCode" );
  7150                             }
  7151                    }
  7152                    
  7153                    ///  <summary>
  7154                    ///  Type the p rimary ema il address  for the c ontact.
  7155                    ///  </summary>
  7156                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("emai laddress1" )]
  7157                    publ ic string  EMailAddre ss1
  7158                    {
  7159                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7160                             get
  7161                             {
  7162                                      return t his.GetAtt ributeValu e<string>( "emailaddr ess1");
  7163                             }
  7164                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7165                             set
  7166                             {
  7167                                      this.OnP ropertyCha nging("EMa ilAddress1 ");
  7168                                      this.Set AttributeV alue("emai laddress1" , value);
  7169                                      this.OnP ropertyCha nged("EMai lAddress1" );
  7170                             }
  7171                    }
  7172                    
  7173                    ///  <summary>
  7174                    ///  Type the s econdary e mail addre ss for the  contact.
  7175                    ///  </summary>
  7176                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("emai laddress2" )]
  7177                    publ ic string  EMailAddre ss2
  7178                    {
  7179                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7180                             get
  7181                             {
  7182                                      return t his.GetAtt ributeValu e<string>( "emailaddr ess2");
  7183                             }
  7184                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7185                             set
  7186                             {
  7187                                      this.OnP ropertyCha nging("EMa ilAddress2 ");
  7188                                      this.Set AttributeV alue("emai laddress2" , value);
  7189                                      this.OnP ropertyCha nged("EMai lAddress2" );
  7190                             }
  7191                    }
  7192                    
  7193                    ///  <summary>
  7194                    ///  Type an al ternate em ail addres s for the  contact.
  7195                    ///  </summary>
  7196                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("emai laddress3" )]
  7197                    publ ic string  EMailAddre ss3
  7198                    {
  7199                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7200                             get
  7201                             {
  7202                                      return t his.GetAtt ributeValu e<string>( "emailaddr ess3");
  7203                             }
  7204                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7205                             set
  7206                             {
  7207                                      this.OnP ropertyCha nging("EMa ilAddress3 ");
  7208                                      this.Set AttributeV alue("emai laddress3" , value);
  7209                                      this.OnP ropertyCha nged("EMai lAddress3" );
  7210                             }
  7211                    }
  7212                    
  7213                    ///  <summary>
  7214                    ///  Type the e mployee ID  or number  for the c ontact for  reference  in orders , service  cases, or  other comm unications  with the  contact's  organizati on.
  7215                    ///  </summary>
  7216                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("empl oyeeid")]
  7217                    publ ic string  EmployeeId
  7218                    {
  7219                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7220                             get
  7221                             {
  7222                                      return t his.GetAtt ributeValu e<string>( "employeei d");
  7223                             }
  7224                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7225                             set
  7226                             {
  7227                                      this.OnP ropertyCha nging("Emp loyeeId");
  7228                                      this.Set AttributeV alue("empl oyeeid", v alue);
  7229                                      this.OnP ropertyCha nged("Empl oyeeId");
  7230                             }
  7231                    }
  7232                    
  7233                    ///  <summary>
  7234                    ///  Shows the  default im age for th e record.
  7235                    ///  </summary>
  7236                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("enti tyimage")]
  7237                    publ ic byte[]  EntityImag e
  7238                    {
  7239                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7240                             get
  7241                             {
  7242                                      return t his.GetAtt ributeValu e<byte[]>( "entityima ge");
  7243                             }
  7244                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7245                             set
  7246                             {
  7247                                      this.OnP ropertyCha nging("Ent ityImage") ;
  7248                                      this.Set AttributeV alue("enti tyimage",  value);
  7249                                      this.OnP ropertyCha nged("Enti tyImage");
  7250                             }
  7251                    }
  7252                    
  7253                    ///  <summary>
  7254                    /// 
  7255                    ///  </summary>
  7256                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("enti tyimage_ti mestamp")]
  7257                    publ ic System. Nullable<l ong> Entit yImage_Tim estamp
  7258                    {
  7259                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7260                             get
  7261                             {
  7262                                      return t his.GetAtt ributeValu e<System.N ullable<lo ng>>("enti tyimage_ti mestamp");
  7263                             }
  7264                    }
  7265                    
  7266                    ///  <summary>
  7267                    /// 
  7268                    ///  </summary>
  7269                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("enti tyimage_ur l")]
  7270                    publ ic string  EntityImag e_URL
  7271                    {
  7272                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7273                             get
  7274                             {
  7275                                      return t his.GetAtt ributeValu e<string>( "entityima ge_url");
  7276                             }
  7277                    }
  7278                    
  7279                    ///  <summary>
  7280                    ///  For intern al use onl y.
  7281                    ///  </summary>
  7282                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("enti tyimageid" )]
  7283                    publ ic System. Nullable<S ystem.Guid > EntityIm ageId
  7284                    {
  7285                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7286                             get
  7287                             {
  7288                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("entityi mageid");
  7289                             }
  7290                    }
  7291                    
  7292                    ///  <summary>
  7293                    ///  Shows the  conversion  rate of t he record' s currency . The exch ange rate  is used to  convert a ll money f ields in t he record  from the l ocal curre ncy to the  system's  default cu rrency.
  7294                    ///  </summary>
  7295                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("exch angerate") ]
  7296                    publ ic System. Nullable<d ecimal> Ex changeRate
  7297                    {
  7298                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7299                             get
  7300                             {
  7301                                      return t his.GetAtt ributeValu e<System.N ullable<de cimal>>("e xchangerat e");
  7302                             }
  7303                    }
  7304                    
  7305                    ///  <summary>
  7306                    ///  Identifier  for an ex ternal use r.
  7307                    ///  </summary>
  7308                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("exte rnaluserid entifier") ]
  7309                    publ ic string  ExternalUs erIdentifi er
  7310                    {
  7311                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7312                             get
  7313                             {
  7314                                      return t his.GetAtt ributeValu e<string>( "externalu seridentif ier");
  7315                             }
  7316                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7317                             set
  7318                             {
  7319                                      this.OnP ropertyCha nging("Ext ernalUserI dentifier" );
  7320                                      this.Set AttributeV alue("exte rnaluserid entifier",  value);
  7321                                      this.OnP ropertyCha nged("Exte rnalUserId entifier") ;
  7322                             }
  7323                    }
  7324                    
  7325                    ///  <summary>
  7326                    ///  Select the  marital s tatus of t he contact  for refer ence in fo llow-up ph one calls  and other  communicat ions.
  7327                    ///  </summary>
  7328                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("fami lystatusco de")]
  7329                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Fami lyStatusCo de
  7330                    {
  7331                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7332                             get
  7333                             {
  7334                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("fam ilystatusc ode");
  7335                             }
  7336                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7337                             set
  7338                             {
  7339                                      this.OnP ropertyCha nging("Fam ilyStatusC ode");
  7340                                      this.Set AttributeV alue("fami lystatusco de", value );
  7341                                      this.OnP ropertyCha nged("Fami lyStatusCo de");
  7342                             }
  7343                    }
  7344                    
  7345                    ///  <summary>
  7346                    ///  Type the f ax number  for the co ntact.
  7347                    ///  </summary>
  7348                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("fax" )]
  7349                    publ ic string  Fax
  7350                    {
  7351                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7352                             get
  7353                             {
  7354                                      return t his.GetAtt ributeValu e<string>( "fax");
  7355                             }
  7356                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7357                             set
  7358                             {
  7359                                      this.OnP ropertyCha nging("Fax ");
  7360                                      this.Set AttributeV alue("fax" , value);
  7361                                      this.OnP ropertyCha nged("Fax" );
  7362                             }
  7363                    }
  7364                    
  7365                    ///  <summary>
  7366                    ///  Type the c ontact's f irst name  to make su re the con tact is ad dressed co rrectly in  sales cal ls, email,  and marke ting campa igns.
  7367                    ///  </summary>
  7368                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("firs tname")]
  7369                    publ ic string  FirstName
  7370                    {
  7371                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7372                             get
  7373                             {
  7374                                      return t his.GetAtt ributeValu e<string>( "firstname ");
  7375                             }
  7376                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7377                             set
  7378                             {
  7379                                      this.OnP ropertyCha nging("Fir stName");
  7380                                      this.Set AttributeV alue("firs tname", va lue);
  7381                                      this.OnP ropertyCha nged("Firs tName");
  7382                             }
  7383                    }
  7384                    
  7385                    ///  <summary>
  7386                    ///  Informatio n about wh ether to a llow follo wing email  activity  like opens , attachme nt views a nd link cl icks for e mails sent  to the co ntact.
  7387                    ///  </summary>
  7388                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("foll owemail")]
  7389                    publ ic System. Nullable<b ool> Follo wEmail
  7390                    {
  7391                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7392                             get
  7393                             {
  7394                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("foll owemail");
  7395                             }
  7396                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7397                             set
  7398                             {
  7399                                      this.OnP ropertyCha nging("Fol lowEmail") ;
  7400                                      this.Set AttributeV alue("foll owemail",  value);
  7401                                      this.OnP ropertyCha nged("Foll owEmail");
  7402                             }
  7403                    }
  7404                    
  7405                    ///  <summary>
  7406                    ///  Type the U RL for the  contact's  FTP site  to enable  users to a ccess data  and share  documents .
  7407                    ///  </summary>
  7408                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ftps iteurl")]
  7409                    publ ic string  FtpSiteUrl
  7410                    {
  7411                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7412                             get
  7413                             {
  7414                                      return t his.GetAtt ributeValu e<string>( "ftpsiteur l");
  7415                             }
  7416                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7417                             set
  7418                             {
  7419                                      this.OnP ropertyCha nging("Ftp SiteUrl");
  7420                                      this.Set AttributeV alue("ftps iteurl", v alue);
  7421                                      this.OnP ropertyCha nged("FtpS iteUrl");
  7422                             }
  7423                    }
  7424                    
  7425                    ///  <summary>
  7426                    ///  Combines a nd shows t he contact 's first a nd last na mes so tha t the full  name can  be display ed in view s and repo rts.
  7427                    ///  </summary>
  7428                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("full name")]
  7429                    publ ic string  FullName
  7430                    {
  7431                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7432                             get
  7433                             {
  7434                                      return t his.GetAtt ributeValu e<string>( "fullname" );
  7435                             }
  7436                    }
  7437                    
  7438                    ///  <summary>
  7439                    ///  Select the  contact's  gender to  make sure  the conta ct is addr essed corr ectly in s ales calls , email, a nd marketi ng campaig ns.
  7440                    ///  </summary>
  7441                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("gend ercode")]
  7442                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Gend erCode
  7443                    {
  7444                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7445                             get
  7446                             {
  7447                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("gen dercode");
  7448                             }
  7449                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7450                             set
  7451                             {
  7452                                      this.OnP ropertyCha nging("Gen derCode");
  7453                                      this.Set AttributeV alue("gend ercode", v alue);
  7454                                      this.OnP ropertyCha nged("Gend erCode");
  7455                             }
  7456                    }
  7457                    
  7458                    ///  <summary>
  7459                    ///  Type the p assport nu mber or ot her govern ment ID fo r the cont act for us e in docum ents or re ports.
  7460                    ///  </summary>
  7461                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("gove rnmentid") ]
  7462                    publ ic string  Government Id
  7463                    {
  7464                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7465                             get
  7466                             {
  7467                                      return t his.GetAtt ributeValu e<string>( "governmen tid");
  7468                             }
  7469                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7470                             set
  7471                             {
  7472                                      this.OnP ropertyCha nging("Gov ernmentId" );
  7473                                      this.Set AttributeV alue("gove rnmentid",  value);
  7474                                      this.OnP ropertyCha nged("Gove rnmentId") ;
  7475                             }
  7476                    }
  7477                    
  7478                    ///  <summary>
  7479                    ///  Select whe ther the c ontact has  any child ren for re ference in  follow-up  phone cal ls and oth er communi cations.
  7480                    ///  </summary>
  7481                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("hasc hildrencod e")]
  7482                    publ ic Microso ft.Xrm.Sdk .OptionSet Value HasC hildrenCod e
  7483                    {
  7484                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7485                             get
  7486                             {
  7487                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("has childrenco de");
  7488                             }
  7489                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7490                             set
  7491                             {
  7492                                      this.OnP ropertyCha nging("Has ChildrenCo de");
  7493                                      this.Set AttributeV alue("hasc hildrencod e", value) ;
  7494                                      this.OnP ropertyCha nged("HasC hildrenCod e");
  7495                             }
  7496                    }
  7497                    
  7498                    ///  <summary>
  7499                    ///  Type a sec ond home p hone numbe r for this  contact.
  7500                    ///  </summary>
  7501                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("home 2")]
  7502                    publ ic string  Home2
  7503                    {
  7504                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7505                             get
  7506                             {
  7507                                      return t his.GetAtt ributeValu e<string>( "home2");
  7508                             }
  7509                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7510                             set
  7511                             {
  7512                                      this.OnP ropertyCha nging("Hom e2");
  7513                                      this.Set AttributeV alue("home 2", value) ;
  7514                                      this.OnP ropertyCha nged("Home 2");
  7515                             }
  7516                    }
  7517                    
  7518                    ///  <summary>
  7519                    ///  Unique ide ntifier of  the data  import or  data migra tion that  created th is record.
  7520                    ///  </summary>
  7521                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("impo rtsequence number")]
  7522                    publ ic System. Nullable<i nt> Import SequenceNu mber
  7523                    {
  7524                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7525                             get
  7526                             {
  7527                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("impor tsequencen umber");
  7528                             }
  7529                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7530                             set
  7531                             {
  7532                                      this.OnP ropertyCha nging("Imp ortSequenc eNumber");
  7533                                      this.Set AttributeV alue("impo rtsequence number", v alue);
  7534                                      this.OnP ropertyCha nged("Impo rtSequence Number");
  7535                             }
  7536                    }
  7537                    
  7538                    ///  <summary>
  7539                    ///  Select whe ther the c ontact exi sts in a s eparate ac counting o r other sy stem, such  as Micros oft Dynami cs GP or a nother ERP  database,  for use i n integrat ion proces ses.
  7540                    ///  </summary>
  7541                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("isba ckofficecu stomer")]
  7542                    publ ic System. Nullable<b ool> IsBac kofficeCus tomer
  7543                    {
  7544                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7545                             get
  7546                             {
  7547                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("isba ckofficecu stomer");
  7548                             }
  7549                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7550                             set
  7551                             {
  7552                                      this.OnP ropertyCha nging("IsB ackofficeC ustomer");
  7553                                      this.Set AttributeV alue("isba ckofficecu stomer", v alue);
  7554                                      this.OnP ropertyCha nged("IsBa ckofficeCu stomer");
  7555                             }
  7556                    }
  7557                    
  7558                    ///  <summary>
  7559                    ///  Type the j ob title o f the cont act to mak e sure the  contact i s addresse d correctl y in sales  calls, em ail, and m arketing c ampaigns.
  7560                    ///  </summary>
  7561                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("jobt itle")]
  7562                    publ ic string  JobTitle
  7563                    {
  7564                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7565                             get
  7566                             {
  7567                                      return t his.GetAtt ributeValu e<string>( "jobtitle" );
  7568                             }
  7569                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7570                             set
  7571                             {
  7572                                      this.OnP ropertyCha nging("Job Title");
  7573                                      this.Set AttributeV alue("jobt itle", val ue);
  7574                                      this.OnP ropertyCha nged("JobT itle");
  7575                             }
  7576                    }
  7577                    
  7578                    ///  <summary>
  7579                    ///  Type the c ontact's l ast name t o make sur e the cont act is add ressed cor rectly in  sales call s, email,  and market ing campai gns.
  7580                    ///  </summary>
  7581                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("last name")]
  7582                    publ ic string  LastName
  7583                    {
  7584                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7585                             get
  7586                             {
  7587                                      return t his.GetAtt ributeValu e<string>( "lastname" );
  7588                             }
  7589                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7590                             set
  7591                             {
  7592                                      this.OnP ropertyCha nging("Las tName");
  7593                                      this.Set AttributeV alue("last name", val ue);
  7594                                      this.OnP ropertyCha nged("Last Name");
  7595                             }
  7596                    }
  7597                    
  7598                    ///  <summary>
  7599                    ///  Contains t he date an d time sta mp of the  last on ho ld time.
  7600                    ///  </summary>
  7601                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("last onholdtime ")]
  7602                    publ ic System. Nullable<S ystem.Date Time> Last OnHoldTime
  7603                    {
  7604                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7605                             get
  7606                             {
  7607                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("las tonholdtim e");
  7608                             }
  7609                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7610                             set
  7611                             {
  7612                                      this.OnP ropertyCha nging("Las tOnHoldTim e");
  7613                                      this.Set AttributeV alue("last onholdtime ", value);
  7614                                      this.OnP ropertyCha nged("Last OnHoldTime ");
  7615                             }
  7616                    }
  7617                    
  7618                    ///  <summary>
  7619                    ///  Shows the  date when  the contac t was last  included  in a marke ting campa ign or qui ck campaig n.
  7620                    ///  </summary>
  7621                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("last usedincamp aign")]
  7622                    publ ic System. Nullable<S ystem.Date Time> Last UsedInCamp aign
  7623                    {
  7624                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7625                             get
  7626                             {
  7627                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("las tusedincam paign");
  7628                             }
  7629                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7630                             set
  7631                             {
  7632                                      this.OnP ropertyCha nging("Las tUsedInCam paign");
  7633                                      this.Set AttributeV alue("last usedincamp aign", val ue);
  7634                                      this.OnP ropertyCha nged("Last UsedInCamp aign");
  7635                             }
  7636                    }
  7637                    
  7638                    ///  <summary>
  7639                    ///  Select the  primary m arketing s ource that  directed  the contac t to your  organizati on.
  7640                    ///  </summary>
  7641                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("lead sourcecode ")]
  7642                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Lead SourceCode
  7643                    {
  7644                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7645                             get
  7646                             {
  7647                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("lea dsourcecod e");
  7648                             }
  7649                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7650                             set
  7651                             {
  7652                                      this.OnP ropertyCha nging("Lea dSourceCod e");
  7653                                      this.Set AttributeV alue("lead sourcecode ", value);
  7654                                      this.OnP ropertyCha nged("Lead SourceCode ");
  7655                             }
  7656                    }
  7657                    
  7658                    ///  <summary>
  7659                    ///  Type the n ame of the  contact's  manager f or use in  escalating  issues or  other fol low-up com munication s with the  contact.
  7660                    ///  </summary>
  7661                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("mana gername")]
  7662                    publ ic string  ManagerNam e
  7663                    {
  7664                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7665                             get
  7666                             {
  7667                                      return t his.GetAtt ributeValu e<string>( "managerna me");
  7668                             }
  7669                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7670                             set
  7671                             {
  7672                                      this.OnP ropertyCha nging("Man agerName") ;
  7673                                      this.Set AttributeV alue("mana gername",  value);
  7674                                      this.OnP ropertyCha nged("Mana gerName");
  7675                             }
  7676                    }
  7677                    
  7678                    ///  <summary>
  7679                    ///  Type the p hone numbe r for the  contact's  manager.
  7680                    ///  </summary>
  7681                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("mana gerphone") ]
  7682                    publ ic string  ManagerPho ne
  7683                    {
  7684                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7685                             get
  7686                             {
  7687                                      return t his.GetAtt ributeValu e<string>( "managerph one");
  7688                             }
  7689                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7690                             set
  7691                             {
  7692                                      this.OnP ropertyCha nging("Man agerPhone" );
  7693                                      this.Set AttributeV alue("mana gerphone",  value);
  7694                                      this.OnP ropertyCha nged("Mana gerPhone") ;
  7695                             }
  7696                    }
  7697                    
  7698                    ///  <summary>
  7699                    ///  Whether is  only for  marketing
  7700                    ///  </summary>
  7701                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("mark etingonly" )]
  7702                    publ ic System. Nullable<b ool> Marke tingOnly
  7703                    {
  7704                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7705                             get
  7706                             {
  7707                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("mark etingonly" );
  7708                             }
  7709                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7710                             set
  7711                             {
  7712                                      this.OnP ropertyCha nging("Mar ketingOnly ");
  7713                                      this.Set AttributeV alue("mark etingonly" , value);
  7714                                      this.OnP ropertyCha nged("Mark etingOnly" );
  7715                             }
  7716                    }
  7717                    
  7718                    ///  <summary>
  7719                    ///  Unique ide ntifier of  the maste r contact  for merge.
  7720                    ///  </summary>
  7721                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("mast erid")]
  7722                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mas terId
  7723                    {
  7724                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7725                             get
  7726                             {
  7727                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ma sterid");
  7728                             }
  7729                    }
  7730                    
  7731                    ///  <summary>
  7732                    ///  Shows whet her the ac count has  been merge d with a m aster cont act.
  7733                    ///  </summary>
  7734                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("merg ed")]
  7735                    publ ic System. Nullable<b ool> Merge d
  7736                    {
  7737                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7738                             get
  7739                             {
  7740                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("merg ed");
  7741                             }
  7742                    }
  7743                    
  7744                    ///  <summary>
  7745                    ///  Type the c ontact's m iddle name  or initia l to make  sure the c ontact is  addressed  correctly.
  7746                    ///  </summary>
  7747                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("midd lename")]
  7748                    publ ic string  MiddleName
  7749                    {
  7750                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7751                             get
  7752                             {
  7753                                      return t his.GetAtt ributeValu e<string>( "middlenam e");
  7754                             }
  7755                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7756                             set
  7757                             {
  7758                                      this.OnP ropertyCha nging("Mid dleName");
  7759                                      this.Set AttributeV alue("midd lename", v alue);
  7760                                      this.OnP ropertyCha nged("Midd leName");
  7761                             }
  7762                    }
  7763                    
  7764                    ///  <summary>
  7765                    ///  Type the m obile phon e number f or the con tact.
  7766                    ///  </summary>
  7767                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("mobi lephone")]
  7768                    publ ic string  MobilePhon e
  7769                    {
  7770                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7771                             get
  7772                             {
  7773                                      return t his.GetAtt ributeValu e<string>( "mobilepho ne");
  7774                             }
  7775                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7776                             set
  7777                             {
  7778                                      this.OnP ropertyCha nging("Mob ilePhone") ;
  7779                                      this.Set AttributeV alue("mobi lephone",  value);
  7780                                      this.OnP ropertyCha nged("Mobi lePhone");
  7781                             }
  7782                    }
  7783                    
  7784                    ///  <summary>
  7785                    ///  Shows who  last updat ed the rec ord.
  7786                    ///  </summary>
  7787                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedby")]
  7788                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedBy
  7789                    {
  7790                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7791                             get
  7792                             {
  7793                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedby") ;
  7794                             }
  7795                    }
  7796                    
  7797                    ///  <summary>
  7798                    ///  Shows the  external p arty who m odified th e record.
  7799                    ///  </summary>
  7800                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedbyexte rnalparty" )]
  7801                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedByExt ernalParty
  7802                    {
  7803                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7804                             get
  7805                             {
  7806                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedbyex ternalpart y");
  7807                             }
  7808                    }
  7809                    
  7810                    ///  <summary>
  7811                    ///  Shows the  date and t ime when t he record  was last u pdated. Th e date and  time are  displayed  in the tim e zone sel ected in M icrosoft D ynamics 36 5 options.
  7812                    ///  </summary>
  7813                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedon")]
  7814                    publ ic System. Nullable<S ystem.Date Time> Modi fiedOn
  7815                    {
  7816                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7817                             get
  7818                             {
  7819                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("mod ifiedon");
  7820                             }
  7821                    }
  7822                    
  7823                    ///  <summary>
  7824                    ///  Shows who  last updat ed the rec ord on beh alf of ano ther user.
  7825                    ///  </summary>
  7826                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedonbeha lfby")]
  7827                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedOnBeh alfBy
  7828                    {
  7829                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7830                             get
  7831                             {
  7832                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedonbe halfby");
  7833                             }
  7834                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7835                             set
  7836                             {
  7837                                      this.OnP ropertyCha nging("Mod ifiedOnBeh alfBy");
  7838                                      this.Set AttributeV alue("modi fiedonbeha lfby", val ue);
  7839                                      this.OnP ropertyCha nged("Modi fiedOnBeha lfBy");
  7840                             }
  7841                    }
  7842                    
  7843                    ///  <summary>
  7844                    ///  Type the c ontact's n ickname.
  7845                    ///  </summary>
  7846                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("nick name")]
  7847                    publ ic string  NickName
  7848                    {
  7849                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7850                             get
  7851                             {
  7852                                      return t his.GetAtt ributeValu e<string>( "nickname" );
  7853                             }
  7854                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7855                             set
  7856                             {
  7857                                      this.OnP ropertyCha nging("Nic kName");
  7858                                      this.Set AttributeV alue("nick name", val ue);
  7859                                      this.OnP ropertyCha nged("Nick Name");
  7860                             }
  7861                    }
  7862                    
  7863                    ///  <summary>
  7864                    ///  Type the n umber of c hildren th e contact  has for re ference in  follow-up  phone cal ls and oth er communi cations.
  7865                    ///  </summary>
  7866                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("numb erofchildr en")]
  7867                    publ ic System. Nullable<i nt> Number OfChildren
  7868                    {
  7869                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7870                             get
  7871                             {
  7872                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("numbe rofchildre n");
  7873                             }
  7874                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7875                             set
  7876                             {
  7877                                      this.OnP ropertyCha nging("Num berOfChild ren");
  7878                                      this.Set AttributeV alue("numb erofchildr en", value );
  7879                                      this.OnP ropertyCha nged("Numb erOfChildr en");
  7880                             }
  7881                    }
  7882                    
  7883                    ///  <summary>
  7884                    ///  Shows how  long, in m inutes, th at the rec ord was on  hold.
  7885                    ///  </summary>
  7886                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("onho ldtime")]
  7887                    publ ic System. Nullable<i nt> OnHold Time
  7888                    {
  7889                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7890                             get
  7891                             {
  7892                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("onhol dtime");
  7893                             }
  7894                    }
  7895                    
  7896                    ///  <summary>
  7897                    ///  Shows the  lead that  the contac t was crea ted if the  contact w as created  by conver ting a lea d in Micro soft Dynam ics 365. T his is use d to relat e the cont act to the  data on t he origina ting lead  for use in  reporting  and analy tics.
  7898                    ///  </summary>
  7899                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("orig inatinglea did")]
  7900                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Ori ginatingLe adId
  7901                    {
  7902                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7903                             get
  7904                             {
  7905                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("or iginatingl eadid");
  7906                             }
  7907                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7908                             set
  7909                             {
  7910                                      this.OnP ropertyCha nging("Ori ginatingLe adId");
  7911                                      this.Set AttributeV alue("orig inatinglea did", valu e);
  7912                                      this.OnP ropertyCha nged("Orig inatingLea dId");
  7913                             }
  7914                    }
  7915                    
  7916                    ///  <summary>
  7917                    ///  Date and t ime that t he record  was migrat ed.
  7918                    ///  </summary>
  7919                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("over riddencrea tedon")]
  7920                    publ ic System. Nullable<S ystem.Date Time> Over riddenCrea tedOn
  7921                    {
  7922                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7923                             get
  7924                             {
  7925                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ove rriddencre atedon");
  7926                             }
  7927                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7928                             set
  7929                             {
  7930                                      this.OnP ropertyCha nging("Ove rriddenCre atedOn");
  7931                                      this.Set AttributeV alue("over riddencrea tedon", va lue);
  7932                                      this.OnP ropertyCha nged("Over riddenCrea tedOn");
  7933                             }
  7934                    }
  7935                    
  7936                    ///  <summary>
  7937                    ///  Enter the  user or te am who is  assigned t o manage t he record.  This fiel d is updat ed every t ime the re cord is as signed to  a differen t user.
  7938                    ///  </summary>
  7939                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owne rid")]
  7940                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own erId
  7941                    {
  7942                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7943                             get
  7944                             {
  7945                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow nerid");
  7946                             }
  7947                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7948                             set
  7949                             {
  7950                                      this.OnP ropertyCha nging("Own erId");
  7951                                      this.Set AttributeV alue("owne rid", valu e);
  7952                                      this.OnP ropertyCha nged("Owne rId");
  7953                             }
  7954                    }
  7955                    
  7956                    ///  <summary>
  7957                    ///  Unique ide ntifier of  the busin ess unit t hat owns t he contact .
  7958                    ///  </summary>
  7959                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngbusiness unit")]
  7960                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingBusines sUnit
  7961                    {
  7962                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7963                             get
  7964                             {
  7965                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningbusine ssunit");
  7966                             }
  7967                    }
  7968                    
  7969                    ///  <summary>
  7970                    ///  Unique ide ntifier of  the team  who owns t he contact .
  7971                    ///  </summary>
  7972                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngteam")]
  7973                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingTeam
  7974                    {
  7975                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7976                             get
  7977                             {
  7978                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningteam") ;
  7979                             }
  7980                    }
  7981                    
  7982                    ///  <summary>
  7983                    ///  Unique ide ntifier of  the user  who owns t he contact .
  7984                    ///  </summary>
  7985                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni nguser")]
  7986                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingUser
  7987                    {
  7988                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  7989                             get
  7990                             {
  7991                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ninguser") ;
  7992                             }
  7993                    }
  7994                    
  7995                    ///  <summary>
  7996                    ///  Type the p ager numbe r for the  contact.
  7997                    ///  </summary>
  7998                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("page r")]
  7999                    publ ic string  Pager
  8000                    {
  8001                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8002                             get
  8003                             {
  8004                                      return t his.GetAtt ributeValu e<string>( "pager");
  8005                             }
  8006                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8007                             set
  8008                             {
  8009                                      this.OnP ropertyCha nging("Pag er");
  8010                                      this.Set AttributeV alue("page r", value) ;
  8011                                      this.OnP ropertyCha nged("Page r");
  8012                             }
  8013                    }
  8014                    
  8015                    ///  <summary>
  8016                    ///  Unique ide ntifier of  the paren t contact.
  8017                    ///  </summary>
  8018                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("pare ntcontacti d")]
  8019                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Par entContact Id
  8020                    {
  8021                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8022                             get
  8023                             {
  8024                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pa rentcontac tid");
  8025                             }
  8026                    }
  8027                    
  8028                    ///  <summary>
  8029                    ///  Select the  parent ac count or p arent cont act for th e contact  to provide  a quick l ink to add itional de tails, suc h as finan cial infor mation, ac tivities,  and opport unities.
  8030                    ///  </summary>
  8031                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("pare ntcustomer id")]
  8032                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Par entCustome rId
  8033                    {
  8034                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8035                             get
  8036                             {
  8037                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pa rentcustom erid");
  8038                             }
  8039                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8040                             set
  8041                             {
  8042                                      this.OnP ropertyCha nging("Par entCustome rId");
  8043                                      this.Set AttributeV alue("pare ntcustomer id", value );
  8044                                      this.OnP ropertyCha nged("Pare ntCustomer Id");
  8045                             }
  8046                    }
  8047                    
  8048                    ///  <summary>
  8049                    ///  Shows whet her the co ntact part icipates i n workflow  rules.
  8050                    ///  </summary>
  8051                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("part icipatesin workflow") ]
  8052                    publ ic System. Nullable<b ool> Parti cipatesInW orkflow
  8053                    {
  8054                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8055                             get
  8056                             {
  8057                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("part icipatesin workflow") ;
  8058                             }
  8059                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8060                             set
  8061                             {
  8062                                      this.OnP ropertyCha nging("Par ticipatesI nWorkflow" );
  8063                                      this.Set AttributeV alue("part icipatesin workflow",  value);
  8064                                      this.OnP ropertyCha nged("Part icipatesIn Workflow") ;
  8065                             }
  8066                    }
  8067                    
  8068                    ///  <summary>
  8069                    ///  Select the  payment t erms to in dicate whe n the cust omer needs  to pay th e total am ount.
  8070                    ///  </summary>
  8071                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("paym enttermsco de")]
  8072                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Paym entTermsCo de
  8073                    {
  8074                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8075                             get
  8076                             {
  8077                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("pay menttermsc ode");
  8078                             }
  8079                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8080                             set
  8081                             {
  8082                                      this.OnP ropertyCha nging("Pay mentTermsC ode");
  8083                                      this.Set AttributeV alue("paym enttermsco de", value );
  8084                                      this.OnP ropertyCha nged("Paym entTermsCo de");
  8085                             }
  8086                    }
  8087                    
  8088                    ///  <summary>
  8089                    ///  Address De livery Fai lure Code
  8090                    ///  </summary>
  8091                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _addressde liveryfail urecode")]
  8092                    publ ic Microso ft.Xrm.Sdk .OptionSet Value ppms _addressde liveryfail urecode
  8093                    {
  8094                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8095                             get
  8096                             {
  8097                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("ppm s_addressd eliveryfai lurecode") ;
  8098                             }
  8099                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8100                             set
  8101                             {
  8102                                      this.OnP ropertyCha nging("ppm s_addressd eliveryfai lurecode") ;
  8103                                      this.Set AttributeV alue("ppms _addressde liveryfail urecode",  value);
  8104                                      this.OnP ropertyCha nged("ppms _addressde liveryfail urecode");
  8105                             }
  8106                    }
  8107                    
  8108                    ///  <summary>
  8109                    ///  Address En d Date
  8110                    ///  </summary>
  8111                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _addressen ddate")]
  8112                    publ ic System. Nullable<S ystem.Date Time> ppms _addressen ddate
  8113                    {
  8114                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8115                             get
  8116                             {
  8117                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ppm s_addresse nddate");
  8118                             }
  8119                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8120                             set
  8121                             {
  8122                                      this.OnP ropertyCha nging("ppm s_addresse nddate");
  8123                                      this.Set AttributeV alue("ppms _addressen ddate", va lue);
  8124                                      this.OnP ropertyCha nged("ppms _addressen ddate");
  8125                             }
  8126                    }
  8127                    
  8128                    ///  <summary>
  8129                    ///  Address In validated  Date
  8130                    ///  </summary>
  8131                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _addressin validatedd ate")]
  8132                    publ ic System. Nullable<S ystem.Date Time> ppms _addressin validatedd ate
  8133                    {
  8134                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8135                             get
  8136                             {
  8137                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ppm s_addressi nvalidated date");
  8138                             }
  8139                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8140                             set
  8141                             {
  8142                                      this.OnP ropertyCha nging("ppm s_addressi nvalidated date");
  8143                                      this.Set AttributeV alue("ppms _addressin validatedd ate", valu e);
  8144                                      this.OnP ropertyCha nged("ppms _addressin validatedd ate");
  8145                             }
  8146                    }
  8147                    
  8148                    ///  <summary>
  8149                    ///  Address In valid Reas on
  8150                    ///  </summary>
  8151                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _addressin validreaso n")]
  8152                    publ ic Microso ft.Xrm.Sdk .OptionSet Value ppms _addressin validreaso n
  8153                    {
  8154                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8155                             get
  8156                             {
  8157                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("ppm s_addressi nvalidreas on");
  8158                             }
  8159                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8160                             set
  8161                             {
  8162                                      this.OnP ropertyCha nging("ppm s_addressi nvalidreas on");
  8163                                      this.Set AttributeV alue("ppms _addressin validreaso n", value) ;
  8164                                      this.OnP ropertyCha nged("ppms _addressin validreaso n");
  8165                             }
  8166                    }
  8167                    
  8168                    ///  <summary>
  8169                    ///  Content Pr ofile
  8170                    ///  </summary>
  8171                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _contentpr ofile")]
  8172                    publ ic string  ppms_conte ntprofile
  8173                    {
  8174                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8175                             get
  8176                             {
  8177                                      return t his.GetAtt ributeValu e<string>( "ppms_cont entprofile ");
  8178                             }
  8179                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8180                             set
  8181                             {
  8182                                      this.OnP ropertyCha nging("ppm s_contentp rofile");
  8183                                      this.Set AttributeV alue("ppms _contentpr ofile", va lue);
  8184                                      this.OnP ropertyCha nged("ppms _contentpr ofile");
  8185                             }
  8186                    }
  8187                    
  8188                    ///  <summary>
  8189                    ///  Content Pr ofile Vers ion
  8190                    ///  </summary>
  8191                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _contentpr ofileversi on")]
  8192                    publ ic string  ppms_conte ntprofilev ersion
  8193                    {
  8194                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8195                             get
  8196                             {
  8197                                      return t his.GetAtt ributeValu e<string>( "ppms_cont entprofile version");
  8198                             }
  8199                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8200                             set
  8201                             {
  8202                                      this.OnP ropertyCha nging("ppm s_contentp rofilevers ion");
  8203                                      this.Set AttributeV alue("ppms _contentpr ofileversi on", value );
  8204                                      this.OnP ropertyCha nged("ppms _contentpr ofileversi on");
  8205                             }
  8206                    }
  8207                    
  8208                    ///  <summary>
  8209                    ///  Country Co de Name
  8210                    ///  </summary>
  8211                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _countryco dename")]
  8212                    publ ic string  ppms_count rycodename
  8213                    {
  8214                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8215                             get
  8216                             {
  8217                                      return t his.GetAtt ributeValu e<string>( "ppms_coun trycodenam e");
  8218                             }
  8219                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8220                             set
  8221                             {
  8222                                      this.OnP ropertyCha nging("ppm s_countryc odename");
  8223                                      this.Set AttributeV alue("ppms _countryco dename", v alue);
  8224                                      this.OnP ropertyCha nged("ppms _countryco dename");
  8225                             }
  8226                    }
  8227                    
  8228                    ///  <summary>
  8229                    ///  Country Su bdivision  Code
  8230                    ///  </summary>
  8231                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _countrysu bdivisionc ode")]
  8232                    publ ic string  ppms_count rysubdivis ioncode
  8233                    {
  8234                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8235                             get
  8236                             {
  8237                                      return t his.GetAtt ributeValu e<string>( "ppms_coun trysubdivi sioncode") ;
  8238                             }
  8239                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8240                             set
  8241                             {
  8242                                      this.OnP ropertyCha nging("ppm s_countrys ubdivision code");
  8243                                      this.Set AttributeV alue("ppms _countrysu bdivisionc ode", valu e);
  8244                                      this.OnP ropertyCha nged("ppms _countrysu bdivisionc ode");
  8245                             }
  8246                    }
  8247                    
  8248                    ///  <summary>
  8249                    ///  Country Su bdivision  Name
  8250                    ///  </summary>
  8251                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _countrysu bdivisionn ame")]
  8252                    publ ic string  ppms_count rysubdivis ionname
  8253                    {
  8254                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8255                             get
  8256                             {
  8257                                      return t his.GetAtt ributeValu e<string>( "ppms_coun trysubdivi sionname") ;
  8258                             }
  8259                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8260                             set
  8261                             {
  8262                                      this.OnP ropertyCha nging("ppm s_countrys ubdivision name");
  8263                                      this.Set AttributeV alue("ppms _countrysu bdivisionn ame", valu e);
  8264                                      this.OnP ropertyCha nged("ppms _countrysu bdivisionn ame");
  8265                             }
  8266                    }
  8267                    
  8268                    ///  <summary>
  8269                    ///  Date of De ath
  8270                    ///  </summary>
  8271                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _dateofdea th")]
  8272                    publ ic System. Nullable<S ystem.Date Time> ppms _dateofdea th
  8273                    {
  8274                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8275                             get
  8276                             {
  8277                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ppm s_dateofde ath");
  8278                             }
  8279                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8280                             set
  8281                             {
  8282                                      this.OnP ropertyCha nging("ppm s_dateofde ath");
  8283                                      this.Set AttributeV alue("ppms _dateofdea th", value );
  8284                                      this.OnP ropertyCha nged("ppms _dateofdea th");
  8285                             }
  8286                    }
  8287                    
  8288                    ///  <summary>
  8289                    ///  Degree
  8290                    ///  </summary>
  8291                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _degree")]
  8292                    publ ic string  ppms_degre e
  8293                    {
  8294                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8295                             get
  8296                             {
  8297                                      return t his.GetAtt ributeValu e<string>( "ppms_degr ee");
  8298                             }
  8299                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8300                             set
  8301                             {
  8302                                      this.OnP ropertyCha nging("ppm s_degree") ;
  8303                                      this.Set AttributeV alue("ppms _degree",  value);
  8304                                      this.OnP ropertyCha nged("ppms _degree");
  8305                             }
  8306                    }
  8307                    
  8308                    ///  <summary>
  8309                    ///  Delivery S tatus
  8310                    ///  </summary>
  8311                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _deliverys tatus")]
  8312                    publ ic Microso ft.Xrm.Sdk .OptionSet Value ppms _deliverys tatus
  8313                    {
  8314                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8315                             get
  8316                             {
  8317                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("ppm s_delivery status");
  8318                             }
  8319                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8320                             set
  8321                             {
  8322                                      this.OnP ropertyCha nging("ppm s_delivery status");
  8323                                      this.Set AttributeV alue("ppms _deliverys tatus", va lue);
  8324                                      this.OnP ropertyCha nged("ppms _deliverys tatus");
  8325                             }
  8326                    }
  8327                    
  8328                    ///  <summary>
  8329                    ///  Effective  Date
  8330                    ///  </summary>
  8331                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _effective date")]
  8332                    publ ic System. Nullable<S ystem.Date Time> ppms _effective date
  8333                    {
  8334                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8335                             get
  8336                             {
  8337                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ppm s_effectiv edate");
  8338                             }
  8339                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8340                             set
  8341                             {
  8342                                      this.OnP ropertyCha nging("ppm s_effectiv edate");
  8343                                      this.Set AttributeV alue("ppms _effective date", val ue);
  8344                                      this.OnP ropertyCha nged("ppms _effective date");
  8345                             }
  8346                    }
  8347                    
  8348                    ///  <summary>
  8349                    ///  Electronic  Service A ddress
  8350                    ///  </summary>
  8351                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _electroni cservicead dress")]
  8352                    publ ic string  ppms_elect ronicservi ceaddress
  8353                    {
  8354                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8355                             get
  8356                             {
  8357                                      return t his.GetAtt ributeValu e<string>( "ppms_elec tronicserv iceaddress ");
  8358                             }
  8359                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8360                             set
  8361                             {
  8362                                      this.OnP ropertyCha nging("ppm s_electron icservicea ddress");
  8363                                      this.Set AttributeV alue("ppms _electroni cservicead dress", va lue);
  8364                                      this.OnP ropertyCha nged("ppms _electroni cservicead dress");
  8365                             }
  8366                    }
  8367                    
  8368                    ///  <summary>
  8369                    ///  Email Prio rity
  8370                    ///  </summary>
  8371                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _emailprio rity")]
  8372                    publ ic Microso ft.Xrm.Sdk .OptionSet Value ppms _emailprio rity
  8373                    {
  8374                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8375                             get
  8376                             {
  8377                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("ppm s_emailpri ority");
  8378                             }
  8379                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8380                             set
  8381                             {
  8382                                      this.OnP ropertyCha nging("ppm s_emailpri ority");
  8383                                      this.Set AttributeV alue("ppms _emailprio rity", val ue);
  8384                                      this.OnP ropertyCha nged("ppms _emailprio rity");
  8385                             }
  8386                    }
  8387                    
  8388                    ///  <summary>
  8389                    ///  Emergency  Responder  Indicator
  8390                    ///  </summary>
  8391                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _emergency responderi ndicator") ]
  8392                    publ ic string  ppms_emerg encyrespon derindicat or
  8393                    {
  8394                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8395                             get
  8396                             {
  8397                                      return t his.GetAtt ributeValu e<string>( "ppms_emer gencyrespo nderindica tor");
  8398                             }
  8399                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8400                             set
  8401                             {
  8402                                      this.OnP ropertyCha nging("ppm s_emergenc yresponder indicator" );
  8403                                      this.Set AttributeV alue("ppms _emergency responderi ndicator",  value);
  8404                                      this.OnP ropertyCha nged("ppms _emergency responderi ndicator") ;
  8405                             }
  8406                    }
  8407                    
  8408                    ///  <summary>
  8409                    ///  eSIID
  8410                    ///  </summary>
  8411                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _esiid")]
  8412                    publ ic string  ppms_esiid
  8413                    {
  8414                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8415                             get
  8416                             {
  8417                                      return t his.GetAtt ributeValu e<string>( "ppms_esii d");
  8418                             }
  8419                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8420                             set
  8421                             {
  8422                                      this.OnP ropertyCha nging("ppm s_esiid");
  8423                                      this.Set AttributeV alue("ppms _esiid", v alue);
  8424                                      this.OnP ropertyCha nged("ppms _esiid");
  8425                             }
  8426                    }
  8427                    
  8428                    ///  <summary>
  8429                    ///  FIPSCode
  8430                    ///  </summary>
  8431                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _fipscode" )]
  8432                    publ ic string  ppms_fipsc ode
  8433                    {
  8434                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8435                             get
  8436                             {
  8437                                      return t his.GetAtt ributeValu e<string>( "ppms_fips code");
  8438                             }
  8439                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8440                             set
  8441                             {
  8442                                      this.OnP ropertyCha nging("ppm s_fipscode ");
  8443                                      this.Set AttributeV alue("ppms _fipscode" , value);
  8444                                      this.OnP ropertyCha nged("ppms _fipscode" );
  8445                             }
  8446                    }
  8447                    
  8448                    ///  <summary>
  8449                    ///  Identifier
  8450                    ///  </summary>
  8451                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _identifie r")]
  8452                    publ ic string  ppms_ident ifier
  8453                    {
  8454                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8455                             get
  8456                             {
  8457                                      return t his.GetAtt ributeValu e<string>( "ppms_iden tifier");
  8458                             }
  8459                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8460                             set
  8461                             {
  8462                                      this.OnP ropertyCha nging("ppm s_identifi er");
  8463                                      this.Set AttributeV alue("ppms _identifie r", value) ;
  8464                                      this.OnP ropertyCha nged("ppms _identifie r");
  8465                             }
  8466                    }
  8467                    
  8468                    ///  <summary>
  8469                    ///  Identifier  Type
  8470                    ///  </summary>
  8471                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _identifie rtype")]
  8472                    publ ic Microso ft.Xrm.Sdk .OptionSet Value ppms _identifie rtype
  8473                    {
  8474                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8475                             get
  8476                             {
  8477                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("ppm s_identifi ertype");
  8478                             }
  8479                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8480                             set
  8481                             {
  8482                                      this.OnP ropertyCha nging("ppm s_identifi ertype");
  8483                                      this.Set AttributeV alue("ppms _identifie rtype", va lue);
  8484                                      this.OnP ropertyCha nged("ppms _identifie rtype");
  8485                             }
  8486                    }
  8487                    
  8488                    ///  <summary>
  8489                    ///  Integratio n Profile
  8490                    ///  </summary>
  8491                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _integrati onprofile" )]
  8492                    publ ic string  ppms_integ rationprof ile
  8493                    {
  8494                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8495                             get
  8496                             {
  8497                                      return t his.GetAtt ributeValu e<string>( "ppms_inte grationpro file");
  8498                             }
  8499                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8500                             set
  8501                             {
  8502                                      this.OnP ropertyCha nging("ppm s_integrat ionprofile ");
  8503                                      this.Set AttributeV alue("ppms _integrati onprofile" , value);
  8504                                      this.OnP ropertyCha nged("ppms _integrati onprofile" );
  8505                             }
  8506                    }
  8507                    
  8508                    ///  <summary>
  8509                    ///  Integratio n Profile  Version
  8510                    ///  </summary>
  8511                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _integrati onprofilev ersion")]
  8512                    publ ic string  ppms_integ rationprof ileversion
  8513                    {
  8514                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8515                             get
  8516                             {
  8517                                      return t his.GetAtt ributeValu e<string>( "ppms_inte grationpro fileversio n");
  8518                             }
  8519                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8520                             set
  8521                             {
  8522                                      this.OnP ropertyCha nging("ppm s_integrat ionprofile version");
  8523                                      this.Set AttributeV alue("ppms _integrati onprofilev ersion", v alue);
  8524                                      this.OnP ropertyCha nged("ppms _integrati onprofilev ersion");
  8525                             }
  8526                    }
  8527                    
  8528                    ///  <summary>
  8529                    ///  Internatio nal Postal  Code
  8530                    ///  </summary>
  8531                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _internati onalpostal code")]
  8532                    publ ic string  ppms_inter nationalpo stalcode
  8533                    {
  8534                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8535                             get
  8536                             {
  8537                                      return t his.GetAtt ributeValu e<string>( "ppms_inte rnationalp ostalcode" );
  8538                             }
  8539                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8540                             set
  8541                             {
  8542                                      this.OnP ropertyCha nging("ppm s_internat ionalposta lcode");
  8543                                      this.Set AttributeV alue("ppms _internati onalpostal code", val ue);
  8544                                      this.OnP ropertyCha nged("ppms _internati onalpostal code");
  8545                             }
  8546                    }
  8547                    
  8548                    ///  <summary>
  8549                    ///  Is Addess  Active
  8550                    ///  </summary>
  8551                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _isaddessa ctive")]
  8552                    publ ic System. Nullable<b ool> ppms_ isaddessac tive
  8553                    {
  8554                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8555                             get
  8556                             {
  8557                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("ppms _isaddessa ctive");
  8558                             }
  8559                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8560                             set
  8561                             {
  8562                                      this.OnP ropertyCha nging("ppm s_isaddess active");
  8563                                      this.Set AttributeV alue("ppms _isaddessa ctive", va lue);
  8564                                      this.OnP ropertyCha nged("ppms _isaddessa ctive");
  8565                             }
  8566                    }
  8567                    
  8568                    ///  <summary>
  8569                    ///  Is Mailing  Address
  8570                    ///  </summary>
  8571                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _ismailing address")]
  8572                    publ ic System. Nullable<b ool> ppms_ ismailinga ddress
  8573                    {
  8574                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8575                             get
  8576                             {
  8577                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("ppms _ismailing address");
  8578                             }
  8579                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8580                             set
  8581                             {
  8582                                      this.OnP ropertyCha nging("ppm s_ismailin gaddress") ;
  8583                                      this.Set AttributeV alue("ppms _ismailing address",  value);
  8584                                      this.OnP ropertyCha nged("ppms _ismailing address");
  8585                             }
  8586                    }
  8587                    
  8588                    ///  <summary>
  8589                    ///  ISO2Code
  8590                    ///  </summary>
  8591                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _iso2code" )]
  8592                    publ ic string  ppms_iso2c ode
  8593                    {
  8594                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8595                             get
  8596                             {
  8597                                      return t his.GetAtt ributeValu e<string>( "ppms_iso2 code");
  8598                             }
  8599                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8600                             set
  8601                             {
  8602                                      this.OnP ropertyCha nging("ppm s_iso2code ");
  8603                                      this.Set AttributeV alue("ppms _iso2code" , value);
  8604                                      this.OnP ropertyCha nged("ppms _iso2code" );
  8605                             }
  8606                    }
  8607                    
  8608                    ///  <summary>
  8609                    ///  ISOA3Code
  8610                    ///  </summary>
  8611                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _isoa3code ")]
  8612                    publ ic string  ppms_isoa3 code
  8613                    {
  8614                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8615                             get
  8616                             {
  8617                                      return t his.GetAtt ributeValu e<string>( "ppms_isoa 3code");
  8618                             }
  8619                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8620                             set
  8621                             {
  8622                                      this.OnP ropertyCha nging("ppm s_isoa3cod e");
  8623                                      this.Set AttributeV alue("ppms _isoa3code ", value);
  8624                                      this.OnP ropertyCha nged("ppms _isoa3code ");
  8625                             }
  8626                    }
  8627                    
  8628                    ///  <summary>
  8629                    ///  Is Other P arty Conta ct
  8630                    ///  </summary>
  8631                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _isotherpa rtycontact ")]
  8632                    publ ic System. Nullable<b ool> ppms_ isotherpar tycontact
  8633                    {
  8634                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8635                             get
  8636                             {
  8637                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("ppms _isotherpa rtycontact ");
  8638                             }
  8639                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8640                             set
  8641                             {
  8642                                      this.OnP ropertyCha nging("ppm s_isotherp artycontac t");
  8643                                      this.Set AttributeV alue("ppms _isotherpa rtycontact ", value);
  8644                                      this.OnP ropertyCha nged("ppms _isotherpa rtycontact ");
  8645                             }
  8646                    }
  8647                    
  8648                    ///  <summary>
  8649                    ///  Is Texting  Acceptabl e
  8650                    ///  </summary>
  8651                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _istexting acceptable ")]
  8652                    publ ic System. Nullable<b ool> ppms_ istextinga cceptable
  8653                    {
  8654                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8655                             get
  8656                             {
  8657                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("ppms _istexting acceptable ");
  8658                             }
  8659                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8660                             set
  8661                             {
  8662                                      this.OnP ropertyCha nging("ppm s_istextin gacceptabl e");
  8663                                      this.Set AttributeV alue("ppms _istexting acceptable ", value);
  8664                                      this.OnP ropertyCha nged("ppms _istexting acceptable ");
  8665                             }
  8666                    }
  8667                    
  8668                    ///  <summary>
  8669                    ///  Is Veteran
  8670                    ///  </summary>
  8671                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _isveteran ")]
  8672                    publ ic System. Nullable<b ool> ppms_ isveteran
  8673                    {
  8674                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8675                             get
  8676                             {
  8677                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("ppms _isveteran ");
  8678                             }
  8679                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8680                             set
  8681                             {
  8682                                      this.OnP ropertyCha nging("ppm s_isvetera n");
  8683                                      this.Set AttributeV alue("ppms _isveteran ", value);
  8684                                      this.OnP ropertyCha nged("ppms _isveteran ");
  8685                             }
  8686                    }
  8687                    
  8688                    ///  <summary>
  8689                    ///  Last Used  Date
  8690                    ///  </summary>
  8691                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _lastusedd ate")]
  8692                    publ ic System. Nullable<S ystem.Date Time> ppms _lastusedd ate
  8693                    {
  8694                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8695                             get
  8696                             {
  8697                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ppm s_lastused date");
  8698                             }
  8699                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8700                             set
  8701                             {
  8702                                      this.OnP ropertyCha nging("ppm s_lastused date");
  8703                                      this.Set AttributeV alue("ppms _lastusedd ate", valu e);
  8704                                      this.OnP ropertyCha nged("ppms _lastusedd ate");
  8705                             }
  8706                    }
  8707                    
  8708                    ///  <summary>
  8709                    ///  Modified D ate
  8710                    ///  </summary>
  8711                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _modifiedd ate")]
  8712                    publ ic System. Nullable<S ystem.Date Time> ppms _modifiedd ate
  8713                    {
  8714                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8715                             get
  8716                             {
  8717                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ppm s_modified date");
  8718                             }
  8719                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8720                             set
  8721                             {
  8722                                      this.OnP ropertyCha nging("ppm s_modified date");
  8723                                      this.Set AttributeV alue("ppms _modifiedd ate", valu e);
  8724                                      this.OnP ropertyCha nged("ppms _modifiedd ate");
  8725                             }
  8726                    }
  8727                    
  8728                    ///  <summary>
  8729                    ///  Other Part y Name
  8730                    ///  </summary>
  8731                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _otherpart yname")]
  8732                    publ ic string  ppms_other partyname
  8733                    {
  8734                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8735                             get
  8736                             {
  8737                                      return t his.GetAtt ributeValu e<string>( "ppms_othe rpartyname ");
  8738                             }
  8739                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8740                             set
  8741                             {
  8742                                      this.OnP ropertyCha nging("ppm s_otherpar tyname");
  8743                                      this.Set AttributeV alue("ppms _otherpart yname", va lue);
  8744                                      this.OnP ropertyCha nged("ppms _otherpart yname");
  8745                             }
  8746                    }
  8747                    
  8748                    ///  <summary>
  8749                    ///  Phone Prio rity
  8750                    ///  </summary>
  8751                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _phoneprio rity")]
  8752                    publ ic Microso ft.Xrm.Sdk .OptionSet Value ppms _phoneprio rity
  8753                    {
  8754                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8755                             get
  8756                             {
  8757                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("ppm s_phonepri ority");
  8758                             }
  8759                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8760                             set
  8761                             {
  8762                                      this.OnP ropertyCha nging("ppm s_phonepri ority");
  8763                                      this.Set AttributeV alue("ppms _phoneprio rity", val ue);
  8764                                      this.OnP ropertyCha nged("ppms _phoneprio rity");
  8765                             }
  8766                    }
  8767                    
  8768                    ///  <summary>
  8769                    ///  Phone Qual ity
  8770                    ///  </summary>
  8771                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _phonequal ity")]
  8772                    publ ic Microso ft.Xrm.Sdk .OptionSet Value ppms _phonequal ity
  8773                    {
  8774                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8775                             get
  8776                             {
  8777                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("ppm s_phonequa lity");
  8778                             }
  8779                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8780                             set
  8781                             {
  8782                                      this.OnP ropertyCha nging("ppm s_phonequa lity");
  8783                                      this.Set AttributeV alue("ppms _phonequal ity", valu e);
  8784                                      this.OnP ropertyCha nged("ppms _phonequal ity");
  8785                             }
  8786                    }
  8787                    
  8788                    ///  <summary>
  8789                    ///  Preferred  Method
  8790                    ///  </summary>
  8791                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _preferred method")]
  8792                    publ ic string  ppms_prefe rredmethod
  8793                    {
  8794                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8795                             get
  8796                             {
  8797                                      return t his.GetAtt ributeValu e<string>( "ppms_pref erredmetho d");
  8798                             }
  8799                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8800                             set
  8801                             {
  8802                                      this.OnP ropertyCha nging("ppm s_preferre dmethod");
  8803                                      this.Set AttributeV alue("ppms _preferred method", v alue);
  8804                                      this.OnP ropertyCha nged("ppms _preferred method");
  8805                             }
  8806                    }
  8807                    
  8808                    ///  <summary>
  8809                    ///  Primary Vi ew Last Up dated
  8810                    ///  </summary>
  8811                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _primaryvi ewlastupda ted")]
  8812                    publ ic System. Nullable<S ystem.Date Time> ppms _primaryvi ewlastupda ted
  8813                    {
  8814                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8815                             get
  8816                             {
  8817                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ppm s_primaryv iewlastupd ated");
  8818                             }
  8819                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8820                             set
  8821                             {
  8822                                      this.OnP ropertyCha nging("ppm s_primaryv iewlastupd ated");
  8823                                      this.Set AttributeV alue("ppms _primaryvi ewlastupda ted", valu e);
  8824                                      this.OnP ropertyCha nged("ppms _primaryvi ewlastupda ted");
  8825                             }
  8826                    }
  8827                    
  8828                    ///  <summary>
  8829                    ///  Security P rofile
  8830                    ///  </summary>
  8831                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _securityp rofile")]
  8832                    publ ic string  ppms_secur ityprofile
  8833                    {
  8834                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8835                             get
  8836                             {
  8837                                      return t his.GetAtt ributeValu e<string>( "ppms_secu rityprofil e");
  8838                             }
  8839                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8840                             set
  8841                             {
  8842                                      this.OnP ropertyCha nging("ppm s_security profile");
  8843                                      this.Set AttributeV alue("ppms _securityp rofile", v alue);
  8844                                      this.OnP ropertyCha nged("ppms _securityp rofile");
  8845                             }
  8846                    }
  8847                    
  8848                    ///  <summary>
  8849                    ///  Security P rofile Ver sion
  8850                    ///  </summary>
  8851                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _securityp rofilevers ion")]
  8852                    publ ic string  ppms_secur ityprofile version
  8853                    {
  8854                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8855                             get
  8856                             {
  8857                                      return t his.GetAtt ributeValu e<string>( "ppms_secu rityprofil eversion") ;
  8858                             }
  8859                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8860                             set
  8861                             {
  8862                                      this.OnP ropertyCha nging("ppm s_security profilever sion");
  8863                                      this.Set AttributeV alue("ppms _securityp rofilevers ion", valu e);
  8864                                      this.OnP ropertyCha nged("ppms _securityp rofilevers ion");
  8865                             }
  8866                    }
  8867                    
  8868                    ///  <summary>
  8869                    ///  Select the  preferred  day of th e week for  service a ppointment s.
  8870                    ///  </summary>
  8871                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("pref erredappoi ntmentdayc ode")]
  8872                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Pref erredAppoi ntmentDayC ode
  8873                    {
  8874                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8875                             get
  8876                             {
  8877                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("pre ferredappo intmentday code");
  8878                             }
  8879                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8880                             set
  8881                             {
  8882                                      this.OnP ropertyCha nging("Pre ferredAppo intmentDay Code");
  8883                                      this.Set AttributeV alue("pref erredappoi ntmentdayc ode", valu e);
  8884                                      this.OnP ropertyCha nged("Pref erredAppoi ntmentDayC ode");
  8885                             }
  8886                    }
  8887                    
  8888                    ///  <summary>
  8889                    ///  Select the  preferred  time of d ay for ser vice appoi ntments.
  8890                    ///  </summary>
  8891                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("pref erredappoi ntmenttime code")]
  8892                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Pref erredAppoi ntmentTime Code
  8893                    {
  8894                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8895                             get
  8896                             {
  8897                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("pre ferredappo intmenttim ecode");
  8898                             }
  8899                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8900                             set
  8901                             {
  8902                                      this.OnP ropertyCha nging("Pre ferredAppo intmentTim eCode");
  8903                                      this.Set AttributeV alue("pref erredappoi ntmenttime code", val ue);
  8904                                      this.OnP ropertyCha nged("Pref erredAppoi ntmentTime Code");
  8905                             }
  8906                    }
  8907                    
  8908                    ///  <summary>
  8909                    ///  Select the  preferred  method of  contact.
  8910                    ///  </summary>
  8911                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("pref erredconta ctmethodco de")]
  8912                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Pref erredConta ctMethodCo de
  8913                    {
  8914                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8915                             get
  8916                             {
  8917                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("pre ferredcont actmethodc ode");
  8918                             }
  8919                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8920                             set
  8921                             {
  8922                                      this.OnP ropertyCha nging("Pre ferredCont actMethodC ode");
  8923                                      this.Set AttributeV alue("pref erredconta ctmethodco de", value );
  8924                                      this.OnP ropertyCha nged("Pref erredConta ctMethodCo de");
  8925                             }
  8926                    }
  8927                    
  8928                    ///  <summary>
  8929                    ///  Choose the  contact's  preferred  service f acility or  equipment  to make s ure servic es are sch eduled cor rectly for  the custo mer.
  8930                    ///  </summary>
  8931                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("pref erredequip mentid")]
  8932                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Pre ferredEqui pmentId
  8933                    {
  8934                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8935                             get
  8936                             {
  8937                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pr eferredequ ipmentid") ;
  8938                             }
  8939                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8940                             set
  8941                             {
  8942                                      this.OnP ropertyCha nging("Pre ferredEqui pmentId");
  8943                                      this.Set AttributeV alue("pref erredequip mentid", v alue);
  8944                                      this.OnP ropertyCha nged("Pref erredEquip mentId");
  8945                             }
  8946                    }
  8947                    
  8948                    ///  <summary>
  8949                    ///  Choose the  contact's  preferred  service t o make sur e services  are sched uled corre ctly for t he custome r.
  8950                    ///  </summary>
  8951                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("pref erredservi ceid")]
  8952                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Pre ferredServ iceId
  8953                    {
  8954                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8955                             get
  8956                             {
  8957                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pr eferredser viceid");
  8958                             }
  8959                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8960                             set
  8961                             {
  8962                                      this.OnP ropertyCha nging("Pre ferredServ iceId");
  8963                                      this.Set AttributeV alue("pref erredservi ceid", val ue);
  8964                                      this.OnP ropertyCha nged("Pref erredServi ceId");
  8965                             }
  8966                    }
  8967                    
  8968                    ///  <summary>
  8969                    ///  Choose the  regular o r preferre d customer  service r epresentat ive for re ference wh en schedul ing servic e activiti es for the  contact.
  8970                    ///  </summary>
  8971                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("pref erredsyste muserid")]
  8972                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Pre ferredSyst emUserId
  8973                    {
  8974                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8975                             get
  8976                             {
  8977                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pr eferredsys temuserid" );
  8978                             }
  8979                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8980                             set
  8981                             {
  8982                                      this.OnP ropertyCha nging("Pre ferredSyst emUserId") ;
  8983                                      this.Set AttributeV alue("pref erredsyste muserid",  value);
  8984                                      this.OnP ropertyCha nged("Pref erredSyste mUserId");
  8985                             }
  8986                    }
  8987                    
  8988                    ///  <summary>
  8989                    ///  Shows the  ID of the  process.
  8990                    ///  </summary>
  8991                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("proc essid")]
  8992                    publ ic System. Nullable<S ystem.Guid > ProcessI d
  8993                    {
  8994                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  8995                             get
  8996                             {
  8997                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("process id");
  8998                             }
  8999                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9000                             set
  9001                             {
  9002                                      this.OnP ropertyCha nging("Pro cessId");
  9003                                      this.Set AttributeV alue("proc essid", va lue);
  9004                                      this.OnP ropertyCha nged("Proc essId");
  9005                             }
  9006                    }
  9007                    
  9008                    ///  <summary>
  9009                    ///  Type the s alutation  of the con tact to ma ke sure th e contact  is address ed correct ly in sale s calls, e mail messa ges, and m arketing c ampaigns.
  9010                    ///  </summary>
  9011                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("salu tation")]
  9012                    publ ic string  Salutation
  9013                    {
  9014                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9015                             get
  9016                             {
  9017                                      return t his.GetAtt ributeValu e<string>( "salutatio n");
  9018                             }
  9019                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9020                             set
  9021                             {
  9022                                      this.OnP ropertyCha nging("Sal utation");
  9023                                      this.Set AttributeV alue("salu tation", v alue);
  9024                                      this.OnP ropertyCha nged("Salu tation");
  9025                             }
  9026                    }
  9027                    
  9028                    ///  <summary>
  9029                    ///  Select a s hipping me thod for d eliveries  sent to th is address .
  9030                    ///  </summary>
  9031                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ship pingmethod code")]
  9032                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Ship pingMethod Code
  9033                    {
  9034                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9035                             get
  9036                             {
  9037                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("shi ppingmetho dcode");
  9038                             }
  9039                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9040                             set
  9041                             {
  9042                                      this.OnP ropertyCha nging("Shi ppingMetho dCode");
  9043                                      this.Set AttributeV alue("ship pingmethod code", val ue);
  9044                                      this.OnP ropertyCha nged("Ship pingMethod Code");
  9045                             }
  9046                    }
  9047                    
  9048                    ///  <summary>
  9049                    ///  Choose the  service l evel agree ment (SLA)  that you  want to ap ply to the  Contact r ecord.
  9050                    ///  </summary>
  9051                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("slai d")]
  9052                    publ ic Microso ft.Xrm.Sdk .EntityRef erence SLA Id
  9053                    {
  9054                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9055                             get
  9056                             {
  9057                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("sl aid");
  9058                             }
  9059                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9060                             set
  9061                             {
  9062                                      this.OnP ropertyCha nging("SLA Id");
  9063                                      this.Set AttributeV alue("slai d", value) ;
  9064                                      this.OnP ropertyCha nged("SLAI d");
  9065                             }
  9066                    }
  9067                    
  9068                    ///  <summary>
  9069                    ///  Last SLA t hat was ap plied to t his case.  This field  is for in ternal use  only.
  9070                    ///  </summary>
  9071                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("slai nvokedid") ]
  9072                    publ ic Microso ft.Xrm.Sdk .EntityRef erence SLA InvokedId
  9073                    {
  9074                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9075                             get
  9076                             {
  9077                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("sl ainvokedid ");
  9078                             }
  9079                    }
  9080                    
  9081                    ///  <summary>
  9082                    ///  Type the n ame of the  contact's  spouse or  partner f or referen ce during  calls, eve nts, or ot her commun ications w ith the co ntact.
  9083                    ///  </summary>
  9084                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("spou sesname")]
  9085                    publ ic string  SpousesNam e
  9086                    {
  9087                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9088                             get
  9089                             {
  9090                                      return t his.GetAtt ributeValu e<string>( "spousesna me");
  9091                             }
  9092                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9093                             set
  9094                             {
  9095                                      this.OnP ropertyCha nging("Spo usesName") ;
  9096                                      this.Set AttributeV alue("spou sesname",  value);
  9097                                      this.OnP ropertyCha nged("Spou sesName");
  9098                             }
  9099                    }
  9100                    
  9101                    ///  <summary>
  9102                    ///  Shows the  ID of the  stage.
  9103                    ///  </summary>
  9104                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stag eid")]
  9105                    publ ic System. Nullable<S ystem.Guid > StageId
  9106                    {
  9107                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9108                             get
  9109                             {
  9110                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("stageid ");
  9111                             }
  9112                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9113                             set
  9114                             {
  9115                                      this.OnP ropertyCha nging("Sta geId");
  9116                                      this.Set AttributeV alue("stag eid", valu e);
  9117                                      this.OnP ropertyCha nged("Stag eId");
  9118                             }
  9119                    }
  9120                    
  9121                    ///  <summary>
  9122                    ///  Shows whet her the co ntact is a ctive or i nactive. I nactive co ntacts are  read-only  and can't  be edited  unless th ey are rea ctivated.
  9123                    ///  </summary>
  9124                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat ecode")]
  9125                    publ ic System. Nullable<V A.PPMS.Con text.Conta ctState> S tateCode
  9126                    {
  9127                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9128                             get
  9129                             {
  9130                                      Microsof t.Xrm.Sdk. OptionSetV alue optio nSet = thi s.GetAttri buteValue< Microsoft. Xrm.Sdk.Op tionSetVal ue>("state code");
  9131                                      if ((opt ionSet !=  null))
  9132                                      {
  9133                                               return ((V A.PPMS.Con text.Conta ctState)(S ystem.Enum .ToObject( typeof(VA. PPMS.Conte xt.Contact State), op tionSet.Va lue)));
  9134                                      }
  9135                                      else
  9136                                      {
  9137                                               return nul l;
  9138                                      }
  9139                             }
  9140                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9141                             set
  9142                             {
  9143                                      this.OnP ropertyCha nging("Sta teCode");
  9144                                      if ((val ue == null ))
  9145                                      {
  9146                                               this.SetAt tributeVal ue("statec ode", null );
  9147                                      }
  9148                                      else
  9149                                      {
  9150                                               this.SetAt tributeVal ue("statec ode", new  Microsoft. Xrm.Sdk.Op tionSetVal ue(((int)( value))));
  9151                                      }
  9152                                      this.OnP ropertyCha nged("Stat eCode");
  9153                             }
  9154                    }
  9155                    
  9156                    ///  <summary>
  9157                    ///  Select the  contact's  status.
  9158                    ///  </summary>
  9159                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  9160                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Stat usCode
  9161                    {
  9162                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9163                             get
  9164                             {
  9165                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("sta tuscode");
  9166                             }
  9167                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9168                             set
  9169                             {
  9170                                      this.OnP ropertyCha nging("Sta tusCode");
  9171                                      this.Set AttributeV alue("stat uscode", v alue);
  9172                                      this.OnP ropertyCha nged("Stat usCode");
  9173                             }
  9174                    }
  9175                    
  9176                    ///  <summary>
  9177                    ///  For intern al use onl y.
  9178                    ///  </summary>
  9179                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("subs criptionid ")]
  9180                    publ ic System. Nullable<S ystem.Guid > Subscrip tionId
  9181                    {
  9182                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9183                             get
  9184                             {
  9185                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("subscri ptionid");
  9186                             }
  9187                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9188                             set
  9189                             {
  9190                                      this.OnP ropertyCha nging("Sub scriptionI d");
  9191                                      this.Set AttributeV alue("subs criptionid ", value);
  9192                                      this.OnP ropertyCha nged("Subs criptionId ");
  9193                             }
  9194                    }
  9195                    
  9196                    ///  <summary>
  9197                    ///  Type the s uffix used  in the co ntact's na me, such a s Jr. or S r. to make  sure the  contact is  addressed  correctly  in sales  calls, ema il, and ma rketing ca mpaigns.
  9198                    ///  </summary>
  9199                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("suff ix")]
  9200                    publ ic string  Suffix
  9201                    {
  9202                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9203                             get
  9204                             {
  9205                                      return t his.GetAtt ributeValu e<string>( "suffix");
  9206                             }
  9207                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9208                             set
  9209                             {
  9210                                      this.OnP ropertyCha nging("Suf fix");
  9211                                      this.Set AttributeV alue("suff ix", value );
  9212                                      this.OnP ropertyCha nged("Suff ix");
  9213                             }
  9214                    }
  9215                    
  9216                    ///  <summary>
  9217                    ///  Type the m ain phone  number for  this cont act.
  9218                    ///  </summary>
  9219                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("tele phone1")]
  9220                    publ ic string  Telephone1
  9221                    {
  9222                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9223                             get
  9224                             {
  9225                                      return t his.GetAtt ributeValu e<string>( "telephone 1");
  9226                             }
  9227                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9228                             set
  9229                             {
  9230                                      this.OnP ropertyCha nging("Tel ephone1");
  9231                                      this.Set AttributeV alue("tele phone1", v alue);
  9232                                      this.OnP ropertyCha nged("Tele phone1");
  9233                             }
  9234                    }
  9235                    
  9236                    ///  <summary>
  9237                    ///  Type a sec ond phone  number for  this cont act.
  9238                    ///  </summary>
  9239                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("tele phone2")]
  9240                    publ ic string  Telephone2
  9241                    {
  9242                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9243                             get
  9244                             {
  9245                                      return t his.GetAtt ributeValu e<string>( "telephone 2");
  9246                             }
  9247                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9248                             set
  9249                             {
  9250                                      this.OnP ropertyCha nging("Tel ephone2");
  9251                                      this.Set AttributeV alue("tele phone2", v alue);
  9252                                      this.OnP ropertyCha nged("Tele phone2");
  9253                             }
  9254                    }
  9255                    
  9256                    ///  <summary>
  9257                    ///  Type a thi rd phone n umber for  this conta ct.
  9258                    ///  </summary>
  9259                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("tele phone3")]
  9260                    publ ic string  Telephone3
  9261                    {
  9262                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9263                             get
  9264                             {
  9265                                      return t his.GetAtt ributeValu e<string>( "telephone 3");
  9266                             }
  9267                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9268                             set
  9269                             {
  9270                                      this.OnP ropertyCha nging("Tel ephone3");
  9271                                      this.Set AttributeV alue("tele phone3", v alue);
  9272                                      this.OnP ropertyCha nged("Tele phone3");
  9273                             }
  9274                    }
  9275                    
  9276                    ///  <summary>
  9277                    ///  Select a r egion or t erritory f or the con tact for u se in segm entation a nd analysi s.
  9278                    ///  </summary>
  9279                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("terr itorycode" )]
  9280                    publ ic Microso ft.Xrm.Sdk .OptionSet Value Terr itoryCode
  9281                    {
  9282                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9283                             get
  9284                             {
  9285                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("ter ritorycode ");
  9286                             }
  9287                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9288                             set
  9289                             {
  9290                                      this.OnP ropertyCha nging("Ter ritoryCode ");
  9291                                      this.Set AttributeV alue("terr itorycode" , value);
  9292                                      this.OnP ropertyCha nged("Terr itoryCode" );
  9293                             }
  9294                    }
  9295                    
  9296                    ///  <summary>
  9297                    ///  Total time  spent for  emails (r ead and wr ite) and m eetings by  me in rel ation to t he contact  record.
  9298                    ///  </summary>
  9299                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("time spentbymeo nemailandm eetings")]
  9300                    publ ic string  TimeSpentB yMeOnEmail AndMeeting s
  9301                    {
  9302                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9303                             get
  9304                             {
  9305                                      return t his.GetAtt ributeValu e<string>( "timespent bymeonemai landmeetin gs");
  9306                             }
  9307                    }
  9308                    
  9309                    ///  <summary>
  9310                    ///  For intern al use onl y.
  9311                    ///  </summary>
  9312                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("time zoneruleve rsionnumbe r")]
  9313                    publ ic System. Nullable<i nt> TimeZo neRuleVers ionNumber
  9314                    {
  9315                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9316                             get
  9317                             {
  9318                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("timez onerulever sionnumber ");
  9319                             }
  9320                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9321                             set
  9322                             {
  9323                                      this.OnP ropertyCha nging("Tim eZoneRuleV ersionNumb er");
  9324                                      this.Set AttributeV alue("time zoneruleve rsionnumbe r", value) ;
  9325                                      this.OnP ropertyCha nged("Time ZoneRuleVe rsionNumbe r");
  9326                             }
  9327                    }
  9328                    
  9329                    ///  <summary>
  9330                    ///  Choose the  local cur rency for  the record  to make s ure budget s are repo rted in th e correct  currency.
  9331                    ///  </summary>
  9332                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("tran sactioncur rencyid")]
  9333                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Tra nsactionCu rrencyId
  9334                    {
  9335                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9336                             get
  9337                             {
  9338                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("tr ansactionc urrencyid" );
  9339                             }
  9340                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9341                             set
  9342                             {
  9343                                      this.OnP ropertyCha nging("Tra nsactionCu rrencyId") ;
  9344                                      this.Set AttributeV alue("tran sactioncur rencyid",  value);
  9345                                      this.OnP ropertyCha nged("Tran sactionCur rencyId");
  9346                             }
  9347                    }
  9348                    
  9349                    ///  <summary>
  9350                    ///  For intern al use onl y.
  9351                    ///  </summary>
  9352                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("trav ersedpath" )]
  9353                    publ ic string  TraversedP ath
  9354                    {
  9355                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9356                             get
  9357                             {
  9358                                      return t his.GetAtt ributeValu e<string>( "traversed path");
  9359                             }
  9360                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9361                             set
  9362                             {
  9363                                      this.OnP ropertyCha nging("Tra versedPath ");
  9364                                      this.Set AttributeV alue("trav ersedpath" , value);
  9365                                      this.OnP ropertyCha nged("Trav ersedPath" );
  9366                             }
  9367                    }
  9368                    
  9369                    ///  <summary>
  9370                    ///  Time zone  code that  was in use  when the  record was  created.
  9371                    ///  </summary>
  9372                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("utcc onversiont imezonecod e")]
  9373                    publ ic System. Nullable<i nt> UTCCon versionTim eZoneCode
  9374                    {
  9375                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9376                             get
  9377                             {
  9378                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("utcco nversionti mezonecode ");
  9379                             }
  9380                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9381                             set
  9382                             {
  9383                                      this.OnP ropertyCha nging("UTC Conversion TimeZoneCo de");
  9384                                      this.Set AttributeV alue("utcc onversiont imezonecod e", value) ;
  9385                                      this.OnP ropertyCha nged("UTCC onversionT imeZoneCod e");
  9386                             }
  9387                    }
  9388                    
  9389                    ///  <summary>
  9390                    ///  Version nu mber of th e contact.
  9391                    ///  </summary>
  9392                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("vers ionnumber" )]
  9393                    publ ic System. Nullable<l ong> Versi onNumber
  9394                    {
  9395                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9396                             get
  9397                             {
  9398                                      return t his.GetAtt ributeValu e<System.N ullable<lo ng>>("vers ionnumber" );
  9399                             }
  9400                    }
  9401                    
  9402                    ///  <summary>
  9403                    ///  Type the c ontact's p rofessiona l or perso nal websit e or blog  URL.
  9404                    ///  </summary>
  9405                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("webs iteurl")]
  9406                    publ ic string  WebSiteUrl
  9407                    {
  9408                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9409                             get
  9410                             {
  9411                                      return t his.GetAtt ributeValu e<string>( "websiteur l");
  9412                             }
  9413                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9414                             set
  9415                             {
  9416                                      this.OnP ropertyCha nging("Web SiteUrl");
  9417                                      this.Set AttributeV alue("webs iteurl", v alue);
  9418                                      this.OnP ropertyCha nged("WebS iteUrl");
  9419                             }
  9420                    }
  9421                    
  9422                    ///  <summary>
  9423                    ///  Type the p honetic sp elling of  the contac t's first  name, if t he name is  specified  in Japane se, to mak e sure the  name is p ronounced  correctly  in phone c alls with  the contac t.
  9424                    ///  </summary>
  9425                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("yomi firstname" )]
  9426                    publ ic string  YomiFirstN ame
  9427                    {
  9428                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9429                             get
  9430                             {
  9431                                      return t his.GetAtt ributeValu e<string>( "yomifirst name");
  9432                             }
  9433                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9434                             set
  9435                             {
  9436                                      this.OnP ropertyCha nging("Yom iFirstName ");
  9437                                      this.Set AttributeV alue("yomi firstname" , value);
  9438                                      this.OnP ropertyCha nged("Yomi FirstName" );
  9439                             }
  9440                    }
  9441                    
  9442                    ///  <summary>
  9443                    ///  Shows the  combined Y omi first  and last n ames of th e contact  so that th e full pho netic name  can be di splayed in  views and  reports.
  9444                    ///  </summary>
  9445                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("yomi fullname") ]
  9446                    publ ic string  YomiFullNa me
  9447                    {
  9448                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9449                             get
  9450                             {
  9451                                      return t his.GetAtt ributeValu e<string>( "yomifulln ame");
  9452                             }
  9453                    }
  9454                    
  9455                    ///  <summary>
  9456                    ///  Type the p honetic sp elling of  the contac t's last n ame, if th e name is  specified  in Japanes e, to make  sure the  name is pr onounced c orrectly i n phone ca lls with t he contact .
  9457                    ///  </summary>
  9458                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("yomi lastname") ]
  9459                    publ ic string  YomiLastNa me
  9460                    {
  9461                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9462                             get
  9463                             {
  9464                                      return t his.GetAtt ributeValu e<string>( "yomilastn ame");
  9465                             }
  9466                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9467                             set
  9468                             {
  9469                                      this.OnP ropertyCha nging("Yom iLastName" );
  9470                                      this.Set AttributeV alue("yomi lastname",  value);
  9471                                      this.OnP ropertyCha nged("Yomi LastName") ;
  9472                             }
  9473                    }
  9474                    
  9475                    ///  <summary>
  9476                    ///  Type the p honetic sp elling of  the contac t's middle  name, if  the name i s specifie d in Japan ese, to ma ke sure th e name is  pronounced  correctly  in phone  calls with  the conta ct.
  9477                    ///  </summary>
  9478                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("yomi middlename ")]
  9479                    publ ic string  YomiMiddle Name
  9480                    {
  9481                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9482                             get
  9483                             {
  9484                                      return t his.GetAtt ributeValu e<string>( "yomimiddl ename");
  9485                             }
  9486                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9487                             set
  9488                             {
  9489                                      this.OnP ropertyCha nging("Yom iMiddleNam e");
  9490                                      this.Set AttributeV alue("yomi middlename ", value);
  9491                                      this.OnP ropertyCha nged("Yomi MiddleName ");
  9492                             }
  9493                    }
  9494                    
  9495                    ///  <summary>
  9496                    ///  1:N accoun t_primary_ contact
  9497                    ///  </summary>
  9498                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("ac count_prim ary_contac t")]
  9499                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.Ac count> acc ount_prima ry_contact
  9500                    {
  9501                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9502                             get
  9503                             {
  9504                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.A ccount>("a ccount_pri mary_conta ct", null) ;
  9505                             }
  9506                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9507                             set
  9508                             {
  9509                                      this.OnP ropertyCha nging("acc ount_prima ry_contact ");
  9510                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.Account> ("account_ primary_co ntact", nu ll, value) ;
  9511                                      this.OnP ropertyCha nged("acco unt_primar y_contact" );
  9512                             }
  9513                    }
  9514                    
  9515                    ///  <summary>
  9516                    ///  1:N contac t_customer _contacts
  9517                    ///  </summary>
  9518                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("co ntact_cust omer_conta cts", Micr osoft.Xrm. Sdk.Entity Role.Refer enced)]
  9519                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.Co ntact> Ref erencedcon tact_custo mer_contac ts
  9520                    {
  9521                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9522                             get
  9523                             {
  9524                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.C ontact>("c ontact_cus tomer_cont acts", Mic rosoft.Xrm .Sdk.Entit yRole.Refe renced);
  9525                             }
  9526                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9527                             set
  9528                             {
  9529                                      this.OnP ropertyCha nging("Ref erencedcon tact_custo mer_contac ts");
  9530                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.Contact> ("contact_ customer_c ontacts",  Microsoft. Xrm.Sdk.En tityRole.R eferenced,  value);
  9531                                      this.OnP ropertyCha nged("Refe rencedcont act_custom er_contact s");
  9532                             }
  9533                    }
  9534                    
  9535                    ///  <summary>
  9536                    ///  1:N contac t_master_c ontact
  9537                    ///  </summary>
  9538                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("co ntact_mast er_contact ", Microso ft.Xrm.Sdk .EntityRol e.Referenc ed)]
  9539                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.Co ntact> Ref erencedcon tact_maste r_contact
  9540                    {
  9541                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9542                             get
  9543                             {
  9544                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.C ontact>("c ontact_mas ter_contac t", Micros oft.Xrm.Sd k.EntityRo le.Referen ced);
  9545                             }
  9546                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9547                             set
  9548                             {
  9549                                      this.OnP ropertyCha nging("Ref erencedcon tact_maste r_contact" );
  9550                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.Contact> ("contact_ master_con tact", Mic rosoft.Xrm .Sdk.Entit yRole.Refe renced, va lue);
  9551                                      this.OnP ropertyCha nged("Refe rencedcont act_master _contact") ;
  9552                             }
  9553                    }
  9554                    
  9555                    ///  <summary>
  9556                    ///  1:N ppms_c ontact_car esite_Site Contact
  9557                    ///  </summary>
  9558                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_contact _caresite_ SiteContac t")]
  9559                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_caresit e> ppms_co ntact_care site_SiteC ontact
  9560                    {
  9561                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9562                             get
  9563                             {
  9564                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_caresi te>("ppms_ contact_ca resite_Sit eContact",  null);
  9565                             }
  9566                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9567                             set
  9568                             {
  9569                                      this.OnP ropertyCha nging("ppm s_contact_ caresite_S iteContact ");
  9570                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_car esite>("pp ms_contact _caresite_ SiteContac t", null,  value);
  9571                                      this.OnP ropertyCha nged("ppms _contact_c aresite_Si teContact" );
  9572                             }
  9573                    }
  9574                    
  9575                    ///  <summary>
  9576                    ///  N:1 contac t_customer _accounts
  9577                    ///  </summary>
  9578                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("pare ntcustomer id")]
  9579                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("co ntact_cust omer_accou nts")]
  9580                    publ ic VA.PPMS .Context.A ccount con tact_custo mer_accoun ts
  9581                    {
  9582                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9583                             get
  9584                             {
  9585                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.Acc ount>("con tact_custo mer_accoun ts", null) ;
  9586                             }
  9587                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9588                             set
  9589                             {
  9590                                      this.OnP ropertyCha nging("con tact_custo mer_accoun ts");
  9591                                      this.Set RelatedEnt ity<VA.PPM S.Context. Account>(" contact_cu stomer_acc ounts", nu ll, value) ;
  9592                                      this.OnP ropertyCha nged("cont act_custom er_account s");
  9593                             }
  9594                    }
  9595                    
  9596                    ///  <summary>
  9597                    ///  N:1 contac t_customer _contacts
  9598                    ///  </summary>
  9599                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("pare ntcustomer id")]
  9600                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("co ntact_cust omer_conta cts", Micr osoft.Xrm. Sdk.Entity Role.Refer encing)]
  9601                    publ ic VA.PPMS .Context.C ontact Ref erencingco ntact_cust omer_conta cts
  9602                    {
  9603                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9604                             get
  9605                             {
  9606                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.Con tact>("con tact_custo mer_contac ts", Micro soft.Xrm.S dk.EntityR ole.Refere ncing);
  9607                             }
  9608                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9609                             set
  9610                             {
  9611                                      this.OnP ropertyCha nging("Ref erencingco ntact_cust omer_conta cts");
  9612                                      this.Set RelatedEnt ity<VA.PPM S.Context. Contact>(" contact_cu stomer_con tacts", Mi crosoft.Xr m.Sdk.Enti tyRole.Ref erencing,  value);
  9613                                      this.OnP ropertyCha nged("Refe rencingcon tact_custo mer_contac ts");
  9614                             }
  9615                    }
  9616                    
  9617                    ///  <summary>
  9618                    ///  N:1 contac t_master_c ontact
  9619                    ///  </summary>
  9620                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("mast erid")]
  9621                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("co ntact_mast er_contact ", Microso ft.Xrm.Sdk .EntityRol e.Referenc ing)]
  9622                    publ ic VA.PPMS .Context.C ontact Ref erencingco ntact_mast er_contact
  9623                    {
  9624                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9625                             get
  9626                             {
  9627                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.Con tact>("con tact_maste r_contact" , Microsof t.Xrm.Sdk. EntityRole .Referenci ng);
  9628                             }
  9629                    }
  9630                    
  9631                    ///  <summary>
  9632                    ///  Constructo r for popu lating via  LINQ quer ies given  a LINQ ano nymous typ e
  9633                    ///  <param nam e="anonymo usType">LI NQ anonymo us type.</ param>
  9634                    ///  </summary>
  9635                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  9636                    publ ic Contact (object an onymousTyp e) : 
  9637                                      this()
  9638                    {
  9639                foreach  (var p in  anonymousT ype.GetTyp e().GetPro perties())
  9640                {
  9641                    var  value = p. GetValue(a nonymousTy pe, null);
  9642                    var  name = p.N ame.ToLowe r();
  9643                
  9644                    if ( name.EndsW ith("enum" ) && value .GetType() .BaseType  == typeof( System.Enu m))
  9645                    {
  9646                         value = ne w Microsof t.Xrm.Sdk. OptionSetV alue((int)  value);
  9647                         name = nam e.Remove(n ame.Length  - "enum". Length);
  9648                    }
  9649                
  9650                    swit ch (name)
  9651                    {
  9652                         case "id":
  9653                             base.I d = (Syste m.Guid)val ue;
  9654                             Attrib utes["cont actid"] =  base.Id;
  9655                             break;
  9656                         case "cont actid":
  9657                             var id  = (System .Nullable< System.Gui d>) value;
  9658                             if(id  == null){  continue;  }
  9659                             base.I d = id.Val ue;
  9660                             Attrib utes[name]  = base.Id ;
  9661                             break;
  9662                         case "form attedvalue s":
  9663                             // Add  Support f or Formatt edValues
  9664                             Format tedValues. AddRange(( Microsoft. Xrm.Sdk.Fo rmattedVal ueCollecti on)value);
  9665                             break;
  9666                         default:
  9667                             Attrib utes[name]  = value;
  9668                             break;
  9669                    }
  9670                }
  9671                    }
  9672                    
  9673                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("acco untrolecod e")]
  9674                    publ ic virtual  Contact_A ccountRole Code? Acco untRoleCod eEnum
  9675                    {
  9676                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9677                             get
  9678                             {
  9679                                      return ( (Contact_A ccountRole Code?)(Ent ityOptionS etEnum.Get Enum(this,  "accountr olecode")) );
  9680                             }
  9681                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9682                             set
  9683                             {
  9684                                      AccountR oleCode =  value.HasV alue ? new  Microsoft .Xrm.Sdk.O ptionSetVa lue((int)v alue) : nu ll;
  9685                             }
  9686                    }
  9687                    
  9688                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_addre sstypecode ")]
  9689                    publ ic virtual  Contact_A ddress1_Ad dressTypeC ode? Addre ss1_Addres sTypeCodeE num
  9690                    {
  9691                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9692                             get
  9693                             {
  9694                                      return ( (Contact_A ddress1_Ad dressTypeC ode?)(Enti tyOptionSe tEnum.GetE num(this,  "address1_ addresstyp ecode")));
  9695                             }
  9696                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9697                             set
  9698                             {
  9699                                      Address1 _AddressTy peCode = v alue.HasVa lue ? new  Microsoft. Xrm.Sdk.Op tionSetVal ue((int)va lue) : nul l;
  9700                             }
  9701                    }
  9702                    
  9703                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_freig httermscod e")]
  9704                    publ ic virtual  Contact_A ddress1_Fr eightTerms Code? Addr ess1_Freig htTermsCod eEnum
  9705                    {
  9706                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9707                             get
  9708                             {
  9709                                      return ( (Contact_A ddress1_Fr eightTerms Code?)(Ent ityOptionS etEnum.Get Enum(this,  "address1 _freightte rmscode")) );
  9710                             }
  9711                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9712                             set
  9713                             {
  9714                                      Address1 _FreightTe rmsCode =  value.HasV alue ? new  Microsoft .Xrm.Sdk.O ptionSetVa lue((int)v alue) : nu ll;
  9715                             }
  9716                    }
  9717                    
  9718                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess1_shipp ingmethodc ode")]
  9719                    publ ic virtual  Contact_A ddress1_Sh ippingMeth odCode? Ad dress1_Shi ppingMetho dCodeEnum
  9720                    {
  9721                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9722                             get
  9723                             {
  9724                                      return ( (Contact_A ddress1_Sh ippingMeth odCode?)(E ntityOptio nSetEnum.G etEnum(thi s, "addres s1_shippin gmethodcod e")));
  9725                             }
  9726                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9727                             set
  9728                             {
  9729                                      Address1 _ShippingM ethodCode  = value.Ha sValue ? n ew Microso ft.Xrm.Sdk .OptionSet Value((int )value) :  null;
  9730                             }
  9731                    }
  9732                    
  9733                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_addre sstypecode ")]
  9734                    publ ic virtual  Contact_A ddress2_Ad dressTypeC ode? Addre ss2_Addres sTypeCodeE num
  9735                    {
  9736                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9737                             get
  9738                             {
  9739                                      return ( (Contact_A ddress2_Ad dressTypeC ode?)(Enti tyOptionSe tEnum.GetE num(this,  "address2_ addresstyp ecode")));
  9740                             }
  9741                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9742                             set
  9743                             {
  9744                                      Address2 _AddressTy peCode = v alue.HasVa lue ? new  Microsoft. Xrm.Sdk.Op tionSetVal ue((int)va lue) : nul l;
  9745                             }
  9746                    }
  9747                    
  9748                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_freig httermscod e")]
  9749                    publ ic virtual  Contact_A ddress2_Fr eightTerms Code? Addr ess2_Freig htTermsCod eEnum
  9750                    {
  9751                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9752                             get
  9753                             {
  9754                                      return ( (Contact_A ddress2_Fr eightTerms Code?)(Ent ityOptionS etEnum.Get Enum(this,  "address2 _freightte rmscode")) );
  9755                             }
  9756                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9757                             set
  9758                             {
  9759                                      Address2 _FreightTe rmsCode =  value.HasV alue ? new  Microsoft .Xrm.Sdk.O ptionSetVa lue((int)v alue) : nu ll;
  9760                             }
  9761                    }
  9762                    
  9763                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess2_shipp ingmethodc ode")]
  9764                    publ ic virtual  Contact_A ddress2_Sh ippingMeth odCode? Ad dress2_Shi ppingMetho dCodeEnum
  9765                    {
  9766                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9767                             get
  9768                             {
  9769                                      return ( (Contact_A ddress2_Sh ippingMeth odCode?)(E ntityOptio nSetEnum.G etEnum(thi s, "addres s2_shippin gmethodcod e")));
  9770                             }
  9771                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9772                             set
  9773                             {
  9774                                      Address2 _ShippingM ethodCode  = value.Ha sValue ? n ew Microso ft.Xrm.Sdk .OptionSet Value((int )value) :  null;
  9775                             }
  9776                    }
  9777                    
  9778                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess3_addre sstypecode ")]
  9779                    publ ic virtual  Contact_A ddress3_Ad dressTypeC ode? Addre ss3_Addres sTypeCodeE num
  9780                    {
  9781                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9782                             get
  9783                             {
  9784                                      return ( (Contact_A ddress3_Ad dressTypeC ode?)(Enti tyOptionSe tEnum.GetE num(this,  "address3_ addresstyp ecode")));
  9785                             }
  9786                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9787                             set
  9788                             {
  9789                                      Address3 _AddressTy peCode = v alue.HasVa lue ? new  Microsoft. Xrm.Sdk.Op tionSetVal ue((int)va lue) : nul l;
  9790                             }
  9791                    }
  9792                    
  9793                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess3_freig httermscod e")]
  9794                    publ ic virtual  Contact_A ddress3_Fr eightTerms Code? Addr ess3_Freig htTermsCod eEnum
  9795                    {
  9796                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9797                             get
  9798                             {
  9799                                      return ( (Contact_A ddress3_Fr eightTerms Code?)(Ent ityOptionS etEnum.Get Enum(this,  "address3 _freightte rmscode")) );
  9800                             }
  9801                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9802                             set
  9803                             {
  9804                                      Address3 _FreightTe rmsCode =  value.HasV alue ? new  Microsoft .Xrm.Sdk.O ptionSetVa lue((int)v alue) : nu ll;
  9805                             }
  9806                    }
  9807                    
  9808                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("addr ess3_shipp ingmethodc ode")]
  9809                    publ ic virtual  Contact_A ddress3_Sh ippingMeth odCode? Ad dress3_Shi ppingMetho dCodeEnum
  9810                    {
  9811                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9812                             get
  9813                             {
  9814                                      return ( (Contact_A ddress3_Sh ippingMeth odCode?)(E ntityOptio nSetEnum.G etEnum(thi s, "addres s3_shippin gmethodcod e")));
  9815                             }
  9816                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9817                             set
  9818                             {
  9819                                      Address3 _ShippingM ethodCode  = value.Ha sValue ? n ew Microso ft.Xrm.Sdk .OptionSet Value((int )value) :  null;
  9820                             }
  9821                    }
  9822                    
  9823                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("cust omersizeco de")]
  9824                    publ ic virtual  Contact_C ustomerSiz eCode? Cus tomerSizeC odeEnum
  9825                    {
  9826                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9827                             get
  9828                             {
  9829                                      return ( (Contact_C ustomerSiz eCode?)(En tityOption SetEnum.Ge tEnum(this , "custome rsizecode" )));
  9830                             }
  9831                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9832                             set
  9833                             {
  9834                                      Customer SizeCode =  value.Has Value ? ne w Microsof t.Xrm.Sdk. OptionSetV alue((int) value) : n ull;
  9835                             }
  9836                    }
  9837                    
  9838                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("cust omertypeco de")]
  9839                    publ ic virtual  Contact_C ustomerTyp eCode? Cus tomerTypeC odeEnum
  9840                    {
  9841                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9842                             get
  9843                             {
  9844                                      return ( (Contact_C ustomerTyp eCode?)(En tityOption SetEnum.Ge tEnum(this , "custome rtypecode" )));
  9845                             }
  9846                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9847                             set
  9848                             {
  9849                                      Customer TypeCode =  value.Has Value ? ne w Microsof t.Xrm.Sdk. OptionSetV alue((int) value) : n ull;
  9850                             }
  9851                    }
  9852                    
  9853                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("educ ationcode" )]
  9854                    publ ic virtual  Contact_E ducationCo de? Educat ionCodeEnu m
  9855                    {
  9856                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9857                             get
  9858                             {
  9859                                      return ( (Contact_E ducationCo de?)(Entit yOptionSet Enum.GetEn um(this, " educationc ode")));
  9860                             }
  9861                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9862                             set
  9863                             {
  9864                                      Educatio nCode = va lue.HasVal ue ? new M icrosoft.X rm.Sdk.Opt ionSetValu e((int)val ue) : null ;
  9865                             }
  9866                    }
  9867                    
  9868                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("fami lystatusco de")]
  9869                    publ ic virtual  Contact_F amilyStatu sCode? Fam ilyStatusC odeEnum
  9870                    {
  9871                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9872                             get
  9873                             {
  9874                                      return ( (Contact_F amilyStatu sCode?)(En tityOption SetEnum.Ge tEnum(this , "familys tatuscode" )));
  9875                             }
  9876                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9877                             set
  9878                             {
  9879                                      FamilySt atusCode =  value.Has Value ? ne w Microsof t.Xrm.Sdk. OptionSetV alue((int) value) : n ull;
  9880                             }
  9881                    }
  9882                    
  9883                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("gend ercode")]
  9884                    publ ic virtual  Contact_G enderCode?  GenderCod eEnum
  9885                    {
  9886                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9887                             get
  9888                             {
  9889                                      return ( (Contact_G enderCode? )(EntityOp tionSetEnu m.GetEnum( this, "gen dercode")) );
  9890                             }
  9891                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9892                             set
  9893                             {
  9894                                      GenderCo de = value .HasValue  ? new Micr osoft.Xrm. Sdk.Option SetValue(( int)value)  : null;
  9895                             }
  9896                    }
  9897                    
  9898                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("hasc hildrencod e")]
  9899                    publ ic virtual  Contact_H asChildren Code? HasC hildrenCod eEnum
  9900                    {
  9901                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9902                             get
  9903                             {
  9904                                      return ( (Contact_H asChildren Code?)(Ent ityOptionS etEnum.Get Enum(this,  "haschild rencode")) );
  9905                             }
  9906                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9907                             set
  9908                             {
  9909                                      HasChild renCode =  value.HasV alue ? new  Microsoft .Xrm.Sdk.O ptionSetVa lue((int)v alue) : nu ll;
  9910                             }
  9911                    }
  9912                    
  9913                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("lead sourcecode ")]
  9914                    publ ic virtual  Contact_L eadSourceC ode? LeadS ourceCodeE num
  9915                    {
  9916                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9917                             get
  9918                             {
  9919                                      return ( (Contact_L eadSourceC ode?)(Enti tyOptionSe tEnum.GetE num(this,  "leadsourc ecode")));
  9920                             }
  9921                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9922                             set
  9923                             {
  9924                                      LeadSour ceCode = v alue.HasVa lue ? new  Microsoft. Xrm.Sdk.Op tionSetVal ue((int)va lue) : nul l;
  9925                             }
  9926                    }
  9927                    
  9928                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("paym enttermsco de")]
  9929                    publ ic virtual  Contact_P aymentTerm sCode? Pay mentTermsC odeEnum
  9930                    {
  9931                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9932                             get
  9933                             {
  9934                                      return ( (Contact_P aymentTerm sCode?)(En tityOption SetEnum.Ge tEnum(this , "payment termscode" )));
  9935                             }
  9936                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9937                             set
  9938                             {
  9939                                      PaymentT ermsCode =  value.Has Value ? ne w Microsof t.Xrm.Sdk. OptionSetV alue((int) value) : n ull;
  9940                             }
  9941                    }
  9942                    
  9943                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _addressde liveryfail urecode")]
  9944                    publ ic virtual  Contact_p pms_addres sdeliveryf ailurecode ? ppms_add ressdelive ryfailurec odeEnum
  9945                    {
  9946                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9947                             get
  9948                             {
  9949                                      return ( (Contact_p pms_addres sdeliveryf ailurecode ?)(EntityO ptionSetEn um.GetEnum (this, "pp ms_address deliveryfa ilurecode" )));
  9950                             }
  9951                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9952                             set
  9953                             {
  9954                                      ppms_add ressdelive ryfailurec ode = valu e.HasValue  ? new Mic rosoft.Xrm .Sdk.Optio nSetValue( (int)value ) : null;
  9955                             }
  9956                    }
  9957                    
  9958                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _addressin validreaso n")]
  9959                    publ ic virtual  Contact_p pms_addres sinvalidre ason? ppms _addressin validreaso nEnum
  9960                    {
  9961                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9962                             get
  9963                             {
  9964                                      return ( (Contact_p pms_addres sinvalidre ason?)(Ent ityOptionS etEnum.Get Enum(this,  "ppms_add ressinvali dreason")) );
  9965                             }
  9966                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9967                             set
  9968                             {
  9969                                      ppms_add ressinvali dreason =  value.HasV alue ? new  Microsoft .Xrm.Sdk.O ptionSetVa lue((int)v alue) : nu ll;
  9970                             }
  9971                    }
  9972                    
  9973                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _deliverys tatus")]
  9974                    publ ic virtual  Contact_p pms_delive rystatus?  ppms_deliv erystatusE num
  9975                    {
  9976                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9977                             get
  9978                             {
  9979                                      return ( (Contact_p pms_delive rystatus?) (EntityOpt ionSetEnum .GetEnum(t his, "ppms _deliverys tatus")));
  9980                             }
  9981                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9982                             set
  9983                             {
  9984                                      ppms_del iverystatu s = value. HasValue ?  new Micro soft.Xrm.S dk.OptionS etValue((i nt)value)  : null;
  9985                             }
  9986                    }
  9987                    
  9988                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _emailprio rity")]
  9989                    publ ic virtual  Contact_p pms_emailp riority? p pms_emailp riorityEnu m
  9990                    {
  9991                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9992                             get
  9993                             {
  9994                                      return ( (Contact_p pms_emailp riority?)( EntityOpti onSetEnum. GetEnum(th is, "ppms_ emailprior ity")));
  9995                             }
  9996                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  9997                             set
  9998                             {
  9999                                      ppms_ema ilpriority  = value.H asValue ?  new Micros oft.Xrm.Sd k.OptionSe tValue((in t)value) :  null;
  10000                             }
  10001                    }
  10002                    
  10003                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _identifie rtype")]
  10004                    publ ic virtual  Contact_p pms_identi fiertype?  ppms_ident ifiertypeE num
  10005                    {
  10006                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10007                             get
  10008                             {
  10009                                      return ( (Contact_p pms_identi fiertype?) (EntityOpt ionSetEnum .GetEnum(t his, "ppms _identifie rtype")));
  10010                             }
  10011                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10012                             set
  10013                             {
  10014                                      ppms_ide ntifiertyp e = value. HasValue ?  new Micro soft.Xrm.S dk.OptionS etValue((i nt)value)  : null;
  10015                             }
  10016                    }
  10017                    
  10018                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _phoneprio rity")]
  10019                    publ ic virtual  Contact_p pms_phonep riority? p pms_phonep riorityEnu m
  10020                    {
  10021                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10022                             get
  10023                             {
  10024                                      return ( (Contact_p pms_phonep riority?)( EntityOpti onSetEnum. GetEnum(th is, "ppms_ phoneprior ity")));
  10025                             }
  10026                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10027                             set
  10028                             {
  10029                                      ppms_pho nepriority  = value.H asValue ?  new Micros oft.Xrm.Sd k.OptionSe tValue((in t)value) :  null;
  10030                             }
  10031                    }
  10032                    
  10033                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _phonequal ity")]
  10034                    publ ic virtual  Contact_p pms_phoneq uality? pp ms_phonequ alityEnum
  10035                    {
  10036                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10037                             get
  10038                             {
  10039                                      return ( (Contact_p pms_phoneq uality?)(E ntityOptio nSetEnum.G etEnum(thi s, "ppms_p honequalit y")));
  10040                             }
  10041                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10042                             set
  10043                             {
  10044                                      ppms_pho nequality  = value.Ha sValue ? n ew Microso ft.Xrm.Sdk .OptionSet Value((int )value) :  null;
  10045                             }
  10046                    }
  10047                    
  10048                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("pref erredappoi ntmentdayc ode")]
  10049                    publ ic virtual  Contact_P referredAp pointmentD ayCode? Pr eferredApp ointmentDa yCodeEnum
  10050                    {
  10051                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10052                             get
  10053                             {
  10054                                      return ( (Contact_P referredAp pointmentD ayCode?)(E ntityOptio nSetEnum.G etEnum(thi s, "prefer redappoint mentdaycod e")));
  10055                             }
  10056                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10057                             set
  10058                             {
  10059                                      Preferre dAppointme ntDayCode  = value.Ha sValue ? n ew Microso ft.Xrm.Sdk .OptionSet Value((int )value) :  null;
  10060                             }
  10061                    }
  10062                    
  10063                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("pref erredappoi ntmenttime code")]
  10064                    publ ic virtual  Contact_P referredAp pointmentT imeCode? P referredAp pointmentT imeCodeEnu m
  10065                    {
  10066                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10067                             get
  10068                             {
  10069                                      return ( (Contact_P referredAp pointmentT imeCode?)( EntityOpti onSetEnum. GetEnum(th is, "prefe rredappoin tmenttimec ode")));
  10070                             }
  10071                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10072                             set
  10073                             {
  10074                                      Preferre dAppointme ntTimeCode  = value.H asValue ?  new Micros oft.Xrm.Sd k.OptionSe tValue((in t)value) :  null;
  10075                             }
  10076                    }
  10077                    
  10078                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("pref erredconta ctmethodco de")]
  10079                    publ ic virtual  Contact_P referredCo ntactMetho dCode? Pre ferredCont actMethodC odeEnum
  10080                    {
  10081                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10082                             get
  10083                             {
  10084                                      return ( (Contact_P referredCo ntactMetho dCode?)(En tityOption SetEnum.Ge tEnum(this , "preferr edcontactm ethodcode" )));
  10085                             }
  10086                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10087                             set
  10088                             {
  10089                                      Preferre dContactMe thodCode =  value.Has Value ? ne w Microsof t.Xrm.Sdk. OptionSetV alue((int) value) : n ull;
  10090                             }
  10091                    }
  10092                    
  10093                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ship pingmethod code")]
  10094                    publ ic virtual  Contact_S hippingMet hodCode? S hippingMet hodCodeEnu m
  10095                    {
  10096                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10097                             get
  10098                             {
  10099                                      return ( (Contact_S hippingMet hodCode?)( EntityOpti onSetEnum. GetEnum(th is, "shipp ingmethodc ode")));
  10100                             }
  10101                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10102                             set
  10103                             {
  10104                                      Shipping MethodCode  = value.H asValue ?  new Micros oft.Xrm.Sd k.OptionSe tValue((in t)value) :  null;
  10105                             }
  10106                    }
  10107                    
  10108                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  10109                    publ ic virtual  Contact_S tatusCode?  StatusCod eEnum
  10110                    {
  10111                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10112                             get
  10113                             {
  10114                                      return ( (Contact_S tatusCode? )(EntityOp tionSetEnu m.GetEnum( this, "sta tuscode")) );
  10115                             }
  10116                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10117                             set
  10118                             {
  10119                                      StatusCo de = value .HasValue  ? new Micr osoft.Xrm. Sdk.Option SetValue(( int)value)  : null;
  10120                             }
  10121                    }
  10122                    
  10123                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("terr itorycode" )]
  10124                    publ ic virtual  Contact_T erritoryCo de? Territ oryCodeEnu m
  10125                    {
  10126                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10127                             get
  10128                             {
  10129                                      return ( (Contact_T erritoryCo de?)(Entit yOptionSet Enum.GetEn um(this, " territoryc ode")));
  10130                             }
  10131                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10132                             set
  10133                             {
  10134                                      Territor yCode = va lue.HasVal ue ? new M icrosoft.X rm.Sdk.Opt ionSetValu e((int)val ue) : null ;
  10135                             }
  10136                    }
  10137           }
  10138           
  10139           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  10140           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  10141           pu blic enum  ppms_agree mentprovid erState
  10142           {
  10143                    
  10144                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  10145                    Acti ve = 0,
  10146                    
  10147                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  10148                    Inac tive = 1,
  10149           }
  10150           
  10151           // / <summary >
  10152           // / Agreemen t Provider s
  10153           // / </summar y>
  10154           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  10155           [M icrosoft.X rm.Sdk.Cli ent.Entity LogicalNam eAttribute ("ppms_agr eementprov ider")]
  10156           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  10157           pu blic parti al class p pms_agreem entprovide r : Micros oft.Xrm.Sd k.Entity,  System.Com ponentMode l.INotifyP ropertyCha nging, Sys tem.Compon entModel.I NotifyProp ertyChange d
  10158           {
  10159                    
  10160                    ///  <summary>
  10161                    ///  Default Co nstructor.
  10162                    ///  </summary>
  10163                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  10164                    publ ic ppms_ag reementpro vider() : 
  10165                                      base(Ent ityLogical Name)
  10166                    {
  10167                    }
  10168                    
  10169                    publ ic const s tring Enti tyLogicalN ame = "ppm s_agreemen tprovider" ;
  10170                    
  10171                    publ ic const i nt EntityT ypeCode =  10019;
  10172                    
  10173                    publ ic event S ystem.Comp onentModel .PropertyC hangedEven tHandler P ropertyCha nged;
  10174                    
  10175                    publ ic event S ystem.Comp onentModel .PropertyC hangingEve ntHandler  PropertyCh anging;
  10176                    
  10177                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  10178                    priv ate void O nPropertyC hanged(str ing proper tyName)
  10179                    {
  10180                             if ((t his.Proper tyChanged  != null))
  10181                             {
  10182                                      this.Pro pertyChang ed(this, n ew System. ComponentM odel.Prope rtyChanged EventArgs( propertyNa me));
  10183                             }
  10184                    }
  10185                    
  10186                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  10187                    priv ate void O nPropertyC hanging(st ring prope rtyName)
  10188                    {
  10189                             if ((t his.Proper tyChanging  != null))
  10190                             {
  10191                                      this.Pro pertyChang ing(this,  new System .Component Model.Prop ertyChangi ngEventArg s(property Name));
  10192                             }
  10193                    }
  10194                    
  10195                    ///  <summary>
  10196                    ///  Unique ide ntifier of  the user  who create d the reco rd.
  10197                    ///  </summary>
  10198                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedby")]
  10199                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedBy
  10200                    {
  10201                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10202                             get
  10203                             {
  10204                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedby");
  10205                             }
  10206                    }
  10207                    
  10208                    ///  <summary>
  10209                    ///  Date and t ime when t he record  was create d.
  10210                    ///  </summary>
  10211                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedon")]
  10212                    publ ic System. Nullable<S ystem.Date Time> Crea tedOn
  10213                    {
  10214                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10215                             get
  10216                             {
  10217                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("cre atedon");
  10218                             }
  10219                    }
  10220                    
  10221                    ///  <summary>
  10222                    ///  Unique ide ntifier of  the deleg ate user w ho created  the recor d.
  10223                    ///  </summary>
  10224                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedonbehal fby")]
  10225                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedOnBeha lfBy
  10226                    {
  10227                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10228                             get
  10229                             {
  10230                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedonbeh alfby");
  10231                             }
  10232                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10233                             set
  10234                             {
  10235                                      this.OnP ropertyCha nging("Cre atedOnBeha lfBy");
  10236                                      this.Set AttributeV alue("crea tedonbehal fby", valu e);
  10237                                      this.OnP ropertyCha nged("Crea tedOnBehal fBy");
  10238                             }
  10239                    }
  10240                    
  10241                    ///  <summary>
  10242                    ///  Sequence n umber of t he import  that creat ed this re cord.
  10243                    ///  </summary>
  10244                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("impo rtsequence number")]
  10245                    publ ic System. Nullable<i nt> Import SequenceNu mber
  10246                    {
  10247                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10248                             get
  10249                             {
  10250                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("impor tsequencen umber");
  10251                             }
  10252                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10253                             set
  10254                             {
  10255                                      this.OnP ropertyCha nging("Imp ortSequenc eNumber");
  10256                                      this.Set AttributeV alue("impo rtsequence number", v alue);
  10257                                      this.OnP ropertyCha nged("Impo rtSequence Number");
  10258                             }
  10259                    }
  10260                    
  10261                    ///  <summary>
  10262                    ///  Unique ide ntifier of  the user  who modifi ed the rec ord.
  10263                    ///  </summary>
  10264                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedby")]
  10265                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedBy
  10266                    {
  10267                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10268                             get
  10269                             {
  10270                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedby") ;
  10271                             }
  10272                    }
  10273                    
  10274                    ///  <summary>
  10275                    ///  Date and t ime when t he record  was modifi ed.
  10276                    ///  </summary>
  10277                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedon")]
  10278                    publ ic System. Nullable<S ystem.Date Time> Modi fiedOn
  10279                    {
  10280                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10281                             get
  10282                             {
  10283                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("mod ifiedon");
  10284                             }
  10285                    }
  10286                    
  10287                    ///  <summary>
  10288                    ///  Unique ide ntifier of  the deleg ate user w ho modifie d the reco rd.
  10289                    ///  </summary>
  10290                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedonbeha lfby")]
  10291                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedOnBeh alfBy
  10292                    {
  10293                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10294                             get
  10295                             {
  10296                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedonbe halfby");
  10297                             }
  10298                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10299                             set
  10300                             {
  10301                                      this.OnP ropertyCha nging("Mod ifiedOnBeh alfBy");
  10302                                      this.Set AttributeV alue("modi fiedonbeha lfby", val ue);
  10303                                      this.OnP ropertyCha nged("Modi fiedOnBeha lfBy");
  10304                             }
  10305                    }
  10306                    
  10307                    ///  <summary>
  10308                    ///  Date and t ime that t he record  was migrat ed.
  10309                    ///  </summary>
  10310                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("over riddencrea tedon")]
  10311                    publ ic System. Nullable<S ystem.Date Time> Over riddenCrea tedOn
  10312                    {
  10313                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10314                             get
  10315                             {
  10316                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ove rriddencre atedon");
  10317                             }
  10318                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10319                             set
  10320                             {
  10321                                      this.OnP ropertyCha nging("Ove rriddenCre atedOn");
  10322                                      this.Set AttributeV alue("over riddencrea tedon", va lue);
  10323                                      this.OnP ropertyCha nged("Over riddenCrea tedOn");
  10324                             }
  10325                    }
  10326                    
  10327                    ///  <summary>
  10328                    ///  Owner Id
  10329                    ///  </summary>
  10330                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owne rid")]
  10331                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own erId
  10332                    {
  10333                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10334                             get
  10335                             {
  10336                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow nerid");
  10337                             }
  10338                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10339                             set
  10340                             {
  10341                                      this.OnP ropertyCha nging("Own erId");
  10342                                      this.Set AttributeV alue("owne rid", valu e);
  10343                                      this.OnP ropertyCha nged("Owne rId");
  10344                             }
  10345                    }
  10346                    
  10347                    ///  <summary>
  10348                    ///  Unique ide ntifier fo r the busi ness unit  that owns  the record
  10349                    ///  </summary>
  10350                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngbusiness unit")]
  10351                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingBusines sUnit
  10352                    {
  10353                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10354                             get
  10355                             {
  10356                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningbusine ssunit");
  10357                             }
  10358                    }
  10359                    
  10360                    ///  <summary>
  10361                    ///  Unique ide ntifier fo r the team  that owns  the recor d.
  10362                    ///  </summary>
  10363                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngteam")]
  10364                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingTeam
  10365                    {
  10366                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10367                             get
  10368                             {
  10369                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningteam") ;
  10370                             }
  10371                    }
  10372                    
  10373                    ///  <summary>
  10374                    ///  Unique ide ntifier fo r the user  that owns  the recor d.
  10375                    ///  </summary>
  10376                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni nguser")]
  10377                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingUser
  10378                    {
  10379                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10380                             get
  10381                             {
  10382                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ninguser") ;
  10383                             }
  10384                    }
  10385                    
  10386                    ///  <summary>
  10387                    ///  Unique ide ntifier fo r entity i nstances
  10388                    ///  </summary>
  10389                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _agreement providerid ")]
  10390                    publ ic System. Nullable<S ystem.Guid > ppms_agr eementprov iderId
  10391                    {
  10392                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10393                             get
  10394                             {
  10395                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("ppms_ag reementpro viderid");
  10396                             }
  10397                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10398                             set
  10399                             {
  10400                                      this.OnP ropertyCha nging("ppm s_agreemen tproviderI d");
  10401                                      this.Set AttributeV alue("ppms _agreement providerid ", value);
  10402                                      if (valu e.HasValue )
  10403                                      {
  10404                                               base.Id =  value.Valu e;
  10405                                      }
  10406                                      else
  10407                                      {
  10408                                               base.Id =  System.Gui d.Empty;
  10409                                      }
  10410                                      this.OnP ropertyCha nged("ppms _agreement providerId ");
  10411                             }
  10412                    }
  10413                    
  10414                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _agreement providerid ")]
  10415                    publ ic overrid e System.G uid Id
  10416                    {
  10417                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10418                             get
  10419                             {
  10420                                      return b ase.Id;
  10421                             }
  10422                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10423                             set
  10424                             {
  10425                                      this.ppm s_agreemen tproviderI d = value;
  10426                             }
  10427                    }
  10428                    
  10429                    ///  <summary>
  10430                    ///  External P rovider
  10431                    ///  </summary>
  10432                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _externalp rovider")]
  10433                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_External Provider
  10434                    {
  10435                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10436                             get
  10437                             {
  10438                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_externa lprovider" );
  10439                             }
  10440                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10441                             set
  10442                             {
  10443                                      this.OnP ropertyCha nging("ppm s_External Provider") ;
  10444                                      this.Set AttributeV alue("ppms _externalp rovider",  value);
  10445                                      this.OnP ropertyCha nged("ppms _ExternalP rovider");
  10446                             }
  10447                    }
  10448                    
  10449                    ///  <summary>
  10450                    /// 
  10451                    ///  </summary>
  10452                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _name")]
  10453                    publ ic string  ppms_name
  10454                    {
  10455                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10456                             get
  10457                             {
  10458                                      return t his.GetAtt ributeValu e<string>( "ppms_name ");
  10459                             }
  10460                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10461                             set
  10462                             {
  10463                                      this.OnP ropertyCha nging("ppm s_name");
  10464                                      this.Set AttributeV alue("ppms _name", va lue);
  10465                                      this.OnP ropertyCha nged("ppms _name");
  10466                             }
  10467                    }
  10468                    
  10469                    ///  <summary>
  10470                    ///  Provider A greement
  10471                    ///  </summary>
  10472                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providera greement") ]
  10473                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_Provider Agreement
  10474                    {
  10475                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10476                             get
  10477                             {
  10478                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_provide ragreement ");
  10479                             }
  10480                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10481                             set
  10482                             {
  10483                                      this.OnP ropertyCha nging("ppm s_Provider Agreement" );
  10484                                      this.Set AttributeV alue("ppms _providera greement",  value);
  10485                                      this.OnP ropertyCha nged("ppms _ProviderA greement") ;
  10486                             }
  10487                    }
  10488                    
  10489                    ///  <summary>
  10490                    ///  Provider G roup
  10491                    ///  </summary>
  10492                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providerg roup")]
  10493                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_Provider Group
  10494                    {
  10495                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10496                             get
  10497                             {
  10498                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_provide rgroup");
  10499                             }
  10500                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10501                             set
  10502                             {
  10503                                      this.OnP ropertyCha nging("ppm s_Provider Group");
  10504                                      this.Set AttributeV alue("ppms _providerg roup", val ue);
  10505                                      this.OnP ropertyCha nged("ppms _ProviderG roup");
  10506                             }
  10507                    }
  10508                    
  10509                    ///  <summary>
  10510                    ///  Provider S ervice
  10511                    ///  </summary>
  10512                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providers ervice")]
  10513                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_provider service
  10514                    {
  10515                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10516                             get
  10517                             {
  10518                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_provide rservice") ;
  10519                             }
  10520                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10521                             set
  10522                             {
  10523                                      this.OnP ropertyCha nging("ppm s_provider service");
  10524                                      this.Set AttributeV alue("ppms _providers ervice", v alue);
  10525                                      this.OnP ropertyCha nged("ppms _providers ervice");
  10526                             }
  10527                    }
  10528                    
  10529                    ///  <summary>
  10530                    ///  Selected N PI
  10531                    ///  </summary>
  10532                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _selectedn pi")]
  10533                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_Selected NPI
  10534                    {
  10535                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10536                             get
  10537                             {
  10538                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_selecte dnpi");
  10539                             }
  10540                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10541                             set
  10542                             {
  10543                                      this.OnP ropertyCha nging("ppm s_Selected NPI");
  10544                                      this.Set AttributeV alue("ppms _selectedn pi", value );
  10545                                      this.OnP ropertyCha nged("ppms _SelectedN PI");
  10546                             }
  10547                    }
  10548                    
  10549                    ///  <summary>
  10550                    ///  VA Provide r Relation ship
  10551                    ///  </summary>
  10552                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _vaprovide rrelations hipid")]
  10553                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_VAProvid erRelation shipId
  10554                    {
  10555                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10556                             get
  10557                             {
  10558                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_vaprovi derrelatio nshipid");
  10559                             }
  10560                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10561                             set
  10562                             {
  10563                                      this.OnP ropertyCha nging("ppm s_VAProvid erRelation shipId");
  10564                                      this.Set AttributeV alue("ppms _vaprovide rrelations hipid", va lue);
  10565                                      this.OnP ropertyCha nged("ppms _VAProvide rRelations hipId");
  10566                             }
  10567                    }
  10568                    
  10569                    ///  <summary>
  10570                    ///  Status of  the Agreem ent Provid er
  10571                    ///  </summary>
  10572                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat ecode")]
  10573                    publ ic System. Nullable<V A.PPMS.Con text.ppms_ agreementp roviderSta te> statec ode
  10574                    {
  10575                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10576                             get
  10577                             {
  10578                                      Microsof t.Xrm.Sdk. OptionSetV alue optio nSet = thi s.GetAttri buteValue< Microsoft. Xrm.Sdk.Op tionSetVal ue>("state code");
  10579                                      if ((opt ionSet !=  null))
  10580                                      {
  10581                                               return ((V A.PPMS.Con text.ppms_ agreementp roviderSta te)(System .Enum.ToOb ject(typeo f(VA.PPMS. Context.pp ms_agreeme ntprovider State), op tionSet.Va lue)));
  10582                                      }
  10583                                      else
  10584                                      {
  10585                                               return nul l;
  10586                                      }
  10587                             }
  10588                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10589                             set
  10590                             {
  10591                                      this.OnP ropertyCha nging("sta tecode");
  10592                                      if ((val ue == null ))
  10593                                      {
  10594                                               this.SetAt tributeVal ue("statec ode", null );
  10595                                      }
  10596                                      else
  10597                                      {
  10598                                               this.SetAt tributeVal ue("statec ode", new  Microsoft. Xrm.Sdk.Op tionSetVal ue(((int)( value))));
  10599                                      }
  10600                                      this.OnP ropertyCha nged("stat ecode");
  10601                             }
  10602                    }
  10603                    
  10604                    ///  <summary>
  10605                    ///  Reason for  the statu s of the A greement P rovider
  10606                    ///  </summary>
  10607                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  10608                    publ ic Microso ft.Xrm.Sdk .OptionSet Value stat uscode
  10609                    {
  10610                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10611                             get
  10612                             {
  10613                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("sta tuscode");
  10614                             }
  10615                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10616                             set
  10617                             {
  10618                                      this.OnP ropertyCha nging("sta tuscode");
  10619                                      this.Set AttributeV alue("stat uscode", v alue);
  10620                                      this.OnP ropertyCha nged("stat uscode");
  10621                             }
  10622                    }
  10623                    
  10624                    ///  <summary>
  10625                    ///  For intern al use onl y.
  10626                    ///  </summary>
  10627                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("time zoneruleve rsionnumbe r")]
  10628                    publ ic System. Nullable<i nt> TimeZo neRuleVers ionNumber
  10629                    {
  10630                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10631                             get
  10632                             {
  10633                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("timez onerulever sionnumber ");
  10634                             }
  10635                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10636                             set
  10637                             {
  10638                                      this.OnP ropertyCha nging("Tim eZoneRuleV ersionNumb er");
  10639                                      this.Set AttributeV alue("time zoneruleve rsionnumbe r", value) ;
  10640                                      this.OnP ropertyCha nged("Time ZoneRuleVe rsionNumbe r");
  10641                             }
  10642                    }
  10643                    
  10644                    ///  <summary>
  10645                    ///  Time zone  code that  was in use  when the  record was  created.
  10646                    ///  </summary>
  10647                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("utcc onversiont imezonecod e")]
  10648                    publ ic System. Nullable<i nt> UTCCon versionTim eZoneCode
  10649                    {
  10650                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10651                             get
  10652                             {
  10653                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("utcco nversionti mezonecode ");
  10654                             }
  10655                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10656                             set
  10657                             {
  10658                                      this.OnP ropertyCha nging("UTC Conversion TimeZoneCo de");
  10659                                      this.Set AttributeV alue("utcc onversiont imezonecod e", value) ;
  10660                                      this.OnP ropertyCha nged("UTCC onversionT imeZoneCod e");
  10661                             }
  10662                    }
  10663                    
  10664                    ///  <summary>
  10665                    /// 
  10666                    ///  </summary>
  10667                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("vers ionnumber" )]
  10668                    publ ic System. Nullable<l ong> Versi onNumber
  10669                    {
  10670                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10671                             get
  10672                             {
  10673                                      return t his.GetAtt ributeValu e<System.N ullable<lo ng>>("vers ionnumber" );
  10674                             }
  10675                    }
  10676                    
  10677                    ///  <summary>
  10678                    ///  N:1 ppms_a ccount_agr eementprov ider_Exter nalProvide r
  10679                    ///  </summary>
  10680                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _externalp rovider")]
  10681                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_account _agreement provider_E xternalPro vider")]
  10682                    publ ic VA.PPMS .Context.A ccount ppm s_account_ agreementp rovider_Ex ternalProv ider
  10683                    {
  10684                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10685                             get
  10686                             {
  10687                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.Acc ount>("ppm s_account_ agreementp rovider_Ex ternalProv ider", nul l);
  10688                             }
  10689                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10690                             set
  10691                             {
  10692                                      this.OnP ropertyCha nging("ppm s_account_ agreementp rovider_Ex ternalProv ider");
  10693                                      this.Set RelatedEnt ity<VA.PPM S.Context. Account>(" ppms_accou nt_agreeme ntprovider _ExternalP rovider",  null, valu e);
  10694                                      this.OnP ropertyCha nged("ppms _account_a greementpr ovider_Ext ernalProvi der");
  10695                             }
  10696                    }
  10697                    
  10698                    ///  <summary>
  10699                    ///  N:1 ppms_a ccount_ppm s_agreemen tprovider_ ProviderGr oup
  10700                    ///  </summary>
  10701                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providerg roup")]
  10702                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_account _ppms_agre ementprovi der_Provid erGroup")]
  10703                    publ ic VA.PPMS .Context.A ccount ppm s_account_ ppms_agree mentprovid er_Provide rGroup
  10704                    {
  10705                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10706                             get
  10707                             {
  10708                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.Acc ount>("ppm s_account_ ppms_agree mentprovid er_Provide rGroup", n ull);
  10709                             }
  10710                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10711                             set
  10712                             {
  10713                                      this.OnP ropertyCha nging("ppm s_account_ ppms_agree mentprovid er_Provide rGroup");
  10714                                      this.Set RelatedEnt ity<VA.PPM S.Context. Account>(" ppms_accou nt_ppms_ag reementpro vider_Prov iderGroup" , null, va lue);
  10715                                      this.OnP ropertyCha nged("ppms _account_p pms_agreem entprovide r_Provider Group");
  10716                             }
  10717                    }
  10718                    
  10719                    ///  <summary>
  10720                    ///  N:1 ppms_p pms_npi_pp ms_agreeme ntprovider _SelectedN PI
  10721                    ///  </summary>
  10722                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _selectedn pi")]
  10723                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_ppms_np i_ppms_agr eementprov ider_Selec tedNPI")]
  10724                    publ ic VA.PPMS .Context.p pms_npi pp ms_ppms_np i_ppms_agr eementprov ider_Selec tedNPI
  10725                    {
  10726                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10727                             get
  10728                             {
  10729                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.ppm s_npi>("pp ms_ppms_np i_ppms_agr eementprov ider_Selec tedNPI", n ull);
  10730                             }
  10731                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10732                             set
  10733                             {
  10734                                      this.OnP ropertyCha nging("ppm s_ppms_npi _ppms_agre ementprovi der_Select edNPI");
  10735                                      this.Set RelatedEnt ity<VA.PPM S.Context. ppms_npi>( "ppms_ppms _npi_ppms_ agreementp rovider_Se lectedNPI" , null, va lue);
  10736                                      this.OnP ropertyCha nged("ppms _ppms_npi_ ppms_agree mentprovid er_Selecte dNPI");
  10737                             }
  10738                    }
  10739                    
  10740                    ///  <summary>
  10741                    ///  N:1 ppms_p pms_provid eragreemen t_ppms_agr eementprov ider_Provi derAgreeme nt
  10742                    ///  </summary>
  10743                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providera greement") ]
  10744                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_ppms_pr ovideragre ement_ppms _agreement provider_P roviderAgr eement")]
  10745                    publ ic VA.PPMS .Context.p pms_provid eragreemen t ppms_ppm s_provider agreement_ ppms_agree mentprovid er_Provide rAgreement
  10746                    {
  10747                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10748                             get
  10749                             {
  10750                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.ppm s_provider agreement> ("ppms_ppm s_provider agreement_ ppms_agree mentprovid er_Provide rAgreement ", null);
  10751                             }
  10752                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10753                             set
  10754                             {
  10755                                      this.OnP ropertyCha nging("ppm s_ppms_pro videragree ment_ppms_ agreementp rovider_Pr oviderAgre ement");
  10756                                      this.Set RelatedEnt ity<VA.PPM S.Context. ppms_provi deragreeme nt>("ppms_ ppms_provi deragreeme nt_ppms_ag reementpro vider_Prov iderAgreem ent", null , value);
  10757                                      this.OnP ropertyCha nged("ppms _ppms_prov ideragreem ent_ppms_a greementpr ovider_Pro viderAgree ment");
  10758                             }
  10759                    }
  10760                    
  10761                    ///  <summary>
  10762                    ///  N:1 ppms_p pms_vaprov iderrelati onship_ppm s_agreemen
  10763                    ///  </summary>
  10764                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _vaprovide rrelations hipid")]
  10765                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_ppms_va providerre lationship _ppms_agre emen")]
  10766                    publ ic VA.PPMS .Context.p pms_vaprov iderrelati onship ppm s_ppms_vap roviderrel ationship_ ppms_agree men
  10767                    {
  10768                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10769                             get
  10770                             {
  10771                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.ppm s_vaprovid errelation ship>("ppm s_ppms_vap roviderrel ationship_ ppms_agree men", null );
  10772                             }
  10773                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10774                             set
  10775                             {
  10776                                      this.OnP ropertyCha nging("ppm s_ppms_vap roviderrel ationship_ ppms_agree men");
  10777                                      this.Set RelatedEnt ity<VA.PPM S.Context. ppms_vapro viderrelat ionship>(" ppms_ppms_ vaprovider relationsh ip_ppms_ag reemen", n ull, value );
  10778                                      this.OnP ropertyCha nged("ppms _ppms_vapr oviderrela tionship_p pms_agreem en");
  10779                             }
  10780                    }
  10781                    
  10782                    ///  <summary>
  10783                    ///  N:1 ppms_p roviderser vice_agree mentprovid er_provide rservice
  10784                    ///  </summary>
  10785                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providers ervice")]
  10786                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_provide rservice_a greementpr ovider_pro viderservi ce")]
  10787                    publ ic VA.PPMS .Context.p pms_provid erservice  ppms_provi derservice _agreement provider_p roviderser vice
  10788                    {
  10789                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10790                             get
  10791                             {
  10792                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.ppm s_provider service>(" ppms_provi derservice _agreement provider_p roviderser vice", nul l);
  10793                             }
  10794                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10795                             set
  10796                             {
  10797                                      this.OnP ropertyCha nging("ppm s_provider service_ag reementpro vider_prov iderservic e");
  10798                                      this.Set RelatedEnt ity<VA.PPM S.Context. ppms_provi derservice >("ppms_pr oviderserv ice_agreem entprovide r_provider service",  null, valu e);
  10799                                      this.OnP ropertyCha nged("ppms _providers ervice_agr eementprov ider_provi derservice ");
  10800                             }
  10801                    }
  10802                    
  10803                    ///  <summary>
  10804                    ///  Constructo r for popu lating via  LINQ quer ies given  a LINQ ano nymous typ e
  10805                    ///  <param nam e="anonymo usType">LI NQ anonymo us type.</ param>
  10806                    ///  </summary>
  10807                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  10808                    publ ic ppms_ag reementpro vider(obje ct anonymo usType) : 
  10809                                      this()
  10810                    {
  10811                foreach  (var p in  anonymousT ype.GetTyp e().GetPro perties())
  10812                {
  10813                    var  value = p. GetValue(a nonymousTy pe, null);
  10814                    var  name = p.N ame.ToLowe r();
  10815                
  10816                    if ( name.EndsW ith("enum" ) && value .GetType() .BaseType  == typeof( System.Enu m))
  10817                    {
  10818                         value = ne w Microsof t.Xrm.Sdk. OptionSetV alue((int)  value);
  10819                         name = nam e.Remove(n ame.Length  - "enum". Length);
  10820                    }
  10821                
  10822                    swit ch (name)
  10823                    {
  10824                         case "id":
  10825                             base.I d = (Syste m.Guid)val ue;
  10826                             Attrib utes["ppms _agreement providerid "] = base. Id;
  10827                             break;
  10828                         case "ppms _agreement providerid ":
  10829                             var id  = (System .Nullable< System.Gui d>) value;
  10830                             if(id  == null){  continue;  }
  10831                             base.I d = id.Val ue;
  10832                             Attrib utes[name]  = base.Id ;
  10833                             break;
  10834                         case "form attedvalue s":
  10835                             // Add  Support f or Formatt edValues
  10836                             Format tedValues. AddRange(( Microsoft. Xrm.Sdk.Fo rmattedVal ueCollecti on)value);
  10837                             break;
  10838                         default:
  10839                             Attrib utes[name]  = value;
  10840                             break;
  10841                    }
  10842                }
  10843                    }
  10844                    
  10845                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  10846                    publ ic virtual  ppms_agre ementprovi der_Status Code? stat uscodeEnum
  10847                    {
  10848                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10849                             get
  10850                             {
  10851                                      return ( (ppms_agre ementprovi der_Status Code?)(Ent ityOptionS etEnum.Get Enum(this,  "statusco de")));
  10852                             }
  10853                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10854                             set
  10855                             {
  10856                                      statusco de = value .HasValue  ? new Micr osoft.Xrm. Sdk.Option SetValue(( int)value)  : null;
  10857                             }
  10858                    }
  10859           }
  10860           
  10861           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  10862           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  10863           pu blic enum  ppms_cares iteState
  10864           {
  10865                    
  10866                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  10867                    Acti ve = 0,
  10868                    
  10869                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  10870                    Inac tive = 1,
  10871           }
  10872           
  10873           // / <summary >
  10874           // / Care Sit es
  10875           // / </summar y>
  10876           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  10877           [M icrosoft.X rm.Sdk.Cli ent.Entity LogicalNam eAttribute ("ppms_car esite")]
  10878           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  10879           pu blic parti al class p pms_caresi te : Micro soft.Xrm.S dk.Entity,  System.Co mponentMod el.INotify PropertyCh anging, Sy stem.Compo nentModel. INotifyPro pertyChang ed
  10880           {
  10881                    
  10882                    ///  <summary>
  10883                    ///  Default Co nstructor.
  10884                    ///  </summary>
  10885                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  10886                    publ ic ppms_ca resite() :  
  10887                                      base(Ent ityLogical Name)
  10888                    {
  10889                    }
  10890                    
  10891                    publ ic const s tring Enti tyLogicalN ame = "ppm s_caresite ";
  10892                    
  10893                    publ ic const i nt EntityT ypeCode =  10029;
  10894                    
  10895                    publ ic event S ystem.Comp onentModel .PropertyC hangedEven tHandler P ropertyCha nged;
  10896                    
  10897                    publ ic event S ystem.Comp onentModel .PropertyC hangingEve ntHandler  PropertyCh anging;
  10898                    
  10899                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  10900                    priv ate void O nPropertyC hanged(str ing proper tyName)
  10901                    {
  10902                             if ((t his.Proper tyChanged  != null))
  10903                             {
  10904                                      this.Pro pertyChang ed(this, n ew System. ComponentM odel.Prope rtyChanged EventArgs( propertyNa me));
  10905                             }
  10906                    }
  10907                    
  10908                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  10909                    priv ate void O nPropertyC hanging(st ring prope rtyName)
  10910                    {
  10911                             if ((t his.Proper tyChanging  != null))
  10912                             {
  10913                                      this.Pro pertyChang ing(this,  new System .Component Model.Prop ertyChangi ngEventArg s(property Name));
  10914                             }
  10915                    }
  10916                    
  10917                    ///  <summary>
  10918                    ///  Unique ide ntifier of  the user  who create d the reco rd.
  10919                    ///  </summary>
  10920                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedby")]
  10921                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedBy
  10922                    {
  10923                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10924                             get
  10925                             {
  10926                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedby");
  10927                             }
  10928                    }
  10929                    
  10930                    ///  <summary>
  10931                    ///  Date and t ime when t he record  was create d.
  10932                    ///  </summary>
  10933                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedon")]
  10934                    publ ic System. Nullable<S ystem.Date Time> Crea tedOn
  10935                    {
  10936                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10937                             get
  10938                             {
  10939                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("cre atedon");
  10940                             }
  10941                    }
  10942                    
  10943                    ///  <summary>
  10944                    ///  Unique ide ntifier of  the deleg ate user w ho created  the recor d.
  10945                    ///  </summary>
  10946                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedonbehal fby")]
  10947                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedOnBeha lfBy
  10948                    {
  10949                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10950                             get
  10951                             {
  10952                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedonbeh alfby");
  10953                             }
  10954                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10955                             set
  10956                             {
  10957                                      this.OnP ropertyCha nging("Cre atedOnBeha lfBy");
  10958                                      this.Set AttributeV alue("crea tedonbehal fby", valu e);
  10959                                      this.OnP ropertyCha nged("Crea tedOnBehal fBy");
  10960                             }
  10961                    }
  10962                    
  10963                    ///  <summary>
  10964                    ///  Sequence n umber of t he import  that creat ed this re cord.
  10965                    ///  </summary>
  10966                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("impo rtsequence number")]
  10967                    publ ic System. Nullable<i nt> Import SequenceNu mber
  10968                    {
  10969                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10970                             get
  10971                             {
  10972                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("impor tsequencen umber");
  10973                             }
  10974                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10975                             set
  10976                             {
  10977                                      this.OnP ropertyCha nging("Imp ortSequenc eNumber");
  10978                                      this.Set AttributeV alue("impo rtsequence number", v alue);
  10979                                      this.OnP ropertyCha nged("Impo rtSequence Number");
  10980                             }
  10981                    }
  10982                    
  10983                    ///  <summary>
  10984                    ///  Unique ide ntifier of  the user  who modifi ed the rec ord.
  10985                    ///  </summary>
  10986                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedby")]
  10987                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedBy
  10988                    {
  10989                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  10990                             get
  10991                             {
  10992                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedby") ;
  10993                             }
  10994                    }
  10995                    
  10996                    ///  <summary>
  10997                    ///  Date and t ime when t he record  was modifi ed.
  10998                    ///  </summary>
  10999                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedon")]
  11000                    publ ic System. Nullable<S ystem.Date Time> Modi fiedOn
  11001                    {
  11002                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11003                             get
  11004                             {
  11005                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("mod ifiedon");
  11006                             }
  11007                    }
  11008                    
  11009                    ///  <summary>
  11010                    ///  Unique ide ntifier of  the deleg ate user w ho modifie d the reco rd.
  11011                    ///  </summary>
  11012                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedonbeha lfby")]
  11013                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedOnBeh alfBy
  11014                    {
  11015                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11016                             get
  11017                             {
  11018                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedonbe halfby");
  11019                             }
  11020                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11021                             set
  11022                             {
  11023                                      this.OnP ropertyCha nging("Mod ifiedOnBeh alfBy");
  11024                                      this.Set AttributeV alue("modi fiedonbeha lfby", val ue);
  11025                                      this.OnP ropertyCha nged("Modi fiedOnBeha lfBy");
  11026                             }
  11027                    }
  11028                    
  11029                    ///  <summary>
  11030                    ///  Date and t ime that t he record  was migrat ed.
  11031                    ///  </summary>
  11032                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("over riddencrea tedon")]
  11033                    publ ic System. Nullable<S ystem.Date Time> Over riddenCrea tedOn
  11034                    {
  11035                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11036                             get
  11037                             {
  11038                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ove rriddencre atedon");
  11039                             }
  11040                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11041                             set
  11042                             {
  11043                                      this.OnP ropertyCha nging("Ove rriddenCre atedOn");
  11044                                      this.Set AttributeV alue("over riddencrea tedon", va lue);
  11045                                      this.OnP ropertyCha nged("Over riddenCrea tedOn");
  11046                             }
  11047                    }
  11048                    
  11049                    ///  <summary>
  11050                    ///  Owner Id
  11051                    ///  </summary>
  11052                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owne rid")]
  11053                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own erId
  11054                    {
  11055                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11056                             get
  11057                             {
  11058                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow nerid");
  11059                             }
  11060                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11061                             set
  11062                             {
  11063                                      this.OnP ropertyCha nging("Own erId");
  11064                                      this.Set AttributeV alue("owne rid", valu e);
  11065                                      this.OnP ropertyCha nged("Owne rId");
  11066                             }
  11067                    }
  11068                    
  11069                    ///  <summary>
  11070                    ///  Unique ide ntifier fo r the busi ness unit  that owns  the record
  11071                    ///  </summary>
  11072                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngbusiness unit")]
  11073                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingBusines sUnit
  11074                    {
  11075                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11076                             get
  11077                             {
  11078                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningbusine ssunit");
  11079                             }
  11080                    }
  11081                    
  11082                    ///  <summary>
  11083                    ///  Unique ide ntifier fo r the team  that owns  the recor d.
  11084                    ///  </summary>
  11085                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngteam")]
  11086                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingTeam
  11087                    {
  11088                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11089                             get
  11090                             {
  11091                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningteam") ;
  11092                             }
  11093                    }
  11094                    
  11095                    ///  <summary>
  11096                    ///  Unique ide ntifier fo r the user  that owns  the recor d.
  11097                    ///  </summary>
  11098                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni nguser")]
  11099                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingUser
  11100                    {
  11101                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11102                             get
  11103                             {
  11104                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ninguser") ;
  11105                             }
  11106                    }
  11107                    
  11108                    ///  <summary>
  11109                    ///  Active Dat e
  11110                    ///  </summary>
  11111                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _activedat e")]
  11112                    publ ic System. Nullable<S ystem.Date Time> ppms _activedat e
  11113                    {
  11114                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11115                             get
  11116                             {
  11117                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ppm s_activeda te");
  11118                             }
  11119                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11120                             set
  11121                             {
  11122                                      this.OnP ropertyCha nging("ppm s_activeda te");
  11123                                      this.Set AttributeV alue("ppms _activedat e", value) ;
  11124                                      this.OnP ropertyCha nged("ppms _activedat e");
  11125                             }
  11126                    }
  11127                    
  11128                    ///  <summary>
  11129                    ///  Address
  11130                    ///  </summary>
  11131                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _address") ]
  11132                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_address
  11133                    {
  11134                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11135                             get
  11136                             {
  11137                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_address ");
  11138                             }
  11139                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11140                             set
  11141                             {
  11142                                      this.OnP ropertyCha nging("ppm s_address" );
  11143                                      this.Set AttributeV alue("ppms _address",  value);
  11144                                      this.OnP ropertyCha nged("ppms _address") ;
  11145                             }
  11146                    }
  11147                    
  11148                    ///  <summary>
  11149                    ///  City
  11150                    ///  </summary>
  11151                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _address_c ity")]
  11152                    publ ic string  ppms_addre ss_city
  11153                    {
  11154                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11155                             get
  11156                             {
  11157                                      return t his.GetAtt ributeValu e<string>( "ppms_addr ess_city") ;
  11158                             }
  11159                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11160                             set
  11161                             {
  11162                                      this.OnP ropertyCha nging("ppm s_address_ city");
  11163                                      this.Set AttributeV alue("ppms _address_c ity", valu e);
  11164                                      this.OnP ropertyCha nged("ppms _address_c ity");
  11165                             }
  11166                    }
  11167                    
  11168                    ///  <summary>
  11169                    ///  Composite  Id
  11170                    ///  </summary>
  11171                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _address_c ompositeid ")]
  11172                    publ ic string  ppms_addre ss_composi teid
  11173                    {
  11174                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11175                             get
  11176                             {
  11177                                      return t his.GetAtt ributeValu e<string>( "ppms_addr ess_compos iteid");
  11178                             }
  11179                    }
  11180                    
  11181                    ///  <summary>
  11182                    ///  Country
  11183                    ///  </summary>
  11184                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _address_c ountry")]
  11185                    publ ic string  ppms_addre ss_country
  11186                    {
  11187                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11188                             get
  11189                             {
  11190                                      return t his.GetAtt ributeValu e<string>( "ppms_addr ess_countr y");
  11191                             }
  11192                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11193                             set
  11194                             {
  11195                                      this.OnP ropertyCha nging("ppm s_address_ country");
  11196                                      this.Set AttributeV alue("ppms _address_c ountry", v alue);
  11197                                      this.OnP ropertyCha nged("ppms _address_c ountry");
  11198                             }
  11199                    }
  11200                    
  11201                    ///  <summary>
  11202                    ///  County
  11203                    ///  </summary>
  11204                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _address_c ounty")]
  11205                    publ ic string  ppms_addre ss_county
  11206                    {
  11207                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11208                             get
  11209                             {
  11210                                      return t his.GetAtt ributeValu e<string>( "ppms_addr ess_county ");
  11211                             }
  11212                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11213                             set
  11214                             {
  11215                                      this.OnP ropertyCha nging("ppm s_address_ county");
  11216                                      this.Set AttributeV alue("ppms _address_c ounty", va lue);
  11217                                      this.OnP ropertyCha nged("ppms _address_c ounty");
  11218                             }
  11219                    }
  11220                    
  11221                    ///  <summary>
  11222                    /// 
  11223                    ///  </summary>
  11224                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _address_l atitude")]
  11225                    publ ic string  ppms_addre ss_latitud e
  11226                    {
  11227                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11228                             get
  11229                             {
  11230                                      return t his.GetAtt ributeValu e<string>( "ppms_addr ess_latitu de");
  11231                             }
  11232                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11233                             set
  11234                             {
  11235                                      this.OnP ropertyCha nging("ppm s_address_ latitude") ;
  11236                                      this.Set AttributeV alue("ppms _address_l atitude",  value);
  11237                                      this.OnP ropertyCha nged("ppms _address_l atitude");
  11238                             }
  11239                    }
  11240                    
  11241                    ///  <summary>
  11242                    ///  Street
  11243                    ///  </summary>
  11244                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _address_l ine1")]
  11245                    publ ic string  ppms_addre ss_line1
  11246                    {
  11247                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11248                             get
  11249                             {
  11250                                      return t his.GetAtt ributeValu e<string>( "ppms_addr ess_line1" );
  11251                             }
  11252                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11253                             set
  11254                             {
  11255                                      this.OnP ropertyCha nging("ppm s_address_ line1");
  11256                                      this.Set AttributeV alue("ppms _address_l ine1", val ue);
  11257                                      this.OnP ropertyCha nged("ppms _address_l ine1");
  11258                             }
  11259                    }
  11260                    
  11261                    ///  <summary>
  11262                    /// 
  11263                    ///  </summary>
  11264                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _address_l ongitude") ]
  11265                    publ ic string  ppms_addre ss_longitu de
  11266                    {
  11267                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11268                             get
  11269                             {
  11270                                      return t his.GetAtt ributeValu e<string>( "ppms_addr ess_longit ude");
  11271                             }
  11272                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11273                             set
  11274                             {
  11275                                      this.OnP ropertyCha nging("ppm s_address_ longitude" );
  11276                                      this.Set AttributeV alue("ppms _address_l ongitude",  value);
  11277                                      this.OnP ropertyCha nged("ppms _address_l ongitude") ;
  11278                             }
  11279                    }
  11280                    
  11281                    ///  <summary>
  11282                    ///  Zip Code
  11283                    ///  </summary>
  11284                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _address_p ostalcode" )]
  11285                    publ ic string  ppms_addre ss_postalc ode
  11286                    {
  11287                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11288                             get
  11289                             {
  11290                                      return t his.GetAtt ributeValu e<string>( "ppms_addr ess_postal code");
  11291                             }
  11292                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11293                             set
  11294                             {
  11295                                      this.OnP ropertyCha nging("ppm s_address_ postalcode ");
  11296                                      this.Set AttributeV alue("ppms _address_p ostalcode" , value);
  11297                                      this.OnP ropertyCha nged("ppms _address_p ostalcode" );
  11298                             }
  11299                    }
  11300                    
  11301                    ///  <summary>
  11302                    /// 
  11303                    ///  </summary>
  11304                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _address_s tate")]
  11305                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_address_ state
  11306                    {
  11307                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11308                             get
  11309                             {
  11310                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_address _state");
  11311                             }
  11312                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11313                             set
  11314                             {
  11315                                      this.OnP ropertyCha nging("ppm s_address_ state");
  11316                                      this.Set AttributeV alue("ppms _address_s tate", val ue);
  11317                                      this.OnP ropertyCha nged("ppms _address_s tate");
  11318                             }
  11319                    }
  11320                    
  11321                    ///  <summary>
  11322                    ///  Unique ide ntifier fo r entity i nstances
  11323                    ///  </summary>
  11324                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _caresitei d")]
  11325                    publ ic System. Nullable<S ystem.Guid > ppms_car esiteId
  11326                    {
  11327                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11328                             get
  11329                             {
  11330                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("ppms_ca resiteid") ;
  11331                             }
  11332                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11333                             set
  11334                             {
  11335                                      this.OnP ropertyCha nging("ppm s_caresite Id");
  11336                                      this.Set AttributeV alue("ppms _caresitei d", value) ;
  11337                                      if (valu e.HasValue )
  11338                                      {
  11339                                               base.Id =  value.Valu e;
  11340                                      }
  11341                                      else
  11342                                      {
  11343                                               base.Id =  System.Gui d.Empty;
  11344                                      }
  11345                                      this.OnP ropertyCha nged("ppms _caresiteI d");
  11346                             }
  11347                    }
  11348                    
  11349                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _caresitei d")]
  11350                    publ ic overrid e System.G uid Id
  11351                    {
  11352                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11353                             get
  11354                             {
  11355                                      return b ase.Id;
  11356                             }
  11357                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11358                             set
  11359                             {
  11360                                      this.ppm s_caresite Id = value ;
  11361                             }
  11362                    }
  11363                    
  11364                    ///  <summary>
  11365                    ///  DEA Number
  11366                    ///  </summary>
  11367                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _deaschedu leprivileg e")]
  11368                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_DEASched ulePrivile ge
  11369                    {
  11370                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11371                             get
  11372                             {
  11373                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_deasche duleprivil ege");
  11374                             }
  11375                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11376                             set
  11377                             {
  11378                                      this.OnP ropertyCha nging("ppm s_DEASched ulePrivile ge");
  11379                                      this.Set AttributeV alue("ppms _deaschedu leprivileg e", value) ;
  11380                                      this.OnP ropertyCha nged("ppms _DEASchedu lePrivileg e");
  11381                             }
  11382                    }
  11383                    
  11384                    ///  <summary>
  11385                    /// 
  11386                    ///  </summary>
  11387                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _facilityi d")]
  11388                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_facility id
  11389                    {
  11390                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11391                             get
  11392                             {
  11393                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_facilit yid");
  11394                             }
  11395                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11396                             set
  11397                             {
  11398                                      this.OnP ropertyCha nging("ppm s_facility id");
  11399                                      this.Set AttributeV alue("ppms _facilityi d", value) ;
  11400                                      this.OnP ropertyCha nged("ppms _facilityi d");
  11401                             }
  11402                    }
  11403                    
  11404                    ///  <summary>
  11405                    /// 
  11406                    ///  </summary>
  11407                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _geocoded" )]
  11408                    publ ic System. Nullable<b ool> ppms_ geocoded
  11409                    {
  11410                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11411                             get
  11412                             {
  11413                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("ppms _geocoded" );
  11414                             }
  11415                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11416                             set
  11417                             {
  11418                                      this.OnP ropertyCha nging("ppm s_geocoded ");
  11419                                      this.Set AttributeV alue("ppms _geocoded" , value);
  11420                                      this.OnP ropertyCha nged("ppms _geocoded" );
  11421                             }
  11422                    }
  11423                    
  11424                    ///  <summary>
  11425                    ///  Inactive D ate
  11426                    ///  </summary>
  11427                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _inactived ate")]
  11428                    publ ic System. Nullable<S ystem.Date Time> ppms _inactived ate
  11429                    {
  11430                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11431                             get
  11432                             {
  11433                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ppm s_inactive date");
  11434                             }
  11435                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11436                             set
  11437                             {
  11438                                      this.OnP ropertyCha nging("ppm s_inactive date");
  11439                                      this.Set AttributeV alue("ppms _inactived ate", valu e);
  11440                                      this.OnP ropertyCha nged("ppms _inactived ate");
  11441                             }
  11442                    }
  11443                    
  11444                    ///  <summary>
  11445                    ///  Is Externa l
  11446                    ///  </summary>
  11447                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _isexterna l")]
  11448                    publ ic System. Nullable<b ool> ppms_ isexternal
  11449                    {
  11450                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11451                             get
  11452                             {
  11453                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("ppms _isexterna l");
  11454                             }
  11455                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11456                             set
  11457                             {
  11458                                      this.OnP ropertyCha nging("ppm s_isextern al");
  11459                                      this.Set AttributeV alue("ppms _isexterna l", value) ;
  11460                                      this.OnP ropertyCha nged("ppms _isexterna l");
  11461                             }
  11462                    }
  11463                    
  11464                    ///  <summary>
  11465                    ///  Is Handica p Accessib le
  11466                    ///  </summary>
  11467                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _ishandica paccessibl e")]
  11468                    publ ic System. Nullable<b ool> ppms_ ishandicap accessible
  11469                    {
  11470                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11471                             get
  11472                             {
  11473                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("ppms _ishandica paccessibl e");
  11474                             }
  11475                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11476                             set
  11477                             {
  11478                                      this.OnP ropertyCha nging("ppm s_ishandic apaccessib le");
  11479                                      this.Set AttributeV alue("ppms _ishandica paccessibl e", value) ;
  11480                                      this.OnP ropertyCha nged("ppms _ishandica paccessibl e");
  11481                             }
  11482                    }
  11483                    
  11484                    ///  <summary>
  11485                    /// 
  11486                    ///  </summary>
  11487                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _mainsitep hone")]
  11488                    publ ic string  ppms_mains itephone
  11489                    {
  11490                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11491                             get
  11492                             {
  11493                                      return t his.GetAtt ributeValu e<string>( "ppms_main sitephone" );
  11494                             }
  11495                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11496                             set
  11497                             {
  11498                                      this.OnP ropertyCha nging("ppm s_mainsite phone");
  11499                                      this.Set AttributeV alue("ppms _mainsitep hone", val ue);
  11500                                      this.OnP ropertyCha nged("ppms _mainsitep hone");
  11501                             }
  11502                    }
  11503                    
  11504                    ///  <summary>
  11505                    /// 
  11506                    ///  </summary>
  11507                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _name")]
  11508                    publ ic string  ppms_name
  11509                    {
  11510                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11511                             get
  11512                             {
  11513                                      return t his.GetAtt ributeValu e<string>( "ppms_name ");
  11514                             }
  11515                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11516                             set
  11517                             {
  11518                                      this.OnP ropertyCha nging("ppm s_name");
  11519                                      this.Set AttributeV alue("ppms _name", va lue);
  11520                                      this.OnP ropertyCha nged("ppms _name");
  11521                             }
  11522                    }
  11523                    
  11524                    ///  <summary>
  11525                    ///  Owning Org anization
  11526                    ///  </summary>
  11527                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _organizat ion")]
  11528                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_organiza tion
  11529                    {
  11530                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11531                             get
  11532                             {
  11533                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_organiz ation");
  11534                             }
  11535                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11536                             set
  11537                             {
  11538                                      this.OnP ropertyCha nging("ppm s_organiza tion");
  11539                                      this.Set AttributeV alue("ppms _organizat ion", valu e);
  11540                                      this.OnP ropertyCha nged("ppms _organizat ion");
  11541                             }
  11542                    }
  11543                    
  11544                    ///  <summary>
  11545                    ///  Other Name
  11546                    ///  </summary>
  11547                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _othername ")]
  11548                    publ ic string  ppms_other name
  11549                    {
  11550                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11551                             get
  11552                             {
  11553                                      return t his.GetAtt ributeValu e<string>( "ppms_othe rname");
  11554                             }
  11555                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11556                             set
  11557                             {
  11558                                      this.OnP ropertyCha nging("ppm s_othernam e");
  11559                                      this.Set AttributeV alue("ppms _othername ", value);
  11560                                      this.OnP ropertyCha nged("ppms _othername ");
  11561                             }
  11562                    }
  11563                    
  11564                    ///  <summary>
  11565                    /// 
  11566                    ///  </summary>
  11567                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _parentsta tionnumber ")]
  11568                    publ ic string  ppms_paren tstationnu mber
  11569                    {
  11570                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11571                             get
  11572                             {
  11573                                      return t his.GetAtt ributeValu e<string>( "ppms_pare ntstationn umber");
  11574                             }
  11575                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11576                             set
  11577                             {
  11578                                      this.OnP ropertyCha nging("ppm s_parentst ationnumbe r");
  11579                                      this.Set AttributeV alue("ppms _parentsta tionnumber ", value);
  11580                                      this.OnP ropertyCha nged("ppms _parentsta tionnumber ");
  11581                             }
  11582                    }
  11583                    
  11584                    ///  <summary>
  11585                    ///  Site Conta ct
  11586                    ///  </summary>
  11587                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _siteconta ct")]
  11588                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_SiteCont act
  11589                    {
  11590                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11591                             get
  11592                             {
  11593                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_sitecon tact");
  11594                             }
  11595                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11596                             set
  11597                             {
  11598                                      this.OnP ropertyCha nging("ppm s_SiteCont act");
  11599                                      this.Set AttributeV alue("ppms _siteconta ct", value );
  11600                                      this.OnP ropertyCha nged("ppms _SiteConta ct");
  11601                             }
  11602                    }
  11603                    
  11604                    ///  <summary>
  11605                    ///  Site Type
  11606                    ///  </summary>
  11607                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _sitetype" )]
  11608                    publ ic Microso ft.Xrm.Sdk .OptionSet Value ppms _sitetype
  11609                    {
  11610                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11611                             get
  11612                             {
  11613                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("ppm s_sitetype ");
  11614                             }
  11615                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11616                             set
  11617                             {
  11618                                      this.OnP ropertyCha nging("ppm s_sitetype ");
  11619                                      this.Set AttributeV alue("ppms _sitetype" , value);
  11620                                      this.OnP ropertyCha nged("ppms _sitetype" );
  11621                             }
  11622                    }
  11623                    
  11624                    ///  <summary>
  11625                    /// 
  11626                    ///  </summary>
  11627                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _statename ")]
  11628                    publ ic string  ppms_state name
  11629                    {
  11630                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11631                             get
  11632                             {
  11633                                      return t his.GetAtt ributeValu e<string>( "ppms_stat ename");
  11634                             }
  11635                    }
  11636                    
  11637                    ///  <summary>
  11638                    /// 
  11639                    ///  </summary>
  11640                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _stationna me")]
  11641                    publ ic string  ppms_stati onname
  11642                    {
  11643                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11644                             get
  11645                             {
  11646                                      return t his.GetAtt ributeValu e<string>( "ppms_stat ionname");
  11647                             }
  11648                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11649                             set
  11650                             {
  11651                                      this.OnP ropertyCha nging("ppm s_stationn ame");
  11652                                      this.Set AttributeV alue("ppms _stationna me", value );
  11653                                      this.OnP ropertyCha nged("ppms _stationna me");
  11654                             }
  11655                    }
  11656                    
  11657                    ///  <summary>
  11658                    /// 
  11659                    ///  </summary>
  11660                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _stationnu mber")]
  11661                    publ ic string  ppms_stati onnumber
  11662                    {
  11663                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11664                             get
  11665                             {
  11666                                      return t his.GetAtt ributeValu e<string>( "ppms_stat ionnumber" );
  11667                             }
  11668                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11669                             set
  11670                             {
  11671                                      this.OnP ropertyCha nging("ppm s_stationn umber");
  11672                                      this.Set AttributeV alue("ppms _stationnu mber", val ue);
  11673                                      this.OnP ropertyCha nged("ppms _stationnu mber");
  11674                             }
  11675                    }
  11676                    
  11677                    ///  <summary>
  11678                    /// 
  11679                    ///  </summary>
  11680                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _vacaresit e")]
  11681                    publ ic System. Nullable<b ool> ppms_ VACareSite
  11682                    {
  11683                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11684                             get
  11685                             {
  11686                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("ppms _vacaresit e");
  11687                             }
  11688                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11689                             set
  11690                             {
  11691                                      this.OnP ropertyCha nging("ppm s_VACareSi te");
  11692                                      this.Set AttributeV alue("ppms _vacaresit e", value) ;
  11693                                      this.OnP ropertyCha nged("ppms _VACareSit e");
  11694                             }
  11695                    }
  11696                    
  11697                    ///  <summary>
  11698                    /// 
  11699                    ///  </summary>
  11700                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _visnid")]
  11701                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_visnid
  11702                    {
  11703                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11704                             get
  11705                             {
  11706                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_visnid" );
  11707                             }
  11708                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11709                             set
  11710                             {
  11711                                      this.OnP ropertyCha nging("ppm s_visnid") ;
  11712                                      this.Set AttributeV alue("ppms _visnid",  value);
  11713                                      this.OnP ropertyCha nged("ppms _visnid");
  11714                             }
  11715                    }
  11716                    
  11717                    ///  <summary>
  11718                    ///  Status of  the Care S ite
  11719                    ///  </summary>
  11720                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat ecode")]
  11721                    publ ic System. Nullable<V A.PPMS.Con text.ppms_ caresiteSt ate> state code
  11722                    {
  11723                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11724                             get
  11725                             {
  11726                                      Microsof t.Xrm.Sdk. OptionSetV alue optio nSet = thi s.GetAttri buteValue< Microsoft. Xrm.Sdk.Op tionSetVal ue>("state code");
  11727                                      if ((opt ionSet !=  null))
  11728                                      {
  11729                                               return ((V A.PPMS.Con text.ppms_ caresiteSt ate)(Syste m.Enum.ToO bject(type of(VA.PPMS .Context.p pms_caresi teState),  optionSet. Value)));
  11730                                      }
  11731                                      else
  11732                                      {
  11733                                               return nul l;
  11734                                      }
  11735                             }
  11736                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11737                             set
  11738                             {
  11739                                      this.OnP ropertyCha nging("sta tecode");
  11740                                      if ((val ue == null ))
  11741                                      {
  11742                                               this.SetAt tributeVal ue("statec ode", null );
  11743                                      }
  11744                                      else
  11745                                      {
  11746                                               this.SetAt tributeVal ue("statec ode", new  Microsoft. Xrm.Sdk.Op tionSetVal ue(((int)( value))));
  11747                                      }
  11748                                      this.OnP ropertyCha nged("stat ecode");
  11749                             }
  11750                    }
  11751                    
  11752                    ///  <summary>
  11753                    ///  Reason for  the statu s of the C are Site
  11754                    ///  </summary>
  11755                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  11756                    publ ic Microso ft.Xrm.Sdk .OptionSet Value stat uscode
  11757                    {
  11758                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11759                             get
  11760                             {
  11761                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("sta tuscode");
  11762                             }
  11763                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11764                             set
  11765                             {
  11766                                      this.OnP ropertyCha nging("sta tuscode");
  11767                                      this.Set AttributeV alue("stat uscode", v alue);
  11768                                      this.OnP ropertyCha nged("stat uscode");
  11769                             }
  11770                    }
  11771                    
  11772                    ///  <summary>
  11773                    ///  For intern al use onl y.
  11774                    ///  </summary>
  11775                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("time zoneruleve rsionnumbe r")]
  11776                    publ ic System. Nullable<i nt> TimeZo neRuleVers ionNumber
  11777                    {
  11778                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11779                             get
  11780                             {
  11781                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("timez onerulever sionnumber ");
  11782                             }
  11783                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11784                             set
  11785                             {
  11786                                      this.OnP ropertyCha nging("Tim eZoneRuleV ersionNumb er");
  11787                                      this.Set AttributeV alue("time zoneruleve rsionnumbe r", value) ;
  11788                                      this.OnP ropertyCha nged("Time ZoneRuleVe rsionNumbe r");
  11789                             }
  11790                    }
  11791                    
  11792                    ///  <summary>
  11793                    ///  Time zone  code that  was in use  when the  record was  created.
  11794                    ///  </summary>
  11795                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("utcc onversiont imezonecod e")]
  11796                    publ ic System. Nullable<i nt> UTCCon versionTim eZoneCode
  11797                    {
  11798                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11799                             get
  11800                             {
  11801                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("utcco nversionti mezonecode ");
  11802                             }
  11803                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11804                             set
  11805                             {
  11806                                      this.OnP ropertyCha nging("UTC Conversion TimeZoneCo de");
  11807                                      this.Set AttributeV alue("utcc onversiont imezonecod e", value) ;
  11808                                      this.OnP ropertyCha nged("UTCC onversionT imeZoneCod e");
  11809                             }
  11810                    }
  11811                    
  11812                    ///  <summary>
  11813                    /// 
  11814                    ///  </summary>
  11815                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("vers ionnumber" )]
  11816                    publ ic System. Nullable<l ong> Versi onNumber
  11817                    {
  11818                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11819                             get
  11820                             {
  11821                                      return t his.GetAtt ributeValu e<System.N ullable<lo ng>>("vers ionnumber" );
  11822                             }
  11823                    }
  11824                    
  11825                    ///  <summary>
  11826                    ///  1:N ppms_c aresite_ac count_owne dcaresite
  11827                    ///  </summary>
  11828                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_caresit e_account_ ownedcares ite")]
  11829                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.Ac count> ppm s_caresite _account_o wnedcaresi te
  11830                    {
  11831                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11832                             get
  11833                             {
  11834                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.A ccount>("p pms_caresi te_account _ownedcare site", nul l);
  11835                             }
  11836                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11837                             set
  11838                             {
  11839                                      this.OnP ropertyCha nging("ppm s_caresite _account_o wnedcaresi te");
  11840                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.Account> ("ppms_car esite_acco unt_ownedc aresite",  null, valu e);
  11841                                      this.OnP ropertyCha nged("ppms _caresite_ account_ow nedcaresit e");
  11842                             }
  11843                    }
  11844                    
  11845                    ///  <summary>
  11846                    ///  1:N ppms_c aresite_pp ms_vainsti tutionaffi liati
  11847                    ///  </summary>
  11848                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_caresit e_ppms_vai nstitution affiliati" )]
  11849                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_vainsti tutionaffi liation> p pms_caresi te_ppms_va institutio naffiliati
  11850                    {
  11851                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11852                             get
  11853                             {
  11854                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_vainst itutionaff iliation>( "ppms_care site_ppms_ vainstitut ionaffilia ti", null) ;
  11855                             }
  11856                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11857                             set
  11858                             {
  11859                                      this.OnP ropertyCha nging("ppm s_caresite _ppms_vain stitutiona ffiliati") ;
  11860                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_vai nstitution affiliatio n>("ppms_c aresite_pp ms_vainsti tutionaffi liati", nu ll, value) ;
  11861                                      this.OnP ropertyCha nged("ppms _caresite_ ppms_vains titutionaf filiati");
  11862                             }
  11863                    }
  11864                    
  11865                    ///  <summary>
  11866                    ///  1:N ppms_c aresite_pr oviderpriv ilege_Care Site
  11867                    ///  </summary>
  11868                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_caresit e_provider privilege_ CareSite") ]
  11869                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_provide rprivilege > ppms_car esite_prov iderprivil ege_CareSi te
  11870                    {
  11871                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11872                             get
  11873                             {
  11874                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_provid erprivileg e>("ppms_c aresite_pr oviderpriv ilege_Care Site", nul l);
  11875                             }
  11876                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11877                             set
  11878                             {
  11879                                      this.OnP ropertyCha nging("ppm s_caresite _providerp rivilege_C areSite");
  11880                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_pro viderprivi lege>("ppm s_caresite _providerp rivilege_C areSite",  null, valu e);
  11881                                      this.OnP ropertyCha nged("ppms _caresite_ providerpr ivilege_Ca reSite");
  11882                             }
  11883                    }
  11884                    
  11885                    ///  <summary>
  11886                    ///  1:N ppms_c aresite_pr oviderserv ice_caresi te
  11887                    ///  </summary>
  11888                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_caresit e_provider service_ca resite")]
  11889                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_provide rservice>  ppms_cares ite_provid erservice_ caresite
  11890                    {
  11891                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11892                             get
  11893                             {
  11894                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_provid erservice> ("ppms_car esite_prov iderservic e_caresite ", null);
  11895                             }
  11896                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11897                             set
  11898                             {
  11899                                      this.OnP ropertyCha nging("ppm s_caresite _providers ervice_car esite");
  11900                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_pro viderservi ce>("ppms_ caresite_p roviderser vice_cares ite", null , value);
  11901                                      this.OnP ropertyCha nged("ppms _caresite_ providerse rvice_care site");
  11902                             }
  11903                    }
  11904                    
  11905                    ///  <summary>
  11906                    ///  1:N ppms_p pms_caresi te_ppms_va providerne twork
  11907                    ///  </summary>
  11908                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_ppms_ca resite_ppm s_vaprovid ernetwork" )]
  11909                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_vaprovi dernetwork > ppms_ppm s_caresite _ppms_vapr ovidernetw ork
  11910                    {
  11911                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11912                             get
  11913                             {
  11914                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_vaprov idernetwor k>("ppms_p pms_caresi te_ppms_va providerne twork", nu ll);
  11915                             }
  11916                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11917                             set
  11918                             {
  11919                                      this.OnP ropertyCha nging("ppm s_ppms_car esite_ppms _vaprovide rnetwork") ;
  11920                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_vap rovidernet work>("ppm s_ppms_car esite_ppms _vaprovide rnetwork",  null, val ue);
  11921                                      this.OnP ropertyCha nged("ppms _ppms_care site_ppms_ vaprovider network");
  11922                             }
  11923                    }
  11924                    
  11925                    ///  <summary>
  11926                    ///  1:N ppms_p pms_caresi te_ppms_va providerre lationship
  11927                    ///  </summary>
  11928                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_ppms_ca resite_ppm s_vaprovid errelation ship")]
  11929                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_vaprovi derrelatio nship> ppm s_ppms_car esite_ppms _vaprovide rrelations hip
  11930                    {
  11931                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11932                             get
  11933                             {
  11934                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_vaprov iderrelati onship>("p pms_ppms_c aresite_pp ms_vaprovi derrelatio nship", nu ll);
  11935                             }
  11936                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11937                             set
  11938                             {
  11939                                      this.OnP ropertyCha nging("ppm s_ppms_car esite_ppms _vaprovide rrelations hip");
  11940                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_vap roviderrel ationship> ("ppms_ppm s_caresite _ppms_vapr oviderrela tionship",  null, val ue);
  11941                                      this.OnP ropertyCha nged("ppms _ppms_care site_ppms_ vaprovider relationsh ip");
  11942                             }
  11943                    }
  11944                    
  11945                    ///  <summary>
  11946                    ///  N:1 ppms_a ccount_car esite_orga nization
  11947                    ///  </summary>
  11948                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _organizat ion")]
  11949                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_account _caresite_ organizati on")]
  11950                    publ ic VA.PPMS .Context.A ccount ppm s_account_ caresite_o rganizatio n
  11951                    {
  11952                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11953                             get
  11954                             {
  11955                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.Acc ount>("ppm s_account_ caresite_o rganizatio n", null);
  11956                             }
  11957                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11958                             set
  11959                             {
  11960                                      this.OnP ropertyCha nging("ppm s_account_ caresite_o rganizatio n");
  11961                                      this.Set RelatedEnt ity<VA.PPM S.Context. Account>(" ppms_accou nt_caresit e_organiza tion", nul l, value);
  11962                                      this.OnP ropertyCha nged("ppms _account_c aresite_or ganization ");
  11963                             }
  11964                    }
  11965                    
  11966                    ///  <summary>
  11967                    ///  N:1 ppms_c ontact_car esite_Site Contact
  11968                    ///  </summary>
  11969                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _siteconta ct")]
  11970                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_contact _caresite_ SiteContac t")]
  11971                    publ ic VA.PPMS .Context.C ontact ppm s_contact_ caresite_S iteContact
  11972                    {
  11973                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11974                             get
  11975                             {
  11976                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.Con tact>("ppm s_contact_ caresite_S iteContact ", null);
  11977                             }
  11978                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11979                             set
  11980                             {
  11981                                      this.OnP ropertyCha nging("ppm s_contact_ caresite_S iteContact ");
  11982                                      this.Set RelatedEnt ity<VA.PPM S.Context. Contact>(" ppms_conta ct_caresit e_SiteCont act", null , value);
  11983                                      this.OnP ropertyCha nged("ppms _contact_c aresite_Si teContact" );
  11984                             }
  11985                    }
  11986                    
  11987                    ///  <summary>
  11988                    ///  N:1 ppms_s tate_cares ite_addres s_state
  11989                    ///  </summary>
  11990                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _address_s tate")]
  11991                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_state_c aresite_ad dress_stat e")]
  11992                    publ ic VA.PPMS .Context.v a_state pp ms_state_c aresite_ad dress_stat e
  11993                    {
  11994                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  11995                             get
  11996                             {
  11997                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.va_ state>("pp ms_state_c aresite_ad dress_stat e", null);
  11998                             }
  11999                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12000                             set
  12001                             {
  12002                                      this.OnP ropertyCha nging("ppm s_state_ca resite_add ress_state ");
  12003                                      this.Set RelatedEnt ity<VA.PPM S.Context. va_state>( "ppms_stat e_caresite _address_s tate", nul l, value);
  12004                                      this.OnP ropertyCha nged("ppms _state_car esite_addr ess_state" );
  12005                             }
  12006                    }
  12007                    
  12008                    ///  <summary>
  12009                    ///  N:1 ppms_v a_facility _ppms_care site_facil ityid
  12010                    ///  </summary>
  12011                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _facilityi d")]
  12012                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_va_faci lity_ppms_ caresite_f acilityid" )]
  12013                    publ ic VA.PPMS .Context.v a_facility  ppms_va_f acility_pp ms_caresit e_facility id
  12014                    {
  12015                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12016                             get
  12017                             {
  12018                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.va_ facility>( "ppms_va_f acility_pp ms_caresit e_facility id", null) ;
  12019                             }
  12020                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12021                             set
  12022                             {
  12023                                      this.OnP ropertyCha nging("ppm s_va_facil ity_ppms_c aresite_fa cilityid") ;
  12024                                      this.Set RelatedEnt ity<VA.PPM S.Context. va_facilit y>("ppms_v a_facility _ppms_care site_facil ityid", nu ll, value) ;
  12025                                      this.OnP ropertyCha nged("ppms _va_facili ty_ppms_ca resite_fac ilityid");
  12026                             }
  12027                    }
  12028                    
  12029                    ///  <summary>
  12030                    ///  N:1 ppms_v a_visn_ppm s_caresite _visnid
  12031                    ///  </summary>
  12032                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _visnid")]
  12033                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_va_visn _ppms_care site_visni d")]
  12034                    publ ic VA.PPMS .Context.v a_visn ppm s_va_visn_ ppms_cares ite_visnid
  12035                    {
  12036                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12037                             get
  12038                             {
  12039                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.va_ visn>("ppm s_va_visn_ ppms_cares ite_visnid ", null);
  12040                             }
  12041                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12042                             set
  12043                             {
  12044                                      this.OnP ropertyCha nging("ppm s_va_visn_ ppms_cares ite_visnid ");
  12045                                      this.Set RelatedEnt ity<VA.PPM S.Context. va_visn>(" ppms_va_vi sn_ppms_ca resite_vis nid", null , value);
  12046                                      this.OnP ropertyCha nged("ppms _va_visn_p pms_caresi te_visnid" );
  12047                             }
  12048                    }
  12049                    
  12050                    ///  <summary>
  12051                    ///  Constructo r for popu lating via  LINQ quer ies given  a LINQ ano nymous typ e
  12052                    ///  <param nam e="anonymo usType">LI NQ anonymo us type.</ param>
  12053                    ///  </summary>
  12054                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  12055                    publ ic ppms_ca resite(obj ect anonym ousType) :  
  12056                                      this()
  12057                    {
  12058                foreach  (var p in  anonymousT ype.GetTyp e().GetPro perties())
  12059                {
  12060                    var  value = p. GetValue(a nonymousTy pe, null);
  12061                    var  name = p.N ame.ToLowe r();
  12062                
  12063                    if ( name.EndsW ith("enum" ) && value .GetType() .BaseType  == typeof( System.Enu m))
  12064                    {
  12065                         value = ne w Microsof t.Xrm.Sdk. OptionSetV alue((int)  value);
  12066                         name = nam e.Remove(n ame.Length  - "enum". Length);
  12067                    }
  12068                
  12069                    swit ch (name)
  12070                    {
  12071                         case "id":
  12072                             base.I d = (Syste m.Guid)val ue;
  12073                             Attrib utes["ppms _caresitei d"] = base .Id;
  12074                             break;
  12075                         case "ppms _caresitei d":
  12076                             var id  = (System .Nullable< System.Gui d>) value;
  12077                             if(id  == null){  continue;  }
  12078                             base.I d = id.Val ue;
  12079                             Attrib utes[name]  = base.Id ;
  12080                             break;
  12081                         case "form attedvalue s":
  12082                             // Add  Support f or Formatt edValues
  12083                             Format tedValues. AddRange(( Microsoft. Xrm.Sdk.Fo rmattedVal ueCollecti on)value);
  12084                             break;
  12085                         default:
  12086                             Attrib utes[name]  = value;
  12087                             break;
  12088                    }
  12089                }
  12090                    }
  12091                    
  12092                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _sitetype" )]
  12093                    publ ic virtual  ppms_care site_ppms_ sitetype?  ppms_sitet ypeEnum
  12094                    {
  12095                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12096                             get
  12097                             {
  12098                                      return ( (ppms_care site_ppms_ sitetype?) (EntityOpt ionSetEnum .GetEnum(t his, "ppms _sitetype" )));
  12099                             }
  12100                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12101                             set
  12102                             {
  12103                                      ppms_sit etype = va lue.HasVal ue ? new M icrosoft.X rm.Sdk.Opt ionSetValu e((int)val ue) : null ;
  12104                             }
  12105                    }
  12106                    
  12107                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  12108                    publ ic virtual  ppms_care site_Statu sCode? sta tuscodeEnu m
  12109                    {
  12110                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12111                             get
  12112                             {
  12113                                      return ( (ppms_care site_Statu sCode?)(En tityOption SetEnum.Ge tEnum(this , "statusc ode")));
  12114                             }
  12115                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12116                             set
  12117                             {
  12118                                      statusco de = value .HasValue  ? new Micr osoft.Xrm. Sdk.Option SetValue(( int)value)  : null;
  12119                             }
  12120                    }
  12121           }
  12122           
  12123           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  12124           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  12125           pu blic enum  ppms_histo rylogState
  12126           {
  12127                    
  12128                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  12129                    Acti ve = 0,
  12130                    
  12131                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  12132                    Inac tive = 1,
  12133           }
  12134           
  12135           // / <summary >
  12136           //
  12137           // / </summar y>
  12138           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  12139           [M icrosoft.X rm.Sdk.Cli ent.Entity LogicalNam eAttribute ("ppms_his torylog")]
  12140           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  12141           pu blic parti al class p pms_histor ylog : Mic rosoft.Xrm .Sdk.Entit y, System. ComponentM odel.INoti fyProperty Changing,  System.Com ponentMode l.INotifyP ropertyCha nged
  12142           {
  12143                    
  12144                    ///  <summary>
  12145                    ///  Default Co nstructor.
  12146                    ///  </summary>
  12147                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  12148                    publ ic ppms_hi storylog()  : 
  12149                                      base(Ent ityLogical Name)
  12150                    {
  12151                    }
  12152                    
  12153                    publ ic const s tring Enti tyLogicalN ame = "ppm s_historyl og";
  12154                    
  12155                    publ ic const i nt EntityT ypeCode =  10088;
  12156                    
  12157                    publ ic event S ystem.Comp onentModel .PropertyC hangedEven tHandler P ropertyCha nged;
  12158                    
  12159                    publ ic event S ystem.Comp onentModel .PropertyC hangingEve ntHandler  PropertyCh anging;
  12160                    
  12161                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  12162                    priv ate void O nPropertyC hanged(str ing proper tyName)
  12163                    {
  12164                             if ((t his.Proper tyChanged  != null))
  12165                             {
  12166                                      this.Pro pertyChang ed(this, n ew System. ComponentM odel.Prope rtyChanged EventArgs( propertyNa me));
  12167                             }
  12168                    }
  12169                    
  12170                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  12171                    priv ate void O nPropertyC hanging(st ring prope rtyName)
  12172                    {
  12173                             if ((t his.Proper tyChanging  != null))
  12174                             {
  12175                                      this.Pro pertyChang ing(this,  new System .Component Model.Prop ertyChangi ngEventArg s(property Name));
  12176                             }
  12177                    }
  12178                    
  12179                    ///  <summary>
  12180                    ///  Unique ide ntifier of  the user  who create d the reco rd.
  12181                    ///  </summary>
  12182                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedby")]
  12183                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedBy
  12184                    {
  12185                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12186                             get
  12187                             {
  12188                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedby");
  12189                             }
  12190                    }
  12191                    
  12192                    ///  <summary>
  12193                    ///  Date and t ime when t he record  was create d.
  12194                    ///  </summary>
  12195                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedon")]
  12196                    publ ic System. Nullable<S ystem.Date Time> Crea tedOn
  12197                    {
  12198                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12199                             get
  12200                             {
  12201                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("cre atedon");
  12202                             }
  12203                    }
  12204                    
  12205                    ///  <summary>
  12206                    ///  Unique ide ntifier of  the deleg ate user w ho created  the recor d.
  12207                    ///  </summary>
  12208                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedonbehal fby")]
  12209                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedOnBeha lfBy
  12210                    {
  12211                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12212                             get
  12213                             {
  12214                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedonbeh alfby");
  12215                             }
  12216                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12217                             set
  12218                             {
  12219                                      this.OnP ropertyCha nging("Cre atedOnBeha lfBy");
  12220                                      this.Set AttributeV alue("crea tedonbehal fby", valu e);
  12221                                      this.OnP ropertyCha nged("Crea tedOnBehal fBy");
  12222                             }
  12223                    }
  12224                    
  12225                    ///  <summary>
  12226                    ///  Sequence n umber of t he import  that creat ed this re cord.
  12227                    ///  </summary>
  12228                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("impo rtsequence number")]
  12229                    publ ic System. Nullable<i nt> Import SequenceNu mber
  12230                    {
  12231                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12232                             get
  12233                             {
  12234                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("impor tsequencen umber");
  12235                             }
  12236                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12237                             set
  12238                             {
  12239                                      this.OnP ropertyCha nging("Imp ortSequenc eNumber");
  12240                                      this.Set AttributeV alue("impo rtsequence number", v alue);
  12241                                      this.OnP ropertyCha nged("Impo rtSequence Number");
  12242                             }
  12243                    }
  12244                    
  12245                    ///  <summary>
  12246                    ///  Unique ide ntifier of  the user  who modifi ed the rec ord.
  12247                    ///  </summary>
  12248                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedby")]
  12249                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedBy
  12250                    {
  12251                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12252                             get
  12253                             {
  12254                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedby") ;
  12255                             }
  12256                    }
  12257                    
  12258                    ///  <summary>
  12259                    ///  Date and t ime when t he record  was modifi ed.
  12260                    ///  </summary>
  12261                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedon")]
  12262                    publ ic System. Nullable<S ystem.Date Time> Modi fiedOn
  12263                    {
  12264                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12265                             get
  12266                             {
  12267                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("mod ifiedon");
  12268                             }
  12269                    }
  12270                    
  12271                    ///  <summary>
  12272                    ///  Unique ide ntifier of  the deleg ate user w ho modifie d the reco rd.
  12273                    ///  </summary>
  12274                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedonbeha lfby")]
  12275                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedOnBeh alfBy
  12276                    {
  12277                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12278                             get
  12279                             {
  12280                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedonbe halfby");
  12281                             }
  12282                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12283                             set
  12284                             {
  12285                                      this.OnP ropertyCha nging("Mod ifiedOnBeh alfBy");
  12286                                      this.Set AttributeV alue("modi fiedonbeha lfby", val ue);
  12287                                      this.OnP ropertyCha nged("Modi fiedOnBeha lfBy");
  12288                             }
  12289                    }
  12290                    
  12291                    ///  <summary>
  12292                    ///  Date and t ime that t he record  was migrat ed.
  12293                    ///  </summary>
  12294                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("over riddencrea tedon")]
  12295                    publ ic System. Nullable<S ystem.Date Time> Over riddenCrea tedOn
  12296                    {
  12297                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12298                             get
  12299                             {
  12300                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ove rriddencre atedon");
  12301                             }
  12302                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12303                             set
  12304                             {
  12305                                      this.OnP ropertyCha nging("Ove rriddenCre atedOn");
  12306                                      this.Set AttributeV alue("over riddencrea tedon", va lue);
  12307                                      this.OnP ropertyCha nged("Over riddenCrea tedOn");
  12308                             }
  12309                    }
  12310                    
  12311                    ///  <summary>
  12312                    ///  Owner Id
  12313                    ///  </summary>
  12314                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owne rid")]
  12315                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own erId
  12316                    {
  12317                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12318                             get
  12319                             {
  12320                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow nerid");
  12321                             }
  12322                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12323                             set
  12324                             {
  12325                                      this.OnP ropertyCha nging("Own erId");
  12326                                      this.Set AttributeV alue("owne rid", valu e);
  12327                                      this.OnP ropertyCha nged("Owne rId");
  12328                             }
  12329                    }
  12330                    
  12331                    ///  <summary>
  12332                    ///  Unique ide ntifier fo r the busi ness unit  that owns  the record
  12333                    ///  </summary>
  12334                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngbusiness unit")]
  12335                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingBusines sUnit
  12336                    {
  12337                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12338                             get
  12339                             {
  12340                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningbusine ssunit");
  12341                             }
  12342                    }
  12343                    
  12344                    ///  <summary>
  12345                    ///  Unique ide ntifier fo r the team  that owns  the recor d.
  12346                    ///  </summary>
  12347                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngteam")]
  12348                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingTeam
  12349                    {
  12350                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12351                             get
  12352                             {
  12353                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningteam") ;
  12354                             }
  12355                    }
  12356                    
  12357                    ///  <summary>
  12358                    ///  Unique ide ntifier fo r the user  that owns  the recor d.
  12359                    ///  </summary>
  12360                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni nguser")]
  12361                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingUser
  12362                    {
  12363                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12364                             get
  12365                             {
  12366                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ninguser") ;
  12367                             }
  12368                    }
  12369                    
  12370                    ///  <summary>
  12371                    /// 
  12372                    ///  </summary>
  12373                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _ccn")]
  12374                    publ ic System. Nullable<b ool> ppms_ ccn
  12375                    {
  12376                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12377                             get
  12378                             {
  12379                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("ppms _ccn");
  12380                             }
  12381                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12382                             set
  12383                             {
  12384                                      this.OnP ropertyCha nging("ppm s_ccn");
  12385                                      this.Set AttributeV alue("ppms _ccn", val ue);
  12386                                      this.OnP ropertyCha nged("ppms _ccn");
  12387                             }
  12388                    }
  12389                    
  12390                    ///  <summary>
  12391                    /// 
  12392                    ///  </summary>
  12393                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _ccnstatus enddate")]
  12394                    publ ic System. Nullable<S ystem.Date Time> ppms _ccnstatus enddate
  12395                    {
  12396                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12397                             get
  12398                             {
  12399                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ppm s_ccnstatu senddate") ;
  12400                             }
  12401                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12402                             set
  12403                             {
  12404                                      this.OnP ropertyCha nging("ppm s_ccnstatu senddate") ;
  12405                                      this.Set AttributeV alue("ppms _ccnstatus enddate",  value);
  12406                                      this.OnP ropertyCha nged("ppms _ccnstatus enddate");
  12407                             }
  12408                    }
  12409                    
  12410                    ///  <summary>
  12411                    /// 
  12412                    ///  </summary>
  12413                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _ccnstatus startdate" )]
  12414                    publ ic System. Nullable<S ystem.Date Time> ppms _ccnstatus startdate
  12415                    {
  12416                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12417                             get
  12418                             {
  12419                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ppm s_ccnstatu sstartdate ");
  12420                             }
  12421                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12422                             set
  12423                             {
  12424                                      this.OnP ropertyCha nging("ppm s_ccnstatu sstartdate ");
  12425                                      this.Set AttributeV alue("ppms _ccnstatus startdate" , value);
  12426                                      this.OnP ropertyCha nged("ppms _ccnstatus startdate" );
  12427                             }
  12428                    }
  12429                    
  12430                    ///  <summary>
  12431                    ///  Unique ide ntifier fo r entity i nstances
  12432                    ///  </summary>
  12433                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _historylo gid")]
  12434                    publ ic System. Nullable<S ystem.Guid > ppms_his torylogId
  12435                    {
  12436                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12437                             get
  12438                             {
  12439                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("ppms_hi storylogid ");
  12440                             }
  12441                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12442                             set
  12443                             {
  12444                                      this.OnP ropertyCha nging("ppm s_historyl ogId");
  12445                                      this.Set AttributeV alue("ppms _historylo gid", valu e);
  12446                                      if (valu e.HasValue )
  12447                                      {
  12448                                               base.Id =  value.Valu e;
  12449                                      }
  12450                                      else
  12451                                      {
  12452                                               base.Id =  System.Gui d.Empty;
  12453                                      }
  12454                                      this.OnP ropertyCha nged("ppms _historylo gId");
  12455                             }
  12456                    }
  12457                    
  12458                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _historylo gid")]
  12459                    publ ic overrid e System.G uid Id
  12460                    {
  12461                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12462                             get
  12463                             {
  12464                                      return b ase.Id;
  12465                             }
  12466                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12467                             set
  12468                             {
  12469                                      this.ppm s_historyl ogId = val ue;
  12470                             }
  12471                    }
  12472                    
  12473                    ///  <summary>
  12474                    ///  The name o f the cust om entity.
  12475                    ///  </summary>
  12476                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _name")]
  12477                    publ ic string  ppms_name
  12478                    {
  12479                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12480                             get
  12481                             {
  12482                                      return t his.GetAtt ributeValu e<string>( "ppms_name ");
  12483                             }
  12484                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12485                             set
  12486                             {
  12487                                      this.OnP ropertyCha nging("ppm s_name");
  12488                                      this.Set AttributeV alue("ppms _name", va lue);
  12489                                      this.OnP ropertyCha nged("ppms _name");
  12490                             }
  12491                    }
  12492                    
  12493                    ///  <summary>
  12494                    /// 
  12495                    ///  </summary>
  12496                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _onleie")]
  12497                    publ ic System. Nullable<b ool> ppms_ onleie
  12498                    {
  12499                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12500                             get
  12501                             {
  12502                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("ppms _onleie");
  12503                             }
  12504                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12505                             set
  12506                             {
  12507                                      this.OnP ropertyCha nging("ppm s_onleie") ;
  12508                                      this.Set AttributeV alue("ppms _onleie",  value);
  12509                                      this.OnP ropertyCha nged("ppms _onleie");
  12510                             }
  12511                    }
  12512                    
  12513                    ///  <summary>
  12514                    /// 
  12515                    ///  </summary>
  12516                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _onleiesta tusenddate ")]
  12517                    publ ic System. Nullable<S ystem.Date Time> ppms _onleiesta tusenddate
  12518                    {
  12519                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12520                             get
  12521                             {
  12522                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ppm s_onleiest atusenddat e");
  12523                             }
  12524                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12525                             set
  12526                             {
  12527                                      this.OnP ropertyCha nging("ppm s_onleiest atusenddat e");
  12528                                      this.Set AttributeV alue("ppms _onleiesta tusenddate ", value);
  12529                                      this.OnP ropertyCha nged("ppms _onleiesta tusenddate ");
  12530                             }
  12531                    }
  12532                    
  12533                    ///  <summary>
  12534                    /// 
  12535                    ///  </summary>
  12536                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _onleiesta tusstartda te")]
  12537                    publ ic System. Nullable<S ystem.Date Time> ppms _onleiesta tusstartda te
  12538                    {
  12539                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12540                             get
  12541                             {
  12542                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ppm s_onleiest atusstartd ate");
  12543                             }
  12544                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12545                             set
  12546                             {
  12547                                      this.OnP ropertyCha nging("ppm s_onleiest atusstartd ate");
  12548                                      this.Set AttributeV alue("ppms _onleiesta tusstartda te", value );
  12549                                      this.OnP ropertyCha nged("ppms _onleiesta tusstartda te");
  12550                             }
  12551                    }
  12552                    
  12553                    ///  <summary>
  12554                    /// 
  12555                    ///  </summary>
  12556                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _provideri d")]
  12557                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_provider id
  12558                    {
  12559                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12560                             get
  12561                             {
  12562                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_provide rid");
  12563                             }
  12564                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12565                             set
  12566                             {
  12567                                      this.OnP ropertyCha nging("ppm s_provider id");
  12568                                      this.Set AttributeV alue("ppms _provideri d", value) ;
  12569                                      this.OnP ropertyCha nged("ppms _provideri d");
  12570                             }
  12571                    }
  12572                    
  12573                    ///  <summary>
  12574                    /// 
  12575                    ///  </summary>
  12576                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providers tatus")]
  12577                    publ ic Microso ft.Xrm.Sdk .OptionSet Value ppms _providers tatus
  12578                    {
  12579                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12580                             get
  12581                             {
  12582                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("ppm s_provider status");
  12583                             }
  12584                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12585                             set
  12586                             {
  12587                                      this.OnP ropertyCha nging("ppm s_provider status");
  12588                                      this.Set AttributeV alue("ppms _providers tatus", va lue);
  12589                                      this.OnP ropertyCha nged("ppms _providers tatus");
  12590                             }
  12591                    }
  12592                    
  12593                    ///  <summary>
  12594                    /// 
  12595                    ///  </summary>
  12596                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providers tatusendda te")]
  12597                    publ ic System. Nullable<S ystem.Date Time> ppms _providers tatusendda te
  12598                    {
  12599                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12600                             get
  12601                             {
  12602                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ppm s_provider statusendd ate");
  12603                             }
  12604                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12605                             set
  12606                             {
  12607                                      this.OnP ropertyCha nging("ppm s_provider statusendd ate");
  12608                                      this.Set AttributeV alue("ppms _providers tatusendda te", value );
  12609                                      this.OnP ropertyCha nged("ppms _providers tatusendda te");
  12610                             }
  12611                    }
  12612                    
  12613                    ///  <summary>
  12614                    /// 
  12615                    ///  </summary>
  12616                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providers tatusstart date")]
  12617                    publ ic System. Nullable<S ystem.Date Time> ppms _providers tatusstart date
  12618                    {
  12619                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12620                             get
  12621                             {
  12622                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ppm s_provider statusstar tdate");
  12623                             }
  12624                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12625                             set
  12626                             {
  12627                                      this.OnP ropertyCha nging("ppm s_provider statusstar tdate");
  12628                                      this.Set AttributeV alue("ppms _providers tatusstart date", val ue);
  12629                                      this.OnP ropertyCha nged("ppms _providers tatusstart date");
  12630                             }
  12631                    }
  12632                    
  12633                    ///  <summary>
  12634                    /// 
  12635                    ///  </summary>
  12636                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _type")]
  12637                    publ ic Microso ft.Xrm.Sdk .OptionSet Value ppms _type
  12638                    {
  12639                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12640                             get
  12641                             {
  12642                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("ppm s_type");
  12643                             }
  12644                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12645                             set
  12646                             {
  12647                                      this.OnP ropertyCha nging("ppm s_type");
  12648                                      this.Set AttributeV alue("ppms _type", va lue);
  12649                                      this.OnP ropertyCha nged("ppms _type");
  12650                             }
  12651                    }
  12652                    
  12653                    ///  <summary>
  12654                    ///  Status of  the Histor y Log
  12655                    ///  </summary>
  12656                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat ecode")]
  12657                    publ ic System. Nullable<V A.PPMS.Con text.ppms_ historylog State> sta tecode
  12658                    {
  12659                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12660                             get
  12661                             {
  12662                                      Microsof t.Xrm.Sdk. OptionSetV alue optio nSet = thi s.GetAttri buteValue< Microsoft. Xrm.Sdk.Op tionSetVal ue>("state code");
  12663                                      if ((opt ionSet !=  null))
  12664                                      {
  12665                                               return ((V A.PPMS.Con text.ppms_ historylog State)(Sys tem.Enum.T oObject(ty peof(VA.PP MS.Context .ppms_hist orylogStat e), option Set.Value) ));
  12666                                      }
  12667                                      else
  12668                                      {
  12669                                               return nul l;
  12670                                      }
  12671                             }
  12672                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12673                             set
  12674                             {
  12675                                      this.OnP ropertyCha nging("sta tecode");
  12676                                      if ((val ue == null ))
  12677                                      {
  12678                                               this.SetAt tributeVal ue("statec ode", null );
  12679                                      }
  12680                                      else
  12681                                      {
  12682                                               this.SetAt tributeVal ue("statec ode", new  Microsoft. Xrm.Sdk.Op tionSetVal ue(((int)( value))));
  12683                                      }
  12684                                      this.OnP ropertyCha nged("stat ecode");
  12685                             }
  12686                    }
  12687                    
  12688                    ///  <summary>
  12689                    ///  Reason for  the statu s of the H istory Log
  12690                    ///  </summary>
  12691                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  12692                    publ ic Microso ft.Xrm.Sdk .OptionSet Value stat uscode
  12693                    {
  12694                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12695                             get
  12696                             {
  12697                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("sta tuscode");
  12698                             }
  12699                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12700                             set
  12701                             {
  12702                                      this.OnP ropertyCha nging("sta tuscode");
  12703                                      this.Set AttributeV alue("stat uscode", v alue);
  12704                                      this.OnP ropertyCha nged("stat uscode");
  12705                             }
  12706                    }
  12707                    
  12708                    ///  <summary>
  12709                    ///  For intern al use onl y.
  12710                    ///  </summary>
  12711                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("time zoneruleve rsionnumbe r")]
  12712                    publ ic System. Nullable<i nt> TimeZo neRuleVers ionNumber
  12713                    {
  12714                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12715                             get
  12716                             {
  12717                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("timez onerulever sionnumber ");
  12718                             }
  12719                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12720                             set
  12721                             {
  12722                                      this.OnP ropertyCha nging("Tim eZoneRuleV ersionNumb er");
  12723                                      this.Set AttributeV alue("time zoneruleve rsionnumbe r", value) ;
  12724                                      this.OnP ropertyCha nged("Time ZoneRuleVe rsionNumbe r");
  12725                             }
  12726                    }
  12727                    
  12728                    ///  <summary>
  12729                    ///  Time zone  code that  was in use  when the  record was  created.
  12730                    ///  </summary>
  12731                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("utcc onversiont imezonecod e")]
  12732                    publ ic System. Nullable<i nt> UTCCon versionTim eZoneCode
  12733                    {
  12734                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12735                             get
  12736                             {
  12737                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("utcco nversionti mezonecode ");
  12738                             }
  12739                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12740                             set
  12741                             {
  12742                                      this.OnP ropertyCha nging("UTC Conversion TimeZoneCo de");
  12743                                      this.Set AttributeV alue("utcc onversiont imezonecod e", value) ;
  12744                                      this.OnP ropertyCha nged("UTCC onversionT imeZoneCod e");
  12745                             }
  12746                    }
  12747                    
  12748                    ///  <summary>
  12749                    ///  Version Nu mber
  12750                    ///  </summary>
  12751                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("vers ionnumber" )]
  12752                    publ ic System. Nullable<l ong> Versi onNumber
  12753                    {
  12754                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12755                             get
  12756                             {
  12757                                      return t his.GetAtt ributeValu e<System.N ullable<lo ng>>("vers ionnumber" );
  12758                             }
  12759                    }
  12760                    
  12761                    ///  <summary>
  12762                    ///  N:1 ppms_a ccount_ppm s_historyl og_provide rid
  12763                    ///  </summary>
  12764                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _provideri d")]
  12765                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_account _ppms_hist orylog_pro viderid")]
  12766                    publ ic VA.PPMS .Context.A ccount ppm s_account_ ppms_histo rylog_prov iderid
  12767                    {
  12768                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12769                             get
  12770                             {
  12771                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.Acc ount>("ppm s_account_ ppms_histo rylog_prov iderid", n ull);
  12772                             }
  12773                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12774                             set
  12775                             {
  12776                                      this.OnP ropertyCha nging("ppm s_account_ ppms_histo rylog_prov iderid");
  12777                                      this.Set RelatedEnt ity<VA.PPM S.Context. Account>(" ppms_accou nt_ppms_hi storylog_p roviderid" , null, va lue);
  12778                                      this.OnP ropertyCha nged("ppms _account_p pms_histor ylog_provi derid");
  12779                             }
  12780                    }
  12781                    
  12782                    ///  <summary>
  12783                    ///  Constructo r for popu lating via  LINQ quer ies given  a LINQ ano nymous typ e
  12784                    ///  <param nam e="anonymo usType">LI NQ anonymo us type.</ param>
  12785                    ///  </summary>
  12786                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  12787                    publ ic ppms_hi storylog(o bject anon ymousType)  : 
  12788                                      this()
  12789                    {
  12790                foreach  (var p in  anonymousT ype.GetTyp e().GetPro perties())
  12791                {
  12792                    var  value = p. GetValue(a nonymousTy pe, null);
  12793                    var  name = p.N ame.ToLowe r();
  12794                
  12795                    if ( name.EndsW ith("enum" ) && value .GetType() .BaseType  == typeof( System.Enu m))
  12796                    {
  12797                         value = ne w Microsof t.Xrm.Sdk. OptionSetV alue((int)  value);
  12798                         name = nam e.Remove(n ame.Length  - "enum". Length);
  12799                    }
  12800                
  12801                    swit ch (name)
  12802                    {
  12803                         case "id":
  12804                             base.I d = (Syste m.Guid)val ue;
  12805                             Attrib utes["ppms _historylo gid"] = ba se.Id;
  12806                             break;
  12807                         case "ppms _historylo gid":
  12808                             var id  = (System .Nullable< System.Gui d>) value;
  12809                             if(id  == null){  continue;  }
  12810                             base.I d = id.Val ue;
  12811                             Attrib utes[name]  = base.Id ;
  12812                             break;
  12813                         case "form attedvalue s":
  12814                             // Add  Support f or Formatt edValues
  12815                             Format tedValues. AddRange(( Microsoft. Xrm.Sdk.Fo rmattedVal ueCollecti on)value);
  12816                             break;
  12817                         default:
  12818                             Attrib utes[name]  = value;
  12819                             break;
  12820                    }
  12821                }
  12822                    }
  12823                    
  12824                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providers tatus")]
  12825                    publ ic virtual  ppms_hist orylog_ppm s_provider status? pp ms_provide rstatusEnu m
  12826                    {
  12827                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12828                             get
  12829                             {
  12830                                      return ( (ppms_hist orylog_ppm s_provider status?)(E ntityOptio nSetEnum.G etEnum(thi s, "ppms_p rovidersta tus")));
  12831                             }
  12832                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12833                             set
  12834                             {
  12835                                      ppms_pro viderstatu s = value. HasValue ?  new Micro soft.Xrm.S dk.OptionS etValue((i nt)value)  : null;
  12836                             }
  12837                    }
  12838                    
  12839                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _type")]
  12840                    publ ic virtual  ppms_hist orylog_ppm s_type? pp ms_typeEnu m
  12841                    {
  12842                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12843                             get
  12844                             {
  12845                                      return ( (ppms_hist orylog_ppm s_type?)(E ntityOptio nSetEnum.G etEnum(thi s, "ppms_t ype")));
  12846                             }
  12847                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12848                             set
  12849                             {
  12850                                      ppms_typ e = value. HasValue ?  new Micro soft.Xrm.S dk.OptionS etValue((i nt)value)  : null;
  12851                             }
  12852                    }
  12853                    
  12854                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  12855                    publ ic virtual  ppms_hist orylog_Sta tusCode? s tatuscodeE num
  12856                    {
  12857                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12858                             get
  12859                             {
  12860                                      return ( (ppms_hist orylog_Sta tusCode?)( EntityOpti onSetEnum. GetEnum(th is, "statu scode")));
  12861                             }
  12862                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12863                             set
  12864                             {
  12865                                      statusco de = value .HasValue  ? new Micr osoft.Xrm. Sdk.Option SetValue(( int)value)  : null;
  12866                             }
  12867                    }
  12868           }
  12869           
  12870           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  12871           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  12872           pu blic enum  ppms_insti tutionStat e
  12873           {
  12874                    
  12875                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  12876                    Acti ve = 0,
  12877                    
  12878                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  12879                    Inac tive = 1,
  12880           }
  12881           
  12882           // / <summary >
  12883           // / Institut ions
  12884           // / </summar y>
  12885           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  12886           [M icrosoft.X rm.Sdk.Cli ent.Entity LogicalNam eAttribute ("ppms_ins titution") ]
  12887           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  12888           pu blic parti al class p pms_instit ution : Mi crosoft.Xr m.Sdk.Enti ty, System .Component Model.INot ifyPropert yChanging,  System.Co mponentMod el.INotify PropertyCh anged
  12889           {
  12890                    
  12891                    ///  <summary>
  12892                    ///  Default Co nstructor.
  12893                    ///  </summary>
  12894                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  12895                    publ ic ppms_in stitution( ) : 
  12896                                      base(Ent ityLogical Name)
  12897                    {
  12898                    }
  12899                    
  12900                    publ ic const s tring Enti tyLogicalN ame = "ppm s_institut ion";
  12901                    
  12902                    publ ic const i nt EntityT ypeCode =  10031;
  12903                    
  12904                    publ ic event S ystem.Comp onentModel .PropertyC hangedEven tHandler P ropertyCha nged;
  12905                    
  12906                    publ ic event S ystem.Comp onentModel .PropertyC hangingEve ntHandler  PropertyCh anging;
  12907                    
  12908                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  12909                    priv ate void O nPropertyC hanged(str ing proper tyName)
  12910                    {
  12911                             if ((t his.Proper tyChanged  != null))
  12912                             {
  12913                                      this.Pro pertyChang ed(this, n ew System. ComponentM odel.Prope rtyChanged EventArgs( propertyNa me));
  12914                             }
  12915                    }
  12916                    
  12917                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  12918                    priv ate void O nPropertyC hanging(st ring prope rtyName)
  12919                    {
  12920                             if ((t his.Proper tyChanging  != null))
  12921                             {
  12922                                      this.Pro pertyChang ing(this,  new System .Component Model.Prop ertyChangi ngEventArg s(property Name));
  12923                             }
  12924                    }
  12925                    
  12926                    ///  <summary>
  12927                    ///  Unique ide ntifier of  the user  who create d the reco rd.
  12928                    ///  </summary>
  12929                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedby")]
  12930                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedBy
  12931                    {
  12932                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12933                             get
  12934                             {
  12935                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedby");
  12936                             }
  12937                    }
  12938                    
  12939                    ///  <summary>
  12940                    ///  Date and t ime when t he record  was create d.
  12941                    ///  </summary>
  12942                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedon")]
  12943                    publ ic System. Nullable<S ystem.Date Time> Crea tedOn
  12944                    {
  12945                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12946                             get
  12947                             {
  12948                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("cre atedon");
  12949                             }
  12950                    }
  12951                    
  12952                    ///  <summary>
  12953                    ///  Unique ide ntifier of  the deleg ate user w ho created  the recor d.
  12954                    ///  </summary>
  12955                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedonbehal fby")]
  12956                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedOnBeha lfBy
  12957                    {
  12958                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12959                             get
  12960                             {
  12961                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedonbeh alfby");
  12962                             }
  12963                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12964                             set
  12965                             {
  12966                                      this.OnP ropertyCha nging("Cre atedOnBeha lfBy");
  12967                                      this.Set AttributeV alue("crea tedonbehal fby", valu e);
  12968                                      this.OnP ropertyCha nged("Crea tedOnBehal fBy");
  12969                             }
  12970                    }
  12971                    
  12972                    ///  <summary>
  12973                    ///  Sequence n umber of t he import  that creat ed this re cord.
  12974                    ///  </summary>
  12975                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("impo rtsequence number")]
  12976                    publ ic System. Nullable<i nt> Import SequenceNu mber
  12977                    {
  12978                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12979                             get
  12980                             {
  12981                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("impor tsequencen umber");
  12982                             }
  12983                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12984                             set
  12985                             {
  12986                                      this.OnP ropertyCha nging("Imp ortSequenc eNumber");
  12987                                      this.Set AttributeV alue("impo rtsequence number", v alue);
  12988                                      this.OnP ropertyCha nged("Impo rtSequence Number");
  12989                             }
  12990                    }
  12991                    
  12992                    ///  <summary>
  12993                    ///  Unique ide ntifier of  the user  who modifi ed the rec ord.
  12994                    ///  </summary>
  12995                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedby")]
  12996                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedBy
  12997                    {
  12998                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  12999                             get
  13000                             {
  13001                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedby") ;
  13002                             }
  13003                    }
  13004                    
  13005                    ///  <summary>
  13006                    ///  Date and t ime when t he record  was modifi ed.
  13007                    ///  </summary>
  13008                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedon")]
  13009                    publ ic System. Nullable<S ystem.Date Time> Modi fiedOn
  13010                    {
  13011                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13012                             get
  13013                             {
  13014                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("mod ifiedon");
  13015                             }
  13016                    }
  13017                    
  13018                    ///  <summary>
  13019                    ///  Unique ide ntifier of  the deleg ate user w ho modifie d the reco rd.
  13020                    ///  </summary>
  13021                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedonbeha lfby")]
  13022                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedOnBeh alfBy
  13023                    {
  13024                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13025                             get
  13026                             {
  13027                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedonbe halfby");
  13028                             }
  13029                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13030                             set
  13031                             {
  13032                                      this.OnP ropertyCha nging("Mod ifiedOnBeh alfBy");
  13033                                      this.Set AttributeV alue("modi fiedonbeha lfby", val ue);
  13034                                      this.OnP ropertyCha nged("Modi fiedOnBeha lfBy");
  13035                             }
  13036                    }
  13037                    
  13038                    ///  <summary>
  13039                    ///  Date and t ime that t he record  was migrat ed.
  13040                    ///  </summary>
  13041                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("over riddencrea tedon")]
  13042                    publ ic System. Nullable<S ystem.Date Time> Over riddenCrea tedOn
  13043                    {
  13044                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13045                             get
  13046                             {
  13047                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ove rriddencre atedon");
  13048                             }
  13049                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13050                             set
  13051                             {
  13052                                      this.OnP ropertyCha nging("Ove rriddenCre atedOn");
  13053                                      this.Set AttributeV alue("over riddencrea tedon", va lue);
  13054                                      this.OnP ropertyCha nged("Over riddenCrea tedOn");
  13055                             }
  13056                    }
  13057                    
  13058                    ///  <summary>
  13059                    ///  Owner Id
  13060                    ///  </summary>
  13061                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owne rid")]
  13062                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own erId
  13063                    {
  13064                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13065                             get
  13066                             {
  13067                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow nerid");
  13068                             }
  13069                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13070                             set
  13071                             {
  13072                                      this.OnP ropertyCha nging("Own erId");
  13073                                      this.Set AttributeV alue("owne rid", valu e);
  13074                                      this.OnP ropertyCha nged("Owne rId");
  13075                             }
  13076                    }
  13077                    
  13078                    ///  <summary>
  13079                    ///  Unique ide ntifier fo r the busi ness unit  that owns  the record
  13080                    ///  </summary>
  13081                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngbusiness unit")]
  13082                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingBusines sUnit
  13083                    {
  13084                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13085                             get
  13086                             {
  13087                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningbusine ssunit");
  13088                             }
  13089                    }
  13090                    
  13091                    ///  <summary>
  13092                    ///  Unique ide ntifier fo r the team  that owns  the recor d.
  13093                    ///  </summary>
  13094                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngteam")]
  13095                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingTeam
  13096                    {
  13097                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13098                             get
  13099                             {
  13100                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningteam") ;
  13101                             }
  13102                    }
  13103                    
  13104                    ///  <summary>
  13105                    ///  Unique ide ntifier fo r the user  that owns  the recor d.
  13106                    ///  </summary>
  13107                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni nguser")]
  13108                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingUser
  13109                    {
  13110                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13111                             get
  13112                             {
  13113                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ninguser") ;
  13114                             }
  13115                    }
  13116                    
  13117                    ///  <summary>
  13118                    ///  Unique ide ntifier fo r entity i nstances
  13119                    ///  </summary>
  13120                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _instituti onid")]
  13121                    publ ic System. Nullable<S ystem.Guid > ppms_ins titutionId
  13122                    {
  13123                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13124                             get
  13125                             {
  13126                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("ppms_in stitutioni d");
  13127                             }
  13128                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13129                             set
  13130                             {
  13131                                      this.OnP ropertyCha nging("ppm s_institut ionId");
  13132                                      this.Set AttributeV alue("ppms _instituti onid", val ue);
  13133                                      if (valu e.HasValue )
  13134                                      {
  13135                                               base.Id =  value.Valu e;
  13136                                      }
  13137                                      else
  13138                                      {
  13139                                               base.Id =  System.Gui d.Empty;
  13140                                      }
  13141                                      this.OnP ropertyCha nged("ppms _instituti onId");
  13142                             }
  13143                    }
  13144                    
  13145                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _instituti onid")]
  13146                    publ ic overrid e System.G uid Id
  13147                    {
  13148                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13149                             get
  13150                             {
  13151                                      return b ase.Id;
  13152                             }
  13153                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13154                             set
  13155                             {
  13156                                      this.ppm s_institut ionId = va lue;
  13157                             }
  13158                    }
  13159                    
  13160                    ///  <summary>
  13161                    /// 
  13162                    ///  </summary>
  13163                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _name")]
  13164                    publ ic string  ppms_name
  13165                    {
  13166                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13167                             get
  13168                             {
  13169                                      return t his.GetAtt ributeValu e<string>( "ppms_name ");
  13170                             }
  13171                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13172                             set
  13173                             {
  13174                                      this.OnP ropertyCha nging("ppm s_name");
  13175                                      this.Set AttributeV alue("ppms _name", va lue);
  13176                                      this.OnP ropertyCha nged("ppms _name");
  13177                             }
  13178                    }
  13179                    
  13180                    ///  <summary>
  13181                    ///  Provider A greement
  13182                    ///  </summary>
  13183                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providera greementid ")]
  13184                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_Provider AgreementI d
  13185                    {
  13186                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13187                             get
  13188                             {
  13189                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_provide ragreement id");
  13190                             }
  13191                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13192                             set
  13193                             {
  13194                                      this.OnP ropertyCha nging("ppm s_Provider AgreementI d");
  13195                                      this.Set AttributeV alue("ppms _providera greementid ", value);
  13196                                      this.OnP ropertyCha nged("ppms _ProviderA greementId ");
  13197                             }
  13198                    }
  13199                    
  13200                    ///  <summary>
  13201                    ///  Station Nu mber
  13202                    ///  </summary>
  13203                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _stationnu mber")]
  13204                    publ ic string  ppms_stati onnumber
  13205                    {
  13206                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13207                             get
  13208                             {
  13209                                      return t his.GetAtt ributeValu e<string>( "ppms_stat ionnumber" );
  13210                             }
  13211                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13212                             set
  13213                             {
  13214                                      this.OnP ropertyCha nging("ppm s_stationn umber");
  13215                                      this.Set AttributeV alue("ppms _stationnu mber", val ue);
  13216                                      this.OnP ropertyCha nged("ppms _stationnu mber");
  13217                             }
  13218                    }
  13219                    
  13220                    ///  <summary>
  13221                    ///  Station Ty pe
  13222                    ///  </summary>
  13223                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _stationty pe")]
  13224                    publ ic string  ppms_stati ontype
  13225                    {
  13226                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13227                             get
  13228                             {
  13229                                      return t his.GetAtt ributeValu e<string>( "ppms_stat iontype");
  13230                             }
  13231                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13232                             set
  13233                             {
  13234                                      this.OnP ropertyCha nging("ppm s_stationt ype");
  13235                                      this.Set AttributeV alue("ppms _stationty pe", value );
  13236                                      this.OnP ropertyCha nged("ppms _stationty pe");
  13237                             }
  13238                    }
  13239                    
  13240                    ///  <summary>
  13241                    ///  VISN
  13242                    ///  </summary>
  13243                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _visn")]
  13244                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_visn
  13245                    {
  13246                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13247                             get
  13248                             {
  13249                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_visn");
  13250                             }
  13251                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13252                             set
  13253                             {
  13254                                      this.OnP ropertyCha nging("ppm s_visn");
  13255                                      this.Set AttributeV alue("ppms _visn", va lue);
  13256                                      this.OnP ropertyCha nged("ppms _visn");
  13257                             }
  13258                    }
  13259                    
  13260                    ///  <summary>
  13261                    ///  Status of  the Instit ution
  13262                    ///  </summary>
  13263                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat ecode")]
  13264                    publ ic System. Nullable<V A.PPMS.Con text.ppms_ institutio nState> st atecode
  13265                    {
  13266                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13267                             get
  13268                             {
  13269                                      Microsof t.Xrm.Sdk. OptionSetV alue optio nSet = thi s.GetAttri buteValue< Microsoft. Xrm.Sdk.Op tionSetVal ue>("state code");
  13270                                      if ((opt ionSet !=  null))
  13271                                      {
  13272                                               return ((V A.PPMS.Con text.ppms_ institutio nState)(Sy stem.Enum. ToObject(t ypeof(VA.P PMS.Contex t.ppms_ins titutionSt ate), opti onSet.Valu e)));
  13273                                      }
  13274                                      else
  13275                                      {
  13276                                               return nul l;
  13277                                      }
  13278                             }
  13279                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13280                             set
  13281                             {
  13282                                      this.OnP ropertyCha nging("sta tecode");
  13283                                      if ((val ue == null ))
  13284                                      {
  13285                                               this.SetAt tributeVal ue("statec ode", null );
  13286                                      }
  13287                                      else
  13288                                      {
  13289                                               this.SetAt tributeVal ue("statec ode", new  Microsoft. Xrm.Sdk.Op tionSetVal ue(((int)( value))));
  13290                                      }
  13291                                      this.OnP ropertyCha nged("stat ecode");
  13292                             }
  13293                    }
  13294                    
  13295                    ///  <summary>
  13296                    ///  Reason for  the statu s of the I nstitution
  13297                    ///  </summary>
  13298                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  13299                    publ ic Microso ft.Xrm.Sdk .OptionSet Value stat uscode
  13300                    {
  13301                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13302                             get
  13303                             {
  13304                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("sta tuscode");
  13305                             }
  13306                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13307                             set
  13308                             {
  13309                                      this.OnP ropertyCha nging("sta tuscode");
  13310                                      this.Set AttributeV alue("stat uscode", v alue);
  13311                                      this.OnP ropertyCha nged("stat uscode");
  13312                             }
  13313                    }
  13314                    
  13315                    ///  <summary>
  13316                    ///  For intern al use onl y.
  13317                    ///  </summary>
  13318                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("time zoneruleve rsionnumbe r")]
  13319                    publ ic System. Nullable<i nt> TimeZo neRuleVers ionNumber
  13320                    {
  13321                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13322                             get
  13323                             {
  13324                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("timez onerulever sionnumber ");
  13325                             }
  13326                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13327                             set
  13328                             {
  13329                                      this.OnP ropertyCha nging("Tim eZoneRuleV ersionNumb er");
  13330                                      this.Set AttributeV alue("time zoneruleve rsionnumbe r", value) ;
  13331                                      this.OnP ropertyCha nged("Time ZoneRuleVe rsionNumbe r");
  13332                             }
  13333                    }
  13334                    
  13335                    ///  <summary>
  13336                    ///  Time zone  code that  was in use  when the  record was  created.
  13337                    ///  </summary>
  13338                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("utcc onversiont imezonecod e")]
  13339                    publ ic System. Nullable<i nt> UTCCon versionTim eZoneCode
  13340                    {
  13341                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13342                             get
  13343                             {
  13344                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("utcco nversionti mezonecode ");
  13345                             }
  13346                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13347                             set
  13348                             {
  13349                                      this.OnP ropertyCha nging("UTC Conversion TimeZoneCo de");
  13350                                      this.Set AttributeV alue("utcc onversiont imezonecod e", value) ;
  13351                                      this.OnP ropertyCha nged("UTCC onversionT imeZoneCod e");
  13352                             }
  13353                    }
  13354                    
  13355                    ///  <summary>
  13356                    /// 
  13357                    ///  </summary>
  13358                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("vers ionnumber" )]
  13359                    publ ic System. Nullable<l ong> Versi onNumber
  13360                    {
  13361                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13362                             get
  13363                             {
  13364                                      return t his.GetAtt ributeValu e<System.N ullable<lo ng>>("vers ionnumber" );
  13365                             }
  13366                    }
  13367                    
  13368                    ///  <summary>
  13369                    ///  1:N ppms_i nstitution _vainstitu tionaffili ation_Inst itution
  13370                    ///  </summary>
  13371                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_institu tion_vains titutionaf filiation_ Institutio n")]
  13372                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_vainsti tutionaffi liation> p pms_instit ution_vain stitutiona ffiliation _Instituti on
  13373                    {
  13374                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13375                             get
  13376                             {
  13377                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_vainst itutionaff iliation>( "ppms_inst itution_va institutio naffiliati on_Institu tion", nul l);
  13378                             }
  13379                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13380                             set
  13381                             {
  13382                                      this.OnP ropertyCha nging("ppm s_institut ion_vainst itutionaff iliation_I nstitution ");
  13383                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_vai nstitution affiliatio n>("ppms_i nstitution _vainstitu tionaffili ation_Inst itution",  null, valu e);
  13384                                      this.OnP ropertyCha nged("ppms _instituti on_vainsti tutionaffi liation_In stitution" );
  13385                             }
  13386                    }
  13387                    
  13388                    ///  <summary>
  13389                    ///  N:1 ppms_p pms_provid eragreemen t_ppms_ins titution
  13390                    ///  </summary>
  13391                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providera greementid ")]
  13392                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_ppms_pr ovideragre ement_ppms _instituti on")]
  13393                    publ ic VA.PPMS .Context.p pms_provid eragreemen t ppms_ppm s_provider agreement_ ppms_insti tution
  13394                    {
  13395                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13396                             get
  13397                             {
  13398                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.ppm s_provider agreement> ("ppms_ppm s_provider agreement_ ppms_insti tution", n ull);
  13399                             }
  13400                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13401                             set
  13402                             {
  13403                                      this.OnP ropertyCha nging("ppm s_ppms_pro videragree ment_ppms_ institutio n");
  13404                                      this.Set RelatedEnt ity<VA.PPM S.Context. ppms_provi deragreeme nt>("ppms_ ppms_provi deragreeme nt_ppms_in stitution" , null, va lue);
  13405                                      this.OnP ropertyCha nged("ppms _ppms_prov ideragreem ent_ppms_i nstitution ");
  13406                             }
  13407                    }
  13408                    
  13409                    ///  <summary>
  13410                    ///  N:1 ppms_v a_visn_ppm s_institut ion_visn
  13411                    ///  </summary>
  13412                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _visn")]
  13413                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_va_visn _ppms_inst itution_vi sn")]
  13414                    publ ic VA.PPMS .Context.v a_visn ppm s_va_visn_ ppms_insti tution_vis n
  13415                    {
  13416                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13417                             get
  13418                             {
  13419                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.va_ visn>("ppm s_va_visn_ ppms_insti tution_vis n", null);
  13420                             }
  13421                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13422                             set
  13423                             {
  13424                                      this.OnP ropertyCha nging("ppm s_va_visn_ ppms_insti tution_vis n");
  13425                                      this.Set RelatedEnt ity<VA.PPM S.Context. va_visn>(" ppms_va_vi sn_ppms_in stitution_ visn", nul l, value);
  13426                                      this.OnP ropertyCha nged("ppms _va_visn_p pms_instit ution_visn ");
  13427                             }
  13428                    }
  13429                    
  13430                    ///  <summary>
  13431                    ///  Constructo r for popu lating via  LINQ quer ies given  a LINQ ano nymous typ e
  13432                    ///  <param nam e="anonymo usType">LI NQ anonymo us type.</ param>
  13433                    ///  </summary>
  13434                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  13435                    publ ic ppms_in stitution( object ano nymousType ) : 
  13436                                      this()
  13437                    {
  13438                foreach  (var p in  anonymousT ype.GetTyp e().GetPro perties())
  13439                {
  13440                    var  value = p. GetValue(a nonymousTy pe, null);
  13441                    var  name = p.N ame.ToLowe r();
  13442                
  13443                    if ( name.EndsW ith("enum" ) && value .GetType() .BaseType  == typeof( System.Enu m))
  13444                    {
  13445                         value = ne w Microsof t.Xrm.Sdk. OptionSetV alue((int)  value);
  13446                         name = nam e.Remove(n ame.Length  - "enum". Length);
  13447                    }
  13448                
  13449                    swit ch (name)
  13450                    {
  13451                         case "id":
  13452                             base.I d = (Syste m.Guid)val ue;
  13453                             Attrib utes["ppms _instituti onid"] = b ase.Id;
  13454                             break;
  13455                         case "ppms _instituti onid":
  13456                             var id  = (System .Nullable< System.Gui d>) value;
  13457                             if(id  == null){  continue;  }
  13458                             base.I d = id.Val ue;
  13459                             Attrib utes[name]  = base.Id ;
  13460                             break;
  13461                         case "form attedvalue s":
  13462                             // Add  Support f or Formatt edValues
  13463                             Format tedValues. AddRange(( Microsoft. Xrm.Sdk.Fo rmattedVal ueCollecti on)value);
  13464                             break;
  13465                         default:
  13466                             Attrib utes[name]  = value;
  13467                             break;
  13468                    }
  13469                }
  13470                    }
  13471                    
  13472                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  13473                    publ ic virtual  ppms_inst itution_St atusCode?  statuscode Enum
  13474                    {
  13475                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13476                             get
  13477                             {
  13478                                      return ( (ppms_inst itution_St atusCode?) (EntityOpt ionSetEnum .GetEnum(t his, "stat uscode"))) ;
  13479                             }
  13480                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13481                             set
  13482                             {
  13483                                      statusco de = value .HasValue  ? new Micr osoft.Xrm. Sdk.Option SetValue(( int)value)  : null;
  13484                             }
  13485                    }
  13486           }
  13487           
  13488           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  13489           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  13490           pu blic enum  ppms_leiee xclusionSt ate
  13491           {
  13492                    
  13493                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  13494                    Acti ve = 0,
  13495                    
  13496                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  13497                    Inac tive = 1,
  13498           }
  13499           
  13500           // / <summary >
  13501           //
  13502           // / </summar y>
  13503           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  13504           [M icrosoft.X rm.Sdk.Cli ent.Entity LogicalNam eAttribute ("ppms_lei eexclusion ")]
  13505           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  13506           pu blic parti al class p pms_leieex clusion :  Microsoft. Xrm.Sdk.En tity, Syst em.Compone ntModel.IN otifyPrope rtyChangin g, System. ComponentM odel.INoti fyProperty Changed
  13507           {
  13508                    
  13509                    ///  <summary>
  13510                    ///  Default Co nstructor.
  13511                    ///  </summary>
  13512                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  13513                    publ ic ppms_le ieexclusio n() : 
  13514                                      base(Ent ityLogical Name)
  13515                    {
  13516                    }
  13517                    
  13518                    publ ic const s tring Enti tyLogicalN ame = "ppm s_leieexcl usion";
  13519                    
  13520                    publ ic const i nt EntityT ypeCode =  10084;
  13521                    
  13522                    publ ic event S ystem.Comp onentModel .PropertyC hangedEven tHandler P ropertyCha nged;
  13523                    
  13524                    publ ic event S ystem.Comp onentModel .PropertyC hangingEve ntHandler  PropertyCh anging;
  13525                    
  13526                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  13527                    priv ate void O nPropertyC hanged(str ing proper tyName)
  13528                    {
  13529                             if ((t his.Proper tyChanged  != null))
  13530                             {
  13531                                      this.Pro pertyChang ed(this, n ew System. ComponentM odel.Prope rtyChanged EventArgs( propertyNa me));
  13532                             }
  13533                    }
  13534                    
  13535                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  13536                    priv ate void O nPropertyC hanging(st ring prope rtyName)
  13537                    {
  13538                             if ((t his.Proper tyChanging  != null))
  13539                             {
  13540                                      this.Pro pertyChang ing(this,  new System .Component Model.Prop ertyChangi ngEventArg s(property Name));
  13541                             }
  13542                    }
  13543                    
  13544                    ///  <summary>
  13545                    ///  Unique ide ntifier of  the user  who create d the reco rd.
  13546                    ///  </summary>
  13547                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedby")]
  13548                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedBy
  13549                    {
  13550                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13551                             get
  13552                             {
  13553                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedby");
  13554                             }
  13555                    }
  13556                    
  13557                    ///  <summary>
  13558                    ///  Date and t ime when t he record  was create d.
  13559                    ///  </summary>
  13560                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedon")]
  13561                    publ ic System. Nullable<S ystem.Date Time> Crea tedOn
  13562                    {
  13563                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13564                             get
  13565                             {
  13566                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("cre atedon");
  13567                             }
  13568                    }
  13569                    
  13570                    ///  <summary>
  13571                    ///  Unique ide ntifier of  the deleg ate user w ho created  the recor d.
  13572                    ///  </summary>
  13573                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedonbehal fby")]
  13574                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedOnBeha lfBy
  13575                    {
  13576                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13577                             get
  13578                             {
  13579                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedonbeh alfby");
  13580                             }
  13581                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13582                             set
  13583                             {
  13584                                      this.OnP ropertyCha nging("Cre atedOnBeha lfBy");
  13585                                      this.Set AttributeV alue("crea tedonbehal fby", valu e);
  13586                                      this.OnP ropertyCha nged("Crea tedOnBehal fBy");
  13587                             }
  13588                    }
  13589                    
  13590                    ///  <summary>
  13591                    ///  Sequence n umber of t he import  that creat ed this re cord.
  13592                    ///  </summary>
  13593                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("impo rtsequence number")]
  13594                    publ ic System. Nullable<i nt> Import SequenceNu mber
  13595                    {
  13596                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13597                             get
  13598                             {
  13599                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("impor tsequencen umber");
  13600                             }
  13601                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13602                             set
  13603                             {
  13604                                      this.OnP ropertyCha nging("Imp ortSequenc eNumber");
  13605                                      this.Set AttributeV alue("impo rtsequence number", v alue);
  13606                                      this.OnP ropertyCha nged("Impo rtSequence Number");
  13607                             }
  13608                    }
  13609                    
  13610                    ///  <summary>
  13611                    ///  Unique ide ntifier of  the user  who modifi ed the rec ord.
  13612                    ///  </summary>
  13613                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedby")]
  13614                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedBy
  13615                    {
  13616                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13617                             get
  13618                             {
  13619                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedby") ;
  13620                             }
  13621                    }
  13622                    
  13623                    ///  <summary>
  13624                    ///  Date and t ime when t he record  was modifi ed.
  13625                    ///  </summary>
  13626                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedon")]
  13627                    publ ic System. Nullable<S ystem.Date Time> Modi fiedOn
  13628                    {
  13629                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13630                             get
  13631                             {
  13632                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("mod ifiedon");
  13633                             }
  13634                    }
  13635                    
  13636                    ///  <summary>
  13637                    ///  Unique ide ntifier of  the deleg ate user w ho modifie d the reco rd.
  13638                    ///  </summary>
  13639                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedonbeha lfby")]
  13640                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedOnBeh alfBy
  13641                    {
  13642                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13643                             get
  13644                             {
  13645                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedonbe halfby");
  13646                             }
  13647                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13648                             set
  13649                             {
  13650                                      this.OnP ropertyCha nging("Mod ifiedOnBeh alfBy");
  13651                                      this.Set AttributeV alue("modi fiedonbeha lfby", val ue);
  13652                                      this.OnP ropertyCha nged("Modi fiedOnBeha lfBy");
  13653                             }
  13654                    }
  13655                    
  13656                    ///  <summary>
  13657                    ///  Date and t ime that t he record  was migrat ed.
  13658                    ///  </summary>
  13659                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("over riddencrea tedon")]
  13660                    publ ic System. Nullable<S ystem.Date Time> Over riddenCrea tedOn
  13661                    {
  13662                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13663                             get
  13664                             {
  13665                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ove rriddencre atedon");
  13666                             }
  13667                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13668                             set
  13669                             {
  13670                                      this.OnP ropertyCha nging("Ove rriddenCre atedOn");
  13671                                      this.Set AttributeV alue("over riddencrea tedon", va lue);
  13672                                      this.OnP ropertyCha nged("Over riddenCrea tedOn");
  13673                             }
  13674                    }
  13675                    
  13676                    ///  <summary>
  13677                    ///  Owner Id
  13678                    ///  </summary>
  13679                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owne rid")]
  13680                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own erId
  13681                    {
  13682                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13683                             get
  13684                             {
  13685                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow nerid");
  13686                             }
  13687                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13688                             set
  13689                             {
  13690                                      this.OnP ropertyCha nging("Own erId");
  13691                                      this.Set AttributeV alue("owne rid", valu e);
  13692                                      this.OnP ropertyCha nged("Owne rId");
  13693                             }
  13694                    }
  13695                    
  13696                    ///  <summary>
  13697                    ///  Unique ide ntifier fo r the busi ness unit  that owns  the record
  13698                    ///  </summary>
  13699                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngbusiness unit")]
  13700                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingBusines sUnit
  13701                    {
  13702                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13703                             get
  13704                             {
  13705                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningbusine ssunit");
  13706                             }
  13707                    }
  13708                    
  13709                    ///  <summary>
  13710                    ///  Unique ide ntifier fo r the team  that owns  the recor d.
  13711                    ///  </summary>
  13712                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngteam")]
  13713                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingTeam
  13714                    {
  13715                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13716                             get
  13717                             {
  13718                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningteam") ;
  13719                             }
  13720                    }
  13721                    
  13722                    ///  <summary>
  13723                    ///  Unique ide ntifier fo r the user  that owns  the recor d.
  13724                    ///  </summary>
  13725                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni nguser")]
  13726                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingUser
  13727                    {
  13728                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13729                             get
  13730                             {
  13731                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ninguser") ;
  13732                             }
  13733                    }
  13734                    
  13735                    ///  <summary>
  13736                    ///  Action
  13737                    ///  </summary>
  13738                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _action")]
  13739                    publ ic Microso ft.Xrm.Sdk .OptionSet Value ppms _action
  13740                    {
  13741                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13742                             get
  13743                             {
  13744                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("ppm s_action") ;
  13745                             }
  13746                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13747                             set
  13748                             {
  13749                                      this.OnP ropertyCha nging("ppm s_action") ;
  13750                                      this.Set AttributeV alue("ppms _action",  value);
  13751                                      this.OnP ropertyCha nged("ppms _action");
  13752                             }
  13753                    }
  13754                    
  13755                    ///  <summary>
  13756                    ///  Address
  13757                    ///  </summary>
  13758                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _address") ]
  13759                    publ ic string  ppms_addre ss
  13760                    {
  13761                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13762                             get
  13763                             {
  13764                                      return t his.GetAtt ributeValu e<string>( "ppms_addr ess");
  13765                             }
  13766                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13767                             set
  13768                             {
  13769                                      this.OnP ropertyCha nging("ppm s_address" );
  13770                                      this.Set AttributeV alue("ppms _address",  value);
  13771                                      this.OnP ropertyCha nged("ppms _address") ;
  13772                             }
  13773                    }
  13774                    
  13775                    ///  <summary>
  13776                    /// 
  13777                    ///  </summary>
  13778                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _batch")]
  13779                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_batch
  13780                    {
  13781                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13782                             get
  13783                             {
  13784                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_batch") ;
  13785                             }
  13786                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13787                             set
  13788                             {
  13789                                      this.OnP ropertyCha nging("ppm s_batch");
  13790                                      this.Set AttributeV alue("ppms _batch", v alue);
  13791                                      this.OnP ropertyCha nged("ppms _batch");
  13792                             }
  13793                    }
  13794                    
  13795                    ///  <summary>
  13796                    ///  Business N ame
  13797                    ///  </summary>
  13798                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _busiiness name")]
  13799                    publ ic string  ppms_busii nessname
  13800                    {
  13801                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13802                             get
  13803                             {
  13804                                      return t his.GetAtt ributeValu e<string>( "ppms_busi inessname" );
  13805                             }
  13806                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13807                             set
  13808                             {
  13809                                      this.OnP ropertyCha nging("ppm s_busiines sname");
  13810                                      this.Set AttributeV alue("ppms _busiiness name", val ue);
  13811                                      this.OnP ropertyCha nged("ppms _busiiness name");
  13812                             }
  13813                    }
  13814                    
  13815                    ///  <summary>
  13816                    ///  City
  13817                    ///  </summary>
  13818                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _city")]
  13819                    publ ic string  ppms_city
  13820                    {
  13821                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13822                             get
  13823                             {
  13824                                      return t his.GetAtt ributeValu e<string>( "ppms_city ");
  13825                             }
  13826                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13827                             set
  13828                             {
  13829                                      this.OnP ropertyCha nging("ppm s_city");
  13830                                      this.Set AttributeV alue("ppms _city", va lue);
  13831                                      this.OnP ropertyCha nged("ppms _city");
  13832                             }
  13833                    }
  13834                    
  13835                    ///  <summary>
  13836                    ///  Composite
  13837                    ///  </summary>
  13838                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _composite ")]
  13839                    publ ic string  ppms_compo site
  13840                    {
  13841                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13842                             get
  13843                             {
  13844                                      return t his.GetAtt ributeValu e<string>( "ppms_comp osite");
  13845                             }
  13846                    }
  13847                    
  13848                    ///  <summary>
  13849                    ///  Descriptio n
  13850                    ///  </summary>
  13851                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _descripti on")]
  13852                    publ ic string  ppms_descr iption
  13853                    {
  13854                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13855                             get
  13856                             {
  13857                                      return t his.GetAtt ributeValu e<string>( "ppms_desc ription");
  13858                             }
  13859                    }
  13860                    
  13861                    ///  <summary>
  13862                    ///  Date of Bi rth
  13863                    ///  </summary>
  13864                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _dob")]
  13865                    publ ic System. Nullable<S ystem.Date Time> ppms _dob
  13866                    {
  13867                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13868                             get
  13869                             {
  13870                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ppm s_dob");
  13871                             }
  13872                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13873                             set
  13874                             {
  13875                                      this.OnP ropertyCha nging("ppm s_dob");
  13876                                      this.Set AttributeV alue("ppms _dob", val ue);
  13877                                      this.OnP ropertyCha nged("ppms _dob");
  13878                             }
  13879                    }
  13880                    
  13881                    ///  <summary>
  13882                    ///  Exclusion  Date
  13883                    ///  </summary>
  13884                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _exclusion date")]
  13885                    publ ic System. Nullable<S ystem.Date Time> ppms _exclusion date
  13886                    {
  13887                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13888                             get
  13889                             {
  13890                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ppm s_exclusio ndate");
  13891                             }
  13892                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13893                             set
  13894                             {
  13895                                      this.OnP ropertyCha nging("ppm s_exclusio ndate");
  13896                                      this.Set AttributeV alue("ppms _exclusion date", val ue);
  13897                                      this.OnP ropertyCha nged("ppms _exclusion date");
  13898                             }
  13899                    }
  13900                    
  13901                    ///  <summary>
  13902                    ///  Exclusion  Type 1
  13903                    ///  </summary>
  13904                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _exclusion type1")]
  13905                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_exclusio ntype1
  13906                    {
  13907                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13908                             get
  13909                             {
  13910                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_exclusi ontype1");
  13911                             }
  13912                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13913                             set
  13914                             {
  13915                                      this.OnP ropertyCha nging("ppm s_exclusio ntype1");
  13916                                      this.Set AttributeV alue("ppms _exclusion type1", va lue);
  13917                                      this.OnP ropertyCha nged("ppms _exclusion type1");
  13918                             }
  13919                    }
  13920                    
  13921                    ///  <summary>
  13922                    ///  Exclusion  Type 2
  13923                    ///  </summary>
  13924                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _exclusion type2")]
  13925                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_exclusio ntype2
  13926                    {
  13927                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13928                             get
  13929                             {
  13930                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_exclusi ontype2");
  13931                             }
  13932                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13933                             set
  13934                             {
  13935                                      this.OnP ropertyCha nging("ppm s_exclusio ntype2");
  13936                                      this.Set AttributeV alue("ppms _exclusion type2", va lue);
  13937                                      this.OnP ropertyCha nged("ppms _exclusion type2");
  13938                             }
  13939                    }
  13940                    
  13941                    ///  <summary>
  13942                    ///  Exclusion  Type 3
  13943                    ///  </summary>
  13944                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _exclusion type3")]
  13945                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_exclusio ntype3
  13946                    {
  13947                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13948                             get
  13949                             {
  13950                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_exclusi ontype3");
  13951                             }
  13952                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13953                             set
  13954                             {
  13955                                      this.OnP ropertyCha nging("ppm s_exclusio ntype3");
  13956                                      this.Set AttributeV alue("ppms _exclusion type3", va lue);
  13957                                      this.OnP ropertyCha nged("ppms _exclusion type3");
  13958                             }
  13959                    }
  13960                    
  13961                    ///  <summary>
  13962                    ///  First Name
  13963                    ///  </summary>
  13964                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _firstname ")]
  13965                    publ ic string  ppms_first name
  13966                    {
  13967                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13968                             get
  13969                             {
  13970                                      return t his.GetAtt ributeValu e<string>( "ppms_firs tname");
  13971                             }
  13972                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13973                             set
  13974                             {
  13975                                      this.OnP ropertyCha nging("ppm s_firstnam e");
  13976                                      this.Set AttributeV alue("ppms _firstname ", value);
  13977                                      this.OnP ropertyCha nged("ppms _firstname ");
  13978                             }
  13979                    }
  13980                    
  13981                    ///  <summary>
  13982                    ///  Last Name
  13983                    ///  </summary>
  13984                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _lastname" )]
  13985                    publ ic string  ppms_lastn ame
  13986                    {
  13987                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13988                             get
  13989                             {
  13990                                      return t his.GetAtt ributeValu e<string>( "ppms_last name");
  13991                             }
  13992                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  13993                             set
  13994                             {
  13995                                      this.OnP ropertyCha nging("ppm s_lastname ");
  13996                                      this.Set AttributeV alue("ppms _lastname" , value);
  13997                                      this.OnP ropertyCha nged("ppms _lastname" );
  13998                             }
  13999                    }
  14000                    
  14001                    ///  <summary>
  14002                    ///  Unique ide ntifier fo r entity i nstances
  14003                    ///  </summary>
  14004                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _leieexclu sionid")]
  14005                    publ ic System. Nullable<S ystem.Guid > ppms_lei eexclusion Id
  14006                    {
  14007                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14008                             get
  14009                             {
  14010                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("ppms_le ieexclusio nid");
  14011                             }
  14012                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14013                             set
  14014                             {
  14015                                      this.OnP ropertyCha nging("ppm s_leieexcl usionId");
  14016                                      this.Set AttributeV alue("ppms _leieexclu sionid", v alue);
  14017                                      if (valu e.HasValue )
  14018                                      {
  14019                                               base.Id =  value.Valu e;
  14020                                      }
  14021                                      else
  14022                                      {
  14023                                               base.Id =  System.Gui d.Empty;
  14024                                      }
  14025                                      this.OnP ropertyCha nged("ppms _leieexclu sionId");
  14026                             }
  14027                    }
  14028                    
  14029                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _leieexclu sionid")]
  14030                    publ ic overrid e System.G uid Id
  14031                    {
  14032                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14033                             get
  14034                             {
  14035                                      return b ase.Id;
  14036                             }
  14037                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14038                             set
  14039                             {
  14040                                      this.ppm s_leieexcl usionId =  value;
  14041                             }
  14042                    }
  14043                    
  14044                    ///  <summary>
  14045                    ///  Middle Nam e
  14046                    ///  </summary>
  14047                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _middlenam e")]
  14048                    publ ic string  ppms_middl ename
  14049                    {
  14050                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14051                             get
  14052                             {
  14053                                      return t his.GetAtt ributeValu e<string>( "ppms_midd lename");
  14054                             }
  14055                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14056                             set
  14057                             {
  14058                                      this.OnP ropertyCha nging("ppm s_middlena me");
  14059                                      this.Set AttributeV alue("ppms _middlenam e", value) ;
  14060                                      this.OnP ropertyCha nged("ppms _middlenam e");
  14061                             }
  14062                    }
  14063                    
  14064                    ///  <summary>
  14065                    ///  The name o f the cust om entity.
  14066                    ///  </summary>
  14067                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _name")]
  14068                    publ ic string  ppms_name
  14069                    {
  14070                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14071                             get
  14072                             {
  14073                                      return t his.GetAtt ributeValu e<string>( "ppms_name ");
  14074                             }
  14075                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14076                             set
  14077                             {
  14078                                      this.OnP ropertyCha nging("ppm s_name");
  14079                                      this.Set AttributeV alue("ppms _name", va lue);
  14080                                      this.OnP ropertyCha nged("ppms _name");
  14081                             }
  14082                    }
  14083                    
  14084                    ///  <summary>
  14085                    ///  NPI
  14086                    ///  </summary>
  14087                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _npi")]
  14088                    publ ic string  ppms_npi
  14089                    {
  14090                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14091                             get
  14092                             {
  14093                                      return t his.GetAtt ributeValu e<string>( "ppms_npi" );
  14094                             }
  14095                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14096                             set
  14097                             {
  14098                                      this.OnP ropertyCha nging("ppm s_npi");
  14099                                      this.Set AttributeV alue("ppms _npi", val ue);
  14100                                      this.OnP ropertyCha nged("ppms _npi");
  14101                             }
  14102                    }
  14103                    
  14104                    ///  <summary>
  14105                    ///  Reinstate  Date
  14106                    ///  </summary>
  14107                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _reinstate date")]
  14108                    publ ic System. Nullable<S ystem.Date Time> ppms _reinstate date
  14109                    {
  14110                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14111                             get
  14112                             {
  14113                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ppm s_reinstat edate");
  14114                             }
  14115                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14116                             set
  14117                             {
  14118                                      this.OnP ropertyCha nging("ppm s_reinstat edate");
  14119                                      this.Set AttributeV alue("ppms _reinstate date", val ue);
  14120                                      this.OnP ropertyCha nged("ppms _reinstate date");
  14121                             }
  14122                    }
  14123                    
  14124                    ///  <summary>
  14125                    ///  State
  14126                    ///  </summary>
  14127                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _state")]
  14128                    publ ic string  ppms_state
  14129                    {
  14130                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14131                             get
  14132                             {
  14133                                      return t his.GetAtt ributeValu e<string>( "ppms_stat e");
  14134                             }
  14135                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14136                             set
  14137                             {
  14138                                      this.OnP ropertyCha nging("ppm s_state");
  14139                                      this.Set AttributeV alue("ppms _state", v alue);
  14140                                      this.OnP ropertyCha nged("ppms _state");
  14141                             }
  14142                    }
  14143                    
  14144                    ///  <summary>
  14145                    ///  Waiver Dat e
  14146                    ///  </summary>
  14147                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _waiverdat e")]
  14148                    publ ic System. Nullable<S ystem.Date Time> ppms _waiverdat e
  14149                    {
  14150                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14151                             get
  14152                             {
  14153                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ppm s_waiverda te");
  14154                             }
  14155                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14156                             set
  14157                             {
  14158                                      this.OnP ropertyCha nging("ppm s_waiverda te");
  14159                                      this.Set AttributeV alue("ppms _waiverdat e", value) ;
  14160                                      this.OnP ropertyCha nged("ppms _waiverdat e");
  14161                             }
  14162                    }
  14163                    
  14164                    ///  <summary>
  14165                    ///  Waiver Sta te
  14166                    ///  </summary>
  14167                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _waiversta te")]
  14168                    publ ic string  ppms_waive rstate
  14169                    {
  14170                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14171                             get
  14172                             {
  14173                                      return t his.GetAtt ributeValu e<string>( "ppms_waiv erstate");
  14174                             }
  14175                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14176                             set
  14177                             {
  14178                                      this.OnP ropertyCha nging("ppm s_waiverst ate");
  14179                                      this.Set AttributeV alue("ppms _waiversta te", value );
  14180                                      this.OnP ropertyCha nged("ppms _waiversta te");
  14181                             }
  14182                    }
  14183                    
  14184                    ///  <summary>
  14185                    ///  Zip
  14186                    ///  </summary>
  14187                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _zip")]
  14188                    publ ic string  ppms_zip
  14189                    {
  14190                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14191                             get
  14192                             {
  14193                                      return t his.GetAtt ributeValu e<string>( "ppms_zip" );
  14194                             }
  14195                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14196                             set
  14197                             {
  14198                                      this.OnP ropertyCha nging("ppm s_zip");
  14199                                      this.Set AttributeV alue("ppms _zip", val ue);
  14200                                      this.OnP ropertyCha nged("ppms _zip");
  14201                             }
  14202                    }
  14203                    
  14204                    ///  <summary>
  14205                    ///  Status of  the LEIE E xclusion
  14206                    ///  </summary>
  14207                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat ecode")]
  14208                    publ ic System. Nullable<V A.PPMS.Con text.ppms_ leieexclus ionState>  statecode
  14209                    {
  14210                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14211                             get
  14212                             {
  14213                                      Microsof t.Xrm.Sdk. OptionSetV alue optio nSet = thi s.GetAttri buteValue< Microsoft. Xrm.Sdk.Op tionSetVal ue>("state code");
  14214                                      if ((opt ionSet !=  null))
  14215                                      {
  14216                                               return ((V A.PPMS.Con text.ppms_ leieexclus ionState)( System.Enu m.ToObject (typeof(VA .PPMS.Cont ext.ppms_l eieexclusi onState),  optionSet. Value)));
  14217                                      }
  14218                                      else
  14219                                      {
  14220                                               return nul l;
  14221                                      }
  14222                             }
  14223                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14224                             set
  14225                             {
  14226                                      this.OnP ropertyCha nging("sta tecode");
  14227                                      if ((val ue == null ))
  14228                                      {
  14229                                               this.SetAt tributeVal ue("statec ode", null );
  14230                                      }
  14231                                      else
  14232                                      {
  14233                                               this.SetAt tributeVal ue("statec ode", new  Microsoft. Xrm.Sdk.Op tionSetVal ue(((int)( value))));
  14234                                      }
  14235                                      this.OnP ropertyCha nged("stat ecode");
  14236                             }
  14237                    }
  14238                    
  14239                    ///  <summary>
  14240                    ///  Reason for  the statu s of the L EIE Exclus ion
  14241                    ///  </summary>
  14242                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  14243                    publ ic Microso ft.Xrm.Sdk .OptionSet Value stat uscode
  14244                    {
  14245                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14246                             get
  14247                             {
  14248                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("sta tuscode");
  14249                             }
  14250                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14251                             set
  14252                             {
  14253                                      this.OnP ropertyCha nging("sta tuscode");
  14254                                      this.Set AttributeV alue("stat uscode", v alue);
  14255                                      this.OnP ropertyCha nged("stat uscode");
  14256                             }
  14257                    }
  14258                    
  14259                    ///  <summary>
  14260                    ///  For intern al use onl y.
  14261                    ///  </summary>
  14262                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("time zoneruleve rsionnumbe r")]
  14263                    publ ic System. Nullable<i nt> TimeZo neRuleVers ionNumber
  14264                    {
  14265                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14266                             get
  14267                             {
  14268                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("timez onerulever sionnumber ");
  14269                             }
  14270                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14271                             set
  14272                             {
  14273                                      this.OnP ropertyCha nging("Tim eZoneRuleV ersionNumb er");
  14274                                      this.Set AttributeV alue("time zoneruleve rsionnumbe r", value) ;
  14275                                      this.OnP ropertyCha nged("Time ZoneRuleVe rsionNumbe r");
  14276                             }
  14277                    }
  14278                    
  14279                    ///  <summary>
  14280                    ///  Time zone  code that  was in use  when the  record was  created.
  14281                    ///  </summary>
  14282                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("utcc onversiont imezonecod e")]
  14283                    publ ic System. Nullable<i nt> UTCCon versionTim eZoneCode
  14284                    {
  14285                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14286                             get
  14287                             {
  14288                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("utcco nversionti mezonecode ");
  14289                             }
  14290                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14291                             set
  14292                             {
  14293                                      this.OnP ropertyCha nging("UTC Conversion TimeZoneCo de");
  14294                                      this.Set AttributeV alue("utcc onversiont imezonecod e", value) ;
  14295                                      this.OnP ropertyCha nged("UTCC onversionT imeZoneCod e");
  14296                             }
  14297                    }
  14298                    
  14299                    ///  <summary>
  14300                    ///  Version Nu mber
  14301                    ///  </summary>
  14302                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("vers ionnumber" )]
  14303                    publ ic System. Nullable<l ong> Versi onNumber
  14304                    {
  14305                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14306                             get
  14307                             {
  14308                                      return t his.GetAtt ributeValu e<System.N ullable<lo ng>>("vers ionnumber" );
  14309                             }
  14310                    }
  14311                    
  14312                    ///  <summary>
  14313                    ///  N:1 ppms_l eieexclusi onauthorit y_leieexcl usion_excl usiontype1
  14314                    ///  </summary>
  14315                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _exclusion type1")]
  14316                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_leieexc lusionauth ority_leie exclusion_ exclusiont ype1")]
  14317                    publ ic VA.PPMS .Context.p pms_leieex clusionaut hority ppm s_leieexcl usionautho rity_leiee xclusion_e xclusionty pe1
  14318                    {
  14319                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14320                             get
  14321                             {
  14322                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.ppm s_leieexcl usionautho rity>("ppm s_leieexcl usionautho rity_leiee xclusion_e xclusionty pe1", null );
  14323                             }
  14324                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14325                             set
  14326                             {
  14327                                      this.OnP ropertyCha nging("ppm s_leieexcl usionautho rity_leiee xclusion_e xclusionty pe1");
  14328                                      this.Set RelatedEnt ity<VA.PPM S.Context. ppms_leiee xclusionau thority>(" ppms_leiee xclusionau thority_le ieexclusio n_exclusio ntype1", n ull, value );
  14329                                      this.OnP ropertyCha nged("ppms _leieexclu sionauthor ity_leieex clusion_ex clusiontyp e1");
  14330                             }
  14331                    }
  14332                    
  14333                    ///  <summary>
  14334                    ///  N:1 ppms_l eieexclusi onauthorit y_leieexcl usion_excl usiontype2
  14335                    ///  </summary>
  14336                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _exclusion type2")]
  14337                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_leieexc lusionauth ority_leie exclusion_ exclusiont ype2")]
  14338                    publ ic VA.PPMS .Context.p pms_leieex clusionaut hority ppm s_leieexcl usionautho rity_leiee xclusion_e xclusionty pe2
  14339                    {
  14340                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14341                             get
  14342                             {
  14343                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.ppm s_leieexcl usionautho rity>("ppm s_leieexcl usionautho rity_leiee xclusion_e xclusionty pe2", null );
  14344                             }
  14345                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14346                             set
  14347                             {
  14348                                      this.OnP ropertyCha nging("ppm s_leieexcl usionautho rity_leiee xclusion_e xclusionty pe2");
  14349                                      this.Set RelatedEnt ity<VA.PPM S.Context. ppms_leiee xclusionau thority>(" ppms_leiee xclusionau thority_le ieexclusio n_exclusio ntype2", n ull, value );
  14350                                      this.OnP ropertyCha nged("ppms _leieexclu sionauthor ity_leieex clusion_ex clusiontyp e2");
  14351                             }
  14352                    }
  14353                    
  14354                    ///  <summary>
  14355                    ///  N:1 ppms_l eieexclusi onauthorit y_leieexcl usion_excl usiontype3
  14356                    ///  </summary>
  14357                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _exclusion type3")]
  14358                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_leieexc lusionauth ority_leie exclusion_ exclusiont ype3")]
  14359                    publ ic VA.PPMS .Context.p pms_leieex clusionaut hority ppm s_leieexcl usionautho rity_leiee xclusion_e xclusionty pe3
  14360                    {
  14361                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14362                             get
  14363                             {
  14364                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.ppm s_leieexcl usionautho rity>("ppm s_leieexcl usionautho rity_leiee xclusion_e xclusionty pe3", null );
  14365                             }
  14366                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14367                             set
  14368                             {
  14369                                      this.OnP ropertyCha nging("ppm s_leieexcl usionautho rity_leiee xclusion_e xclusionty pe3");
  14370                                      this.Set RelatedEnt ity<VA.PPM S.Context. ppms_leiee xclusionau thority>(" ppms_leiee xclusionau thority_le ieexclusio n_exclusio ntype3", n ull, value );
  14371                                      this.OnP ropertyCha nged("ppms _leieexclu sionauthor ity_leieex clusion_ex clusiontyp e3");
  14372                             }
  14373                    }
  14374                    
  14375                    ///  <summary>
  14376                    ///  Constructo r for popu lating via  LINQ quer ies given  a LINQ ano nymous typ e
  14377                    ///  <param nam e="anonymo usType">LI NQ anonymo us type.</ param>
  14378                    ///  </summary>
  14379                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  14380                    publ ic ppms_le ieexclusio n(object a nonymousTy pe) : 
  14381                                      this()
  14382                    {
  14383                foreach  (var p in  anonymousT ype.GetTyp e().GetPro perties())
  14384                {
  14385                    var  value = p. GetValue(a nonymousTy pe, null);
  14386                    var  name = p.N ame.ToLowe r();
  14387                
  14388                    if ( name.EndsW ith("enum" ) && value .GetType() .BaseType  == typeof( System.Enu m))
  14389                    {
  14390                         value = ne w Microsof t.Xrm.Sdk. OptionSetV alue((int)  value);
  14391                         name = nam e.Remove(n ame.Length  - "enum". Length);
  14392                    }
  14393                
  14394                    swit ch (name)
  14395                    {
  14396                         case "id":
  14397                             base.I d = (Syste m.Guid)val ue;
  14398                             Attrib utes["ppms _leieexclu sionid"] =  base.Id;
  14399                             break;
  14400                         case "ppms _leieexclu sionid":
  14401                             var id  = (System .Nullable< System.Gui d>) value;
  14402                             if(id  == null){  continue;  }
  14403                             base.I d = id.Val ue;
  14404                             Attrib utes[name]  = base.Id ;
  14405                             break;
  14406                         case "form attedvalue s":
  14407                             // Add  Support f or Formatt edValues
  14408                             Format tedValues. AddRange(( Microsoft. Xrm.Sdk.Fo rmattedVal ueCollecti on)value);
  14409                             break;
  14410                         default:
  14411                             Attrib utes[name]  = value;
  14412                             break;
  14413                    }
  14414                }
  14415                    }
  14416                    
  14417                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _action")]
  14418                    publ ic virtual  ppms_leie exclusion_ ppms_actio n? ppms_ac tionEnum
  14419                    {
  14420                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14421                             get
  14422                             {
  14423                                      return ( (ppms_leie exclusion_ ppms_actio n?)(Entity OptionSetE num.GetEnu m(this, "p pms_action ")));
  14424                             }
  14425                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14426                             set
  14427                             {
  14428                                      ppms_act ion = valu e.HasValue  ? new Mic rosoft.Xrm .Sdk.Optio nSetValue( (int)value ) : null;
  14429                             }
  14430                    }
  14431                    
  14432                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  14433                    publ ic virtual  ppms_leie exclusion_ StatusCode ? statusco deEnum
  14434                    {
  14435                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14436                             get
  14437                             {
  14438                                      return ( (ppms_leie exclusion_ StatusCode ?)(EntityO ptionSetEn um.GetEnum (this, "st atuscode") ));
  14439                             }
  14440                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14441                             set
  14442                             {
  14443                                      statusco de = value .HasValue  ? new Micr osoft.Xrm. Sdk.Option SetValue(( int)value)  : null;
  14444                             }
  14445                    }
  14446           }
  14447           
  14448           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  14449           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  14450           pu blic enum  ppms_leiee xclusionau thoritySta te
  14451           {
  14452                    
  14453                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  14454                    Acti ve = 0,
  14455                    
  14456                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  14457                    Inac tive = 1,
  14458           }
  14459           
  14460           // / <summary >
  14461           // / LEIE Exc lusion Aut hority
  14462           // / </summar y>
  14463           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  14464           [M icrosoft.X rm.Sdk.Cli ent.Entity LogicalNam eAttribute ("ppms_lei eexclusion authority" )]
  14465           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  14466           pu blic parti al class p pms_leieex clusionaut hority : M icrosoft.X rm.Sdk.Ent ity, Syste m.Componen tModel.INo tifyProper tyChanging , System.C omponentMo del.INotif yPropertyC hanged
  14467           {
  14468                    
  14469                    ///  <summary>
  14470                    ///  Default Co nstructor.
  14471                    ///  </summary>
  14472                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  14473                    publ ic ppms_le ieexclusio nauthority () : 
  14474                                      base(Ent ityLogical Name)
  14475                    {
  14476                    }
  14477                    
  14478                    publ ic const s tring Enti tyLogicalN ame = "ppm s_leieexcl usionautho rity";
  14479                    
  14480                    publ ic const i nt EntityT ypeCode =  10083;
  14481                    
  14482                    publ ic event S ystem.Comp onentModel .PropertyC hangedEven tHandler P ropertyCha nged;
  14483                    
  14484                    publ ic event S ystem.Comp onentModel .PropertyC hangingEve ntHandler  PropertyCh anging;
  14485                    
  14486                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  14487                    priv ate void O nPropertyC hanged(str ing proper tyName)
  14488                    {
  14489                             if ((t his.Proper tyChanged  != null))
  14490                             {
  14491                                      this.Pro pertyChang ed(this, n ew System. ComponentM odel.Prope rtyChanged EventArgs( propertyNa me));
  14492                             }
  14493                    }
  14494                    
  14495                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  14496                    priv ate void O nPropertyC hanging(st ring prope rtyName)
  14497                    {
  14498                             if ((t his.Proper tyChanging  != null))
  14499                             {
  14500                                      this.Pro pertyChang ing(this,  new System .Component Model.Prop ertyChangi ngEventArg s(property Name));
  14501                             }
  14502                    }
  14503                    
  14504                    ///  <summary>
  14505                    ///  Unique ide ntifier of  the user  who create d the reco rd.
  14506                    ///  </summary>
  14507                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedby")]
  14508                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedBy
  14509                    {
  14510                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14511                             get
  14512                             {
  14513                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedby");
  14514                             }
  14515                    }
  14516                    
  14517                    ///  <summary>
  14518                    ///  Date and t ime when t he record  was create d.
  14519                    ///  </summary>
  14520                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedon")]
  14521                    publ ic System. Nullable<S ystem.Date Time> Crea tedOn
  14522                    {
  14523                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14524                             get
  14525                             {
  14526                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("cre atedon");
  14527                             }
  14528                    }
  14529                    
  14530                    ///  <summary>
  14531                    ///  Unique ide ntifier of  the deleg ate user w ho created  the recor d.
  14532                    ///  </summary>
  14533                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedonbehal fby")]
  14534                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedOnBeha lfBy
  14535                    {
  14536                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14537                             get
  14538                             {
  14539                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedonbeh alfby");
  14540                             }
  14541                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14542                             set
  14543                             {
  14544                                      this.OnP ropertyCha nging("Cre atedOnBeha lfBy");
  14545                                      this.Set AttributeV alue("crea tedonbehal fby", valu e);
  14546                                      this.OnP ropertyCha nged("Crea tedOnBehal fBy");
  14547                             }
  14548                    }
  14549                    
  14550                    ///  <summary>
  14551                    ///  Sequence n umber of t he import  that creat ed this re cord.
  14552                    ///  </summary>
  14553                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("impo rtsequence number")]
  14554                    publ ic System. Nullable<i nt> Import SequenceNu mber
  14555                    {
  14556                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14557                             get
  14558                             {
  14559                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("impor tsequencen umber");
  14560                             }
  14561                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14562                             set
  14563                             {
  14564                                      this.OnP ropertyCha nging("Imp ortSequenc eNumber");
  14565                                      this.Set AttributeV alue("impo rtsequence number", v alue);
  14566                                      this.OnP ropertyCha nged("Impo rtSequence Number");
  14567                             }
  14568                    }
  14569                    
  14570                    ///  <summary>
  14571                    ///  Unique ide ntifier of  the user  who modifi ed the rec ord.
  14572                    ///  </summary>
  14573                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedby")]
  14574                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedBy
  14575                    {
  14576                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14577                             get
  14578                             {
  14579                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedby") ;
  14580                             }
  14581                    }
  14582                    
  14583                    ///  <summary>
  14584                    ///  Date and t ime when t he record  was modifi ed.
  14585                    ///  </summary>
  14586                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedon")]
  14587                    publ ic System. Nullable<S ystem.Date Time> Modi fiedOn
  14588                    {
  14589                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14590                             get
  14591                             {
  14592                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("mod ifiedon");
  14593                             }
  14594                    }
  14595                    
  14596                    ///  <summary>
  14597                    ///  Unique ide ntifier of  the deleg ate user w ho modifie d the reco rd.
  14598                    ///  </summary>
  14599                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedonbeha lfby")]
  14600                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedOnBeh alfBy
  14601                    {
  14602                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14603                             get
  14604                             {
  14605                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedonbe halfby");
  14606                             }
  14607                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14608                             set
  14609                             {
  14610                                      this.OnP ropertyCha nging("Mod ifiedOnBeh alfBy");
  14611                                      this.Set AttributeV alue("modi fiedonbeha lfby", val ue);
  14612                                      this.OnP ropertyCha nged("Modi fiedOnBeha lfBy");
  14613                             }
  14614                    }
  14615                    
  14616                    ///  <summary>
  14617                    ///  Date and t ime that t he record  was migrat ed.
  14618                    ///  </summary>
  14619                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("over riddencrea tedon")]
  14620                    publ ic System. Nullable<S ystem.Date Time> Over riddenCrea tedOn
  14621                    {
  14622                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14623                             get
  14624                             {
  14625                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ove rriddencre atedon");
  14626                             }
  14627                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14628                             set
  14629                             {
  14630                                      this.OnP ropertyCha nging("Ove rriddenCre atedOn");
  14631                                      this.Set AttributeV alue("over riddencrea tedon", va lue);
  14632                                      this.OnP ropertyCha nged("Over riddenCrea tedOn");
  14633                             }
  14634                    }
  14635                    
  14636                    ///  <summary>
  14637                    ///  Owner Id
  14638                    ///  </summary>
  14639                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owne rid")]
  14640                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own erId
  14641                    {
  14642                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14643                             get
  14644                             {
  14645                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow nerid");
  14646                             }
  14647                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14648                             set
  14649                             {
  14650                                      this.OnP ropertyCha nging("Own erId");
  14651                                      this.Set AttributeV alue("owne rid", valu e);
  14652                                      this.OnP ropertyCha nged("Owne rId");
  14653                             }
  14654                    }
  14655                    
  14656                    ///  <summary>
  14657                    ///  Unique ide ntifier fo r the busi ness unit  that owns  the record
  14658                    ///  </summary>
  14659                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngbusiness unit")]
  14660                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingBusines sUnit
  14661                    {
  14662                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14663                             get
  14664                             {
  14665                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningbusine ssunit");
  14666                             }
  14667                    }
  14668                    
  14669                    ///  <summary>
  14670                    ///  Unique ide ntifier fo r the team  that owns  the recor d.
  14671                    ///  </summary>
  14672                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngteam")]
  14673                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingTeam
  14674                    {
  14675                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14676                             get
  14677                             {
  14678                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningteam") ;
  14679                             }
  14680                    }
  14681                    
  14682                    ///  <summary>
  14683                    ///  Unique ide ntifier fo r the user  that owns  the recor d.
  14684                    ///  </summary>
  14685                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni nguser")]
  14686                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingUser
  14687                    {
  14688                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14689                             get
  14690                             {
  14691                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ninguser") ;
  14692                             }
  14693                    }
  14694                    
  14695                    ///  <summary>
  14696                    ///  42 USC
  14697                    ///  </summary>
  14698                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _42usc")]
  14699                    publ ic string  ppms_42usc
  14700                    {
  14701                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14702                             get
  14703                             {
  14704                                      return t his.GetAtt ributeValu e<string>( "ppms_42us c");
  14705                             }
  14706                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14707                             set
  14708                             {
  14709                                      this.OnP ropertyCha nging("ppm s_42usc");
  14710                                      this.Set AttributeV alue("ppms _42usc", v alue);
  14711                                      this.OnP ropertyCha nged("ppms _42usc");
  14712                             }
  14713                    }
  14714                    
  14715                    ///  <summary>
  14716                    /// 
  14717                    ///  </summary>
  14718                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _42usc0")]
  14719                    publ ic string  ppms_42USC 0
  14720                    {
  14721                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14722                             get
  14723                             {
  14724                                      return t his.GetAtt ributeValu e<string>( "ppms_42us c0");
  14725                             }
  14726                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14727                             set
  14728                             {
  14729                                      this.OnP ropertyCha nging("ppm s_42USC0") ;
  14730                                      this.Set AttributeV alue("ppms _42usc0",  value);
  14731                                      this.OnP ropertyCha nged("ppms _42USC0");
  14732                             }
  14733                    }
  14734                    
  14735                    ///  <summary>
  14736                    /// 
  14737                    ///  </summary>
  14738                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _42uscstri pped")]
  14739                    publ ic string  ppms_42usc stripped
  14740                    {
  14741                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14742                             get
  14743                             {
  14744                                      return t his.GetAtt ributeValu e<string>( "ppms_42us cstripped" );
  14745                             }
  14746                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14747                             set
  14748                             {
  14749                                      this.OnP ropertyCha nging("ppm s_42uscstr ipped");
  14750                                      this.Set AttributeV alue("ppms _42uscstri pped", val ue);
  14751                                      this.OnP ropertyCha nged("ppms _42uscstri pped");
  14752                             }
  14753                    }
  14754                    
  14755                    ///  <summary>
  14756                    ///  Amendment
  14757                    ///  </summary>
  14758                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _amendment ")]
  14759                    publ ic string  ppms_amend ment
  14760                    {
  14761                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14762                             get
  14763                             {
  14764                                      return t his.GetAtt ributeValu e<string>( "ppms_amen dment");
  14765                             }
  14766                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14767                             set
  14768                             {
  14769                                      this.OnP ropertyCha nging("ppm s_amendmen t");
  14770                                      this.Set AttributeV alue("ppms _amendment ", value);
  14771                                      this.OnP ropertyCha nged("ppms _amendment ");
  14772                             }
  14773                    }
  14774                    
  14775                    ///  <summary>
  14776                    ///  Group
  14777                    ///  </summary>
  14778                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _group")]
  14779                    publ ic Microso ft.Xrm.Sdk .OptionSet Value ppms _group
  14780                    {
  14781                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14782                             get
  14783                             {
  14784                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("ppm s_group");
  14785                             }
  14786                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14787                             set
  14788                             {
  14789                                      this.OnP ropertyCha nging("ppm s_group");
  14790                                      this.Set AttributeV alue("ppms _group", v alue);
  14791                                      this.OnP ropertyCha nged("ppms _group");
  14792                             }
  14793                    }
  14794                    
  14795                    ///  <summary>
  14796                    ///  Unique ide ntifier fo r entity i nstances
  14797                    ///  </summary>
  14798                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _leieexclu sionauthor ityid")]
  14799                    publ ic System. Nullable<S ystem.Guid > ppms_lei eexclusion authorityI d
  14800                    {
  14801                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14802                             get
  14803                             {
  14804                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("ppms_le ieexclusio nauthority id");
  14805                             }
  14806                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14807                             set
  14808                             {
  14809                                      this.OnP ropertyCha nging("ppm s_leieexcl usionautho rityId");
  14810                                      this.Set AttributeV alue("ppms _leieexclu sionauthor ityid", va lue);
  14811                                      if (valu e.HasValue )
  14812                                      {
  14813                                               base.Id =  value.Valu e;
  14814                                      }
  14815                                      else
  14816                                      {
  14817                                               base.Id =  System.Gui d.Empty;
  14818                                      }
  14819                                      this.OnP ropertyCha nged("ppms _leieexclu sionauthor ityId");
  14820                             }
  14821                    }
  14822                    
  14823                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _leieexclu sionauthor ityid")]
  14824                    publ ic overrid e System.G uid Id
  14825                    {
  14826                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14827                             get
  14828                             {
  14829                                      return b ase.Id;
  14830                             }
  14831                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14832                             set
  14833                             {
  14834                                      this.ppm s_leieexcl usionautho rityId = v alue;
  14835                             }
  14836                    }
  14837                    
  14838                    ///  <summary>
  14839                    ///  Social Sec urity Act
  14840                    ///  </summary>
  14841                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _name")]
  14842                    publ ic string  ppms_name
  14843                    {
  14844                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14845                             get
  14846                             {
  14847                                      return t his.GetAtt ributeValu e<string>( "ppms_name ");
  14848                             }
  14849                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14850                             set
  14851                             {
  14852                                      this.OnP ropertyCha nging("ppm s_name");
  14853                                      this.Set AttributeV alue("ppms _name", va lue);
  14854                                      this.OnP ropertyCha nged("ppms _name");
  14855                             }
  14856                    }
  14857                    
  14858                    ///  <summary>
  14859                    /// 
  14860                    ///  </summary>
  14861                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _socialsec urityactfo rmat")]
  14862                    publ ic string  ppms_socia lsecuritya ctformat
  14863                    {
  14864                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14865                             get
  14866                             {
  14867                                      return t his.GetAtt ributeValu e<string>( "ppms_soci alsecurity actformat" );
  14868                             }
  14869                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14870                             set
  14871                             {
  14872                                      this.OnP ropertyCha nging("ppm s_socialse curityactf ormat");
  14873                                      this.Set AttributeV alue("ppms _socialsec urityactfo rmat", val ue);
  14874                                      this.OnP ropertyCha nged("ppms _socialsec urityactfo rmat");
  14875                             }
  14876                    }
  14877                    
  14878                    ///  <summary>
  14879                    ///  Status of  the LEIE E xclusion A uthority
  14880                    ///  </summary>
  14881                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat ecode")]
  14882                    publ ic System. Nullable<V A.PPMS.Con text.ppms_ leieexclus ionauthori tyState> s tatecode
  14883                    {
  14884                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14885                             get
  14886                             {
  14887                                      Microsof t.Xrm.Sdk. OptionSetV alue optio nSet = thi s.GetAttri buteValue< Microsoft. Xrm.Sdk.Op tionSetVal ue>("state code");
  14888                                      if ((opt ionSet !=  null))
  14889                                      {
  14890                                               return ((V A.PPMS.Con text.ppms_ leieexclus ionauthori tyState)(S ystem.Enum .ToObject( typeof(VA. PPMS.Conte xt.ppms_le ieexclusio nauthority State), op tionSet.Va lue)));
  14891                                      }
  14892                                      else
  14893                                      {
  14894                                               return nul l;
  14895                                      }
  14896                             }
  14897                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14898                             set
  14899                             {
  14900                                      this.OnP ropertyCha nging("sta tecode");
  14901                                      if ((val ue == null ))
  14902                                      {
  14903                                               this.SetAt tributeVal ue("statec ode", null );
  14904                                      }
  14905                                      else
  14906                                      {
  14907                                               this.SetAt tributeVal ue("statec ode", new  Microsoft. Xrm.Sdk.Op tionSetVal ue(((int)( value))));
  14908                                      }
  14909                                      this.OnP ropertyCha nged("stat ecode");
  14910                             }
  14911                    }
  14912                    
  14913                    ///  <summary>
  14914                    ///  Reason for  the statu s of the L EIE Exclus ion Author ity
  14915                    ///  </summary>
  14916                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  14917                    publ ic Microso ft.Xrm.Sdk .OptionSet Value stat uscode
  14918                    {
  14919                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14920                             get
  14921                             {
  14922                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("sta tuscode");
  14923                             }
  14924                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14925                             set
  14926                             {
  14927                                      this.OnP ropertyCha nging("sta tuscode");
  14928                                      this.Set AttributeV alue("stat uscode", v alue);
  14929                                      this.OnP ropertyCha nged("stat uscode");
  14930                             }
  14931                    }
  14932                    
  14933                    ///  <summary>
  14934                    ///  For intern al use onl y.
  14935                    ///  </summary>
  14936                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("time zoneruleve rsionnumbe r")]
  14937                    publ ic System. Nullable<i nt> TimeZo neRuleVers ionNumber
  14938                    {
  14939                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14940                             get
  14941                             {
  14942                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("timez onerulever sionnumber ");
  14943                             }
  14944                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14945                             set
  14946                             {
  14947                                      this.OnP ropertyCha nging("Tim eZoneRuleV ersionNumb er");
  14948                                      this.Set AttributeV alue("time zoneruleve rsionnumbe r", value) ;
  14949                                      this.OnP ropertyCha nged("Time ZoneRuleVe rsionNumbe r");
  14950                             }
  14951                    }
  14952                    
  14953                    ///  <summary>
  14954                    ///  Time zone  code that  was in use  when the  record was  created.
  14955                    ///  </summary>
  14956                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("utcc onversiont imezonecod e")]
  14957                    publ ic System. Nullable<i nt> UTCCon versionTim eZoneCode
  14958                    {
  14959                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14960                             get
  14961                             {
  14962                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("utcco nversionti mezonecode ");
  14963                             }
  14964                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14965                             set
  14966                             {
  14967                                      this.OnP ropertyCha nging("UTC Conversion TimeZoneCo de");
  14968                                      this.Set AttributeV alue("utcc onversiont imezonecod e", value) ;
  14969                                      this.OnP ropertyCha nged("UTCC onversionT imeZoneCod e");
  14970                             }
  14971                    }
  14972                    
  14973                    ///  <summary>
  14974                    ///  Version Nu mber
  14975                    ///  </summary>
  14976                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("vers ionnumber" )]
  14977                    publ ic System. Nullable<l ong> Versi onNumber
  14978                    {
  14979                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14980                             get
  14981                             {
  14982                                      return t his.GetAtt ributeValu e<System.N ullable<lo ng>>("vers ionnumber" );
  14983                             }
  14984                    }
  14985                    
  14986                    ///  <summary>
  14987                    ///  1:N ppms_l eieexclusi onauthorit y_leieexcl usion_excl usiontype1
  14988                    ///  </summary>
  14989                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_leieexc lusionauth ority_leie exclusion_ exclusiont ype1")]
  14990                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_leieexc lusion> pp ms_leieexc lusionauth ority_leie exclusion_ exclusiont ype1
  14991                    {
  14992                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14993                             get
  14994                             {
  14995                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_leieex clusion>(" ppms_leiee xclusionau thority_le ieexclusio n_exclusio ntype1", n ull);
  14996                             }
  14997                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  14998                             set
  14999                             {
  15000                                      this.OnP ropertyCha nging("ppm s_leieexcl usionautho rity_leiee xclusion_e xclusionty pe1");
  15001                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_lei eexclusion >("ppms_le ieexclusio nauthority _leieexclu sion_exclu siontype1" , null, va lue);
  15002                                      this.OnP ropertyCha nged("ppms _leieexclu sionauthor ity_leieex clusion_ex clusiontyp e1");
  15003                             }
  15004                    }
  15005                    
  15006                    ///  <summary>
  15007                    ///  1:N ppms_l eieexclusi onauthorit y_leieexcl usion_excl usiontype2
  15008                    ///  </summary>
  15009                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_leieexc lusionauth ority_leie exclusion_ exclusiont ype2")]
  15010                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_leieexc lusion> pp ms_leieexc lusionauth ority_leie exclusion_ exclusiont ype2
  15011                    {
  15012                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15013                             get
  15014                             {
  15015                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_leieex clusion>(" ppms_leiee xclusionau thority_le ieexclusio n_exclusio ntype2", n ull);
  15016                             }
  15017                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15018                             set
  15019                             {
  15020                                      this.OnP ropertyCha nging("ppm s_leieexcl usionautho rity_leiee xclusion_e xclusionty pe2");
  15021                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_lei eexclusion >("ppms_le ieexclusio nauthority _leieexclu sion_exclu siontype2" , null, va lue);
  15022                                      this.OnP ropertyCha nged("ppms _leieexclu sionauthor ity_leieex clusion_ex clusiontyp e2");
  15023                             }
  15024                    }
  15025                    
  15026                    ///  <summary>
  15027                    ///  1:N ppms_l eieexclusi onauthorit y_leieexcl usion_excl usiontype3
  15028                    ///  </summary>
  15029                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_leieexc lusionauth ority_leie exclusion_ exclusiont ype3")]
  15030                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_leieexc lusion> pp ms_leieexc lusionauth ority_leie exclusion_ exclusiont ype3
  15031                    {
  15032                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15033                             get
  15034                             {
  15035                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_leieex clusion>(" ppms_leiee xclusionau thority_le ieexclusio n_exclusio ntype3", n ull);
  15036                             }
  15037                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15038                             set
  15039                             {
  15040                                      this.OnP ropertyCha nging("ppm s_leieexcl usionautho rity_leiee xclusion_e xclusionty pe3");
  15041                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_lei eexclusion >("ppms_le ieexclusio nauthority _leieexclu sion_exclu siontype3" , null, va lue);
  15042                                      this.OnP ropertyCha nged("ppms _leieexclu sionauthor ity_leieex clusion_ex clusiontyp e3");
  15043                             }
  15044                    }
  15045                    
  15046                    ///  <summary>
  15047                    ///  Constructo r for popu lating via  LINQ quer ies given  a LINQ ano nymous typ e
  15048                    ///  <param nam e="anonymo usType">LI NQ anonymo us type.</ param>
  15049                    ///  </summary>
  15050                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  15051                    publ ic ppms_le ieexclusio nauthority (object an onymousTyp e) : 
  15052                                      this()
  15053                    {
  15054                foreach  (var p in  anonymousT ype.GetTyp e().GetPro perties())
  15055                {
  15056                    var  value = p. GetValue(a nonymousTy pe, null);
  15057                    var  name = p.N ame.ToLowe r();
  15058                
  15059                    if ( name.EndsW ith("enum" ) && value .GetType() .BaseType  == typeof( System.Enu m))
  15060                    {
  15061                         value = ne w Microsof t.Xrm.Sdk. OptionSetV alue((int)  value);
  15062                         name = nam e.Remove(n ame.Length  - "enum". Length);
  15063                    }
  15064                
  15065                    swit ch (name)
  15066                    {
  15067                         case "id":
  15068                             base.I d = (Syste m.Guid)val ue;
  15069                             Attrib utes["ppms _leieexclu sionauthor ityid"] =  base.Id;
  15070                             break;
  15071                         case "ppms _leieexclu sionauthor ityid":
  15072                             var id  = (System .Nullable< System.Gui d>) value;
  15073                             if(id  == null){  continue;  }
  15074                             base.I d = id.Val ue;
  15075                             Attrib utes[name]  = base.Id ;
  15076                             break;
  15077                         case "form attedvalue s":
  15078                             // Add  Support f or Formatt edValues
  15079                             Format tedValues. AddRange(( Microsoft. Xrm.Sdk.Fo rmattedVal ueCollecti on)value);
  15080                             break;
  15081                         default:
  15082                             Attrib utes[name]  = value;
  15083                             break;
  15084                    }
  15085                }
  15086                    }
  15087                    
  15088                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _group")]
  15089                    publ ic virtual  ppms_leie exclusiona uthority_p pms_group?  ppms_grou pEnum
  15090                    {
  15091                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15092                             get
  15093                             {
  15094                                      return ( (ppms_leie exclusiona uthority_p pms_group? )(EntityOp tionSetEnu m.GetEnum( this, "ppm s_group")) );
  15095                             }
  15096                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15097                             set
  15098                             {
  15099                                      ppms_gro up = value .HasValue  ? new Micr osoft.Xrm. Sdk.Option SetValue(( int)value)  : null;
  15100                             }
  15101                    }
  15102                    
  15103                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  15104                    publ ic virtual  ppms_leie exclusiona uthority_S tatusCode?  statuscod eEnum
  15105                    {
  15106                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15107                             get
  15108                             {
  15109                                      return ( (ppms_leie exclusiona uthority_S tatusCode? )(EntityOp tionSetEnu m.GetEnum( this, "sta tuscode")) );
  15110                             }
  15111                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15112                             set
  15113                             {
  15114                                      statusco de = value .HasValue  ? new Micr osoft.Xrm. Sdk.Option SetValue(( int)value)  : null;
  15115                             }
  15116                    }
  15117           }
  15118           
  15119           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  15120           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  15121           pu blic enum  ppms_npiSt ate
  15122           {
  15123                    
  15124                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  15125                    Acti ve = 0,
  15126                    
  15127                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  15128                    Inac tive = 1,
  15129           }
  15130           
  15131           // / <summary >
  15132           // / NPI
  15133           // / </summar y>
  15134           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  15135           [M icrosoft.X rm.Sdk.Cli ent.Entity LogicalNam eAttribute ("ppms_npi ")]
  15136           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  15137           pu blic parti al class p pms_npi :  Microsoft. Xrm.Sdk.En tity, Syst em.Compone ntModel.IN otifyPrope rtyChangin g, System. ComponentM odel.INoti fyProperty Changed
  15138           {
  15139                    
  15140                    ///  <summary>
  15141                    ///  Default Co nstructor.
  15142                    ///  </summary>
  15143                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  15144                    publ ic ppms_np i() : 
  15145                                      base(Ent ityLogical Name)
  15146                    {
  15147                    }
  15148                    
  15149                    publ ic const s tring Enti tyLogicalN ame = "ppm s_npi";
  15150                    
  15151                    publ ic const i nt EntityT ypeCode =  10010;
  15152                    
  15153                    publ ic event S ystem.Comp onentModel .PropertyC hangedEven tHandler P ropertyCha nged;
  15154                    
  15155                    publ ic event S ystem.Comp onentModel .PropertyC hangingEve ntHandler  PropertyCh anging;
  15156                    
  15157                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  15158                    priv ate void O nPropertyC hanged(str ing proper tyName)
  15159                    {
  15160                             if ((t his.Proper tyChanged  != null))
  15161                             {
  15162                                      this.Pro pertyChang ed(this, n ew System. ComponentM odel.Prope rtyChanged EventArgs( propertyNa me));
  15163                             }
  15164                    }
  15165                    
  15166                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  15167                    priv ate void O nPropertyC hanging(st ring prope rtyName)
  15168                    {
  15169                             if ((t his.Proper tyChanging  != null))
  15170                             {
  15171                                      this.Pro pertyChang ing(this,  new System .Component Model.Prop ertyChangi ngEventArg s(property Name));
  15172                             }
  15173                    }
  15174                    
  15175                    ///  <summary>
  15176                    ///  Unique ide ntifier of  the user  who create d the reco rd.
  15177                    ///  </summary>
  15178                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedby")]
  15179                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedBy
  15180                    {
  15181                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15182                             get
  15183                             {
  15184                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedby");
  15185                             }
  15186                    }
  15187                    
  15188                    ///  <summary>
  15189                    ///  Date and t ime when t he record  was create d.
  15190                    ///  </summary>
  15191                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedon")]
  15192                    publ ic System. Nullable<S ystem.Date Time> Crea tedOn
  15193                    {
  15194                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15195                             get
  15196                             {
  15197                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("cre atedon");
  15198                             }
  15199                    }
  15200                    
  15201                    ///  <summary>
  15202                    ///  Unique ide ntifier of  the deleg ate user w ho created  the recor d.
  15203                    ///  </summary>
  15204                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedonbehal fby")]
  15205                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedOnBeha lfBy
  15206                    {
  15207                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15208                             get
  15209                             {
  15210                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedonbeh alfby");
  15211                             }
  15212                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15213                             set
  15214                             {
  15215                                      this.OnP ropertyCha nging("Cre atedOnBeha lfBy");
  15216                                      this.Set AttributeV alue("crea tedonbehal fby", valu e);
  15217                                      this.OnP ropertyCha nged("Crea tedOnBehal fBy");
  15218                             }
  15219                    }
  15220                    
  15221                    ///  <summary>
  15222                    ///  Sequence n umber of t he import  that creat ed this re cord.
  15223                    ///  </summary>
  15224                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("impo rtsequence number")]
  15225                    publ ic System. Nullable<i nt> Import SequenceNu mber
  15226                    {
  15227                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15228                             get
  15229                             {
  15230                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("impor tsequencen umber");
  15231                             }
  15232                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15233                             set
  15234                             {
  15235                                      this.OnP ropertyCha nging("Imp ortSequenc eNumber");
  15236                                      this.Set AttributeV alue("impo rtsequence number", v alue);
  15237                                      this.OnP ropertyCha nged("Impo rtSequence Number");
  15238                             }
  15239                    }
  15240                    
  15241                    ///  <summary>
  15242                    ///  Unique ide ntifier of  the user  who modifi ed the rec ord.
  15243                    ///  </summary>
  15244                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedby")]
  15245                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedBy
  15246                    {
  15247                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15248                             get
  15249                             {
  15250                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedby") ;
  15251                             }
  15252                    }
  15253                    
  15254                    ///  <summary>
  15255                    ///  Date and t ime when t he record  was modifi ed.
  15256                    ///  </summary>
  15257                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedon")]
  15258                    publ ic System. Nullable<S ystem.Date Time> Modi fiedOn
  15259                    {
  15260                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15261                             get
  15262                             {
  15263                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("mod ifiedon");
  15264                             }
  15265                    }
  15266                    
  15267                    ///  <summary>
  15268                    ///  Unique ide ntifier of  the deleg ate user w ho modifie d the reco rd.
  15269                    ///  </summary>
  15270                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedonbeha lfby")]
  15271                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedOnBeh alfBy
  15272                    {
  15273                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15274                             get
  15275                             {
  15276                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedonbe halfby");
  15277                             }
  15278                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15279                             set
  15280                             {
  15281                                      this.OnP ropertyCha nging("Mod ifiedOnBeh alfBy");
  15282                                      this.Set AttributeV alue("modi fiedonbeha lfby", val ue);
  15283                                      this.OnP ropertyCha nged("Modi fiedOnBeha lfBy");
  15284                             }
  15285                    }
  15286                    
  15287                    ///  <summary>
  15288                    ///  Date and t ime that t he record  was migrat ed.
  15289                    ///  </summary>
  15290                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("over riddencrea tedon")]
  15291                    publ ic System. Nullable<S ystem.Date Time> Over riddenCrea tedOn
  15292                    {
  15293                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15294                             get
  15295                             {
  15296                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ove rriddencre atedon");
  15297                             }
  15298                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15299                             set
  15300                             {
  15301                                      this.OnP ropertyCha nging("Ove rriddenCre atedOn");
  15302                                      this.Set AttributeV alue("over riddencrea tedon", va lue);
  15303                                      this.OnP ropertyCha nged("Over riddenCrea tedOn");
  15304                             }
  15305                    }
  15306                    
  15307                    ///  <summary>
  15308                    ///  Owner Id
  15309                    ///  </summary>
  15310                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owne rid")]
  15311                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own erId
  15312                    {
  15313                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15314                             get
  15315                             {
  15316                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow nerid");
  15317                             }
  15318                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15319                             set
  15320                             {
  15321                                      this.OnP ropertyCha nging("Own erId");
  15322                                      this.Set AttributeV alue("owne rid", valu e);
  15323                                      this.OnP ropertyCha nged("Owne rId");
  15324                             }
  15325                    }
  15326                    
  15327                    ///  <summary>
  15328                    ///  Unique ide ntifier fo r the busi ness unit  that owns  the record
  15329                    ///  </summary>
  15330                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngbusiness unit")]
  15331                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingBusines sUnit
  15332                    {
  15333                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15334                             get
  15335                             {
  15336                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningbusine ssunit");
  15337                             }
  15338                    }
  15339                    
  15340                    ///  <summary>
  15341                    ///  Unique ide ntifier fo r the team  that owns  the recor d.
  15342                    ///  </summary>
  15343                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngteam")]
  15344                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingTeam
  15345                    {
  15346                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15347                             get
  15348                             {
  15349                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningteam") ;
  15350                             }
  15351                    }
  15352                    
  15353                    ///  <summary>
  15354                    ///  Unique ide ntifier fo r the user  that owns  the recor d.
  15355                    ///  </summary>
  15356                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni nguser")]
  15357                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingUser
  15358                    {
  15359                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15360                             get
  15361                             {
  15362                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ninguser") ;
  15363                             }
  15364                    }
  15365                    
  15366                    ///  <summary>
  15367                    ///  Correlatio n Id
  15368                    ///  </summary>
  15369                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _correlati onid")]
  15370                    publ ic string  ppms_corre lationid
  15371                    {
  15372                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15373                             get
  15374                             {
  15375                                      return t his.GetAtt ributeValu e<string>( "ppms_corr elationid" );
  15376                             }
  15377                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15378                             set
  15379                             {
  15380                                      this.OnP ropertyCha nging("ppm s_correlat ionid");
  15381                                      this.Set AttributeV alue("ppms _correlati onid", val ue);
  15382                                      this.OnP ropertyCha nged("ppms _correlati onid");
  15383                             }
  15384                    }
  15385                    
  15386                    ///  <summary>
  15387                    ///  Deactivati on Date
  15388                    ///  </summary>
  15389                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _deactivat iondate")]
  15390                    publ ic System. Nullable<S ystem.Date Time> ppms _deactivat iondate
  15391                    {
  15392                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15393                             get
  15394                             {
  15395                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ppm s_deactiva tiondate") ;
  15396                             }
  15397                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15398                             set
  15399                             {
  15400                                      this.OnP ropertyCha nging("ppm s_deactiva tiondate") ;
  15401                                      this.Set AttributeV alue("ppms _deactivat iondate",  value);
  15402                                      this.OnP ropertyCha nged("ppms _deactivat iondate");
  15403                             }
  15404                    }
  15405                    
  15406                    ///  <summary>
  15407                    ///  Deactivati on Reason  Code
  15408                    ///  </summary>
  15409                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _deactivat ionreasonc ode")]
  15410                    publ ic string  ppms_deact ivationrea soncode
  15411                    {
  15412                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15413                             get
  15414                             {
  15415                                      return t his.GetAtt ributeValu e<string>( "ppms_deac tivationre asoncode") ;
  15416                             }
  15417                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15418                             set
  15419                             {
  15420                                      this.OnP ropertyCha nging("ppm s_deactiva tionreason code");
  15421                                      this.Set AttributeV alue("ppms _deactivat ionreasonc ode", valu e);
  15422                                      this.OnP ropertyCha nged("ppms _deactivat ionreasonc ode");
  15423                             }
  15424                    }
  15425                    
  15426                    ///  <summary>
  15427                    ///  Entity Typ e Code
  15428                    ///  </summary>
  15429                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _entitytyp ecode")]
  15430                    publ ic string  ppms_entit ytypecode
  15431                    {
  15432                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15433                             get
  15434                             {
  15435                                      return t his.GetAtt ributeValu e<string>( "ppms_enti tytypecode ");
  15436                             }
  15437                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15438                             set
  15439                             {
  15440                                      this.OnP ropertyCha nging("ppm s_entityty pecode");
  15441                                      this.Set AttributeV alue("ppms _entitytyp ecode", va lue);
  15442                                      this.OnP ropertyCha nged("ppms _entitytyp ecode");
  15443                             }
  15444                    }
  15445                    
  15446                    ///  <summary>
  15447                    ///  Enumeratio n Date
  15448                    ///  </summary>
  15449                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _enumerati ondate")]
  15450                    publ ic System. Nullable<S ystem.Date Time> ppms _enumerati ondate
  15451                    {
  15452                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15453                             get
  15454                             {
  15455                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ppm s_enumerat iondate");
  15456                             }
  15457                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15458                             set
  15459                             {
  15460                                      this.OnP ropertyCha nging("ppm s_enumerat iondate");
  15461                                      this.Set AttributeV alue("ppms _enumerati ondate", v alue);
  15462                                      this.OnP ropertyCha nged("ppms _enumerati ondate");
  15463                             }
  15464                    }
  15465                    
  15466                    ///  <summary>
  15467                    /// 
  15468                    ///  </summary>
  15469                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _name")]
  15470                    publ ic string  ppms_name
  15471                    {
  15472                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15473                             get
  15474                             {
  15475                                      return t his.GetAtt ributeValu e<string>( "ppms_name ");
  15476                             }
  15477                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15478                             set
  15479                             {
  15480                                      this.OnP ropertyCha nging("ppm s_name");
  15481                                      this.Set AttributeV alue("ppms _name", va lue);
  15482                                      this.OnP ropertyCha nged("ppms _name");
  15483                             }
  15484                    }
  15485                    
  15486                    ///  <summary>
  15487                    ///  Unique ide ntifier fo r entity i nstances
  15488                    ///  </summary>
  15489                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _npiid")]
  15490                    publ ic System. Nullable<S ystem.Guid > ppms_npi Id
  15491                    {
  15492                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15493                             get
  15494                             {
  15495                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("ppms_np iid");
  15496                             }
  15497                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15498                             set
  15499                             {
  15500                                      this.OnP ropertyCha nging("ppm s_npiId");
  15501                                      this.Set AttributeV alue("ppms _npiid", v alue);
  15502                                      if (valu e.HasValue )
  15503                                      {
  15504                                               base.Id =  value.Valu e;
  15505                                      }
  15506                                      else
  15507                                      {
  15508                                               base.Id =  System.Gui d.Empty;
  15509                                      }
  15510                                      this.OnP ropertyCha nged("ppms _npiId");
  15511                             }
  15512                    }
  15513                    
  15514                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _npiid")]
  15515                    publ ic overrid e System.G uid Id
  15516                    {
  15517                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15518                             get
  15519                             {
  15520                                      return b ase.Id;
  15521                             }
  15522                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15523                             set
  15524                             {
  15525                                      this.ppm s_npiId =  value;
  15526                             }
  15527                    }
  15528                    
  15529                    ///  <summary>
  15530                    ///  NPI Type
  15531                    ///  </summary>
  15532                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _npitype") ]
  15533                    publ ic Microso ft.Xrm.Sdk .OptionSet Value ppms _npitype
  15534                    {
  15535                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15536                             get
  15537                             {
  15538                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("ppm s_npitype" );
  15539                             }
  15540                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15541                             set
  15542                             {
  15543                                      this.OnP ropertyCha nging("ppm s_npitype" );
  15544                                      this.Set AttributeV alue("ppms _npitype",  value);
  15545                                      this.OnP ropertyCha nged("ppms _npitype") ;
  15546                             }
  15547                    }
  15548                    
  15549                    ///  <summary>
  15550                    ///  Organizati on Subpart
  15551                    ///  </summary>
  15552                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _organizat ionsubpart ")]
  15553                    publ ic string  ppms_organ izationsub part
  15554                    {
  15555                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15556                             get
  15557                             {
  15558                                      return t his.GetAtt ributeValu e<string>( "ppms_orga nizationsu bpart");
  15559                             }
  15560                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15561                             set
  15562                             {
  15563                                      this.OnP ropertyCha nging("ppm s_organiza tionsubpar t");
  15564                                      this.Set AttributeV alue("ppms _organizat ionsubpart ", value);
  15565                                      this.OnP ropertyCha nged("ppms _organizat ionsubpart ");
  15566                             }
  15567                    }
  15568                    
  15569                    ///  <summary>
  15570                    ///  Unique ide ntifier fo r Provider  associate d with NPI .
  15571                    ///  </summary>
  15572                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _provideri d")]
  15573                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_provider id
  15574                    {
  15575                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15576                             get
  15577                             {
  15578                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_provide rid");
  15579                             }
  15580                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15581                             set
  15582                             {
  15583                                      this.OnP ropertyCha nging("ppm s_provider id");
  15584                                      this.Set AttributeV alue("ppms _provideri d", value) ;
  15585                                      this.OnP ropertyCha nged("ppms _provideri d");
  15586                             }
  15587                    }
  15588                    
  15589                    ///  <summary>
  15590                    ///  Reactivati on Date
  15591                    ///  </summary>
  15592                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _reactivat iondate")]
  15593                    publ ic System. Nullable<S ystem.Date Time> ppms _reactivat iondate
  15594                    {
  15595                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15596                             get
  15597                             {
  15598                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ppm s_reactiva tiondate") ;
  15599                             }
  15600                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15601                             set
  15602                             {
  15603                                      this.OnP ropertyCha nging("ppm s_reactiva tiondate") ;
  15604                                      this.Set AttributeV alue("ppms _reactivat iondate",  value);
  15605                                      this.OnP ropertyCha nged("ppms _reactivat iondate");
  15606                             }
  15607                    }
  15608                    
  15609                    ///  <summary>
  15610                    ///  Replacemen t NPI
  15611                    ///  </summary>
  15612                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _replaceme ntnpi")]
  15613                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_Replacem entNPI
  15614                    {
  15615                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15616                             get
  15617                             {
  15618                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_replace mentnpi");
  15619                             }
  15620                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15621                             set
  15622                             {
  15623                                      this.OnP ropertyCha nging("ppm s_Replacem entNPI");
  15624                                      this.Set AttributeV alue("ppms _replaceme ntnpi", va lue);
  15625                                      this.OnP ropertyCha nged("ppms _Replaceme ntNPI");
  15626                             }
  15627                    }
  15628                    
  15629                    ///  <summary>
  15630                    ///  Sole Propr ietor
  15631                    ///  </summary>
  15632                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _solepropr ietor")]
  15633                    publ ic System. Nullable<b ool> ppms_ solepropri etor
  15634                    {
  15635                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15636                             get
  15637                             {
  15638                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("ppms _solepropr ietor");
  15639                             }
  15640                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15641                             set
  15642                             {
  15643                                      this.OnP ropertyCha nging("ppm s_soleprop rietor");
  15644                                      this.Set AttributeV alue("ppms _solepropr ietor", va lue);
  15645                                      this.OnP ropertyCha nged("ppms _solepropr ietor");
  15646                             }
  15647                    }
  15648                    
  15649                    ///  <summary>
  15650                    ///  Subpart Le gal Busine ss Name
  15651                    ///  </summary>
  15652                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _subpartle galbusines sname")]
  15653                    publ ic string  ppms_subpa rtlegalbus inessname
  15654                    {
  15655                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15656                             get
  15657                             {
  15658                                      return t his.GetAtt ributeValu e<string>( "ppms_subp artlegalbu sinessname ");
  15659                             }
  15660                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15661                             set
  15662                             {
  15663                                      this.OnP ropertyCha nging("ppm s_subpartl egalbusine ssname");
  15664                                      this.Set AttributeV alue("ppms _subpartle galbusines sname", va lue);
  15665                                      this.OnP ropertyCha nged("ppms _subpartle galbusines sname");
  15666                             }
  15667                    }
  15668                    
  15669                    ///  <summary>
  15670                    ///  Subpart Ta x ID
  15671                    ///  </summary>
  15672                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _subpartta xid")]
  15673                    publ ic string  ppms_subpa rttaxid
  15674                    {
  15675                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15676                             get
  15677                             {
  15678                                      return t his.GetAtt ributeValu e<string>( "ppms_subp arttaxid") ;
  15679                             }
  15680                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15681                             set
  15682                             {
  15683                                      this.OnP ropertyCha nging("ppm s_subpartt axid");
  15684                                      this.Set AttributeV alue("ppms _subpartta xid", valu e);
  15685                                      this.OnP ropertyCha nged("ppms _subpartta xid");
  15686                             }
  15687                    }
  15688                    
  15689                    ///  <summary>
  15690                    ///  Status of  the NPI
  15691                    ///  </summary>
  15692                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat ecode")]
  15693                    publ ic System. Nullable<V A.PPMS.Con text.ppms_ npiState>  statecode
  15694                    {
  15695                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15696                             get
  15697                             {
  15698                                      Microsof t.Xrm.Sdk. OptionSetV alue optio nSet = thi s.GetAttri buteValue< Microsoft. Xrm.Sdk.Op tionSetVal ue>("state code");
  15699                                      if ((opt ionSet !=  null))
  15700                                      {
  15701                                               return ((V A.PPMS.Con text.ppms_ npiState)( System.Enu m.ToObject (typeof(VA .PPMS.Cont ext.ppms_n piState),  optionSet. Value)));
  15702                                      }
  15703                                      else
  15704                                      {
  15705                                               return nul l;
  15706                                      }
  15707                             }
  15708                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15709                             set
  15710                             {
  15711                                      this.OnP ropertyCha nging("sta tecode");
  15712                                      if ((val ue == null ))
  15713                                      {
  15714                                               this.SetAt tributeVal ue("statec ode", null );
  15715                                      }
  15716                                      else
  15717                                      {
  15718                                               this.SetAt tributeVal ue("statec ode", new  Microsoft. Xrm.Sdk.Op tionSetVal ue(((int)( value))));
  15719                                      }
  15720                                      this.OnP ropertyCha nged("stat ecode");
  15721                             }
  15722                    }
  15723                    
  15724                    ///  <summary>
  15725                    ///  Reason for  the statu s of the N PI
  15726                    ///  </summary>
  15727                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  15728                    publ ic Microso ft.Xrm.Sdk .OptionSet Value stat uscode
  15729                    {
  15730                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15731                             get
  15732                             {
  15733                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("sta tuscode");
  15734                             }
  15735                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15736                             set
  15737                             {
  15738                                      this.OnP ropertyCha nging("sta tuscode");
  15739                                      this.Set AttributeV alue("stat uscode", v alue);
  15740                                      this.OnP ropertyCha nged("stat uscode");
  15741                             }
  15742                    }
  15743                    
  15744                    ///  <summary>
  15745                    ///  For intern al use onl y.
  15746                    ///  </summary>
  15747                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("time zoneruleve rsionnumbe r")]
  15748                    publ ic System. Nullable<i nt> TimeZo neRuleVers ionNumber
  15749                    {
  15750                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15751                             get
  15752                             {
  15753                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("timez onerulever sionnumber ");
  15754                             }
  15755                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15756                             set
  15757                             {
  15758                                      this.OnP ropertyCha nging("Tim eZoneRuleV ersionNumb er");
  15759                                      this.Set AttributeV alue("time zoneruleve rsionnumbe r", value) ;
  15760                                      this.OnP ropertyCha nged("Time ZoneRuleVe rsionNumbe r");
  15761                             }
  15762                    }
  15763                    
  15764                    ///  <summary>
  15765                    ///  Time zone  code that  was in use  when the  record was  created.
  15766                    ///  </summary>
  15767                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("utcc onversiont imezonecod e")]
  15768                    publ ic System. Nullable<i nt> UTCCon versionTim eZoneCode
  15769                    {
  15770                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15771                             get
  15772                             {
  15773                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("utcco nversionti mezonecode ");
  15774                             }
  15775                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15776                             set
  15777                             {
  15778                                      this.OnP ropertyCha nging("UTC Conversion TimeZoneCo de");
  15779                                      this.Set AttributeV alue("utcc onversiont imezonecod e", value) ;
  15780                                      this.OnP ropertyCha nged("UTCC onversionT imeZoneCod e");
  15781                             }
  15782                    }
  15783                    
  15784                    ///  <summary>
  15785                    /// 
  15786                    ///  </summary>
  15787                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("vers ionnumber" )]
  15788                    publ ic System. Nullable<l ong> Versi onNumber
  15789                    {
  15790                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15791                             get
  15792                             {
  15793                                      return t his.GetAtt ributeValu e<System.N ullable<lo ng>>("vers ionnumber" );
  15794                             }
  15795                    }
  15796                    
  15797                    ///  <summary>
  15798                    ///  1:N ppms_n pi_npi_Rep lacementNP I
  15799                    ///  </summary>
  15800                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_npi_npi _Replaceme ntNPI", Mi crosoft.Xr m.Sdk.Enti tyRole.Ref erenced)]
  15801                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_npi> Re ferencedpp ms_npi_npi _Replaceme ntNPI
  15802                    {
  15803                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15804                             get
  15805                             {
  15806                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_npi>(" ppms_npi_n pi_Replace mentNPI",  Microsoft. Xrm.Sdk.En tityRole.R eferenced) ;
  15807                             }
  15808                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15809                             set
  15810                             {
  15811                                      this.OnP ropertyCha nging("Ref erencedppm s_npi_npi_ Replacemen tNPI");
  15812                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_npi >("ppms_np i_npi_Repl acementNPI ", Microso ft.Xrm.Sdk .EntityRol e.Referenc ed, value) ;
  15813                                      this.OnP ropertyCha nged("Refe rencedppms _npi_npi_R eplacement NPI");
  15814                             }
  15815                    }
  15816                    
  15817                    ///  <summary>
  15818                    ///  1:N ppms_p pms_npi_ac count
  15819                    ///  </summary>
  15820                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_ppms_np i_account" )]
  15821                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.Ac count> ppm s_ppms_npi _account
  15822                    {
  15823                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15824                             get
  15825                             {
  15826                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.A ccount>("p pms_ppms_n pi_account ", null);
  15827                             }
  15828                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15829                             set
  15830                             {
  15831                                      this.OnP ropertyCha nging("ppm s_ppms_npi _account") ;
  15832                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.Account> ("ppms_ppm s_npi_acco unt", null , value);
  15833                                      this.OnP ropertyCha nged("ppms _ppms_npi_ account");
  15834                             }
  15835                    }
  15836                    
  15837                    ///  <summary>
  15838                    ///  1:N ppms_p pms_npi_pp ms_agreeme ntprovider _SelectedN PI
  15839                    ///  </summary>
  15840                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_ppms_np i_ppms_agr eementprov ider_Selec tedNPI")]
  15841                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_agreeme ntprovider > ppms_ppm s_npi_ppms _agreement provider_S electedNPI
  15842                    {
  15843                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15844                             get
  15845                             {
  15846                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_agreem entprovide r>("ppms_p pms_npi_pp ms_agreeme ntprovider _SelectedN PI", null) ;
  15847                             }
  15848                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15849                             set
  15850                             {
  15851                                      this.OnP ropertyCha nging("ppm s_ppms_npi _ppms_agre ementprovi der_Select edNPI");
  15852                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_agr eementprov ider>("ppm s_ppms_npi _ppms_agre ementprovi der_Select edNPI", nu ll, value) ;
  15853                                      this.OnP ropertyCha nged("ppms _ppms_npi_ ppms_agree mentprovid er_Selecte dNPI");
  15854                             }
  15855                    }
  15856                    
  15857                    ///  <summary>
  15858                    ///  N:1 ppms_a ccount_ppm s_npi
  15859                    ///  </summary>
  15860                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _provideri d")]
  15861                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_account _ppms_npi" )]
  15862                    publ ic VA.PPMS .Context.A ccount ppm s_account_ ppms_npi
  15863                    {
  15864                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15865                             get
  15866                             {
  15867                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.Acc ount>("ppm s_account_ ppms_npi",  null);
  15868                             }
  15869                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15870                             set
  15871                             {
  15872                                      this.OnP ropertyCha nging("ppm s_account_ ppms_npi") ;
  15873                                      this.Set RelatedEnt ity<VA.PPM S.Context. Account>(" ppms_accou nt_ppms_np i", null,  value);
  15874                                      this.OnP ropertyCha nged("ppms _account_p pms_npi");
  15875                             }
  15876                    }
  15877                    
  15878                    ///  <summary>
  15879                    ///  N:1 ppms_n pi_npi_Rep lacementNP I
  15880                    ///  </summary>
  15881                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _replaceme ntnpi")]
  15882                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_npi_npi _Replaceme ntNPI", Mi crosoft.Xr m.Sdk.Enti tyRole.Ref erencing)]
  15883                    publ ic VA.PPMS .Context.p pms_npi Re ferencingp pms_npi_np i_Replacem entNPI
  15884                    {
  15885                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15886                             get
  15887                             {
  15888                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.ppm s_npi>("pp ms_npi_npi _Replaceme ntNPI", Mi crosoft.Xr m.Sdk.Enti tyRole.Ref erencing);
  15889                             }
  15890                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15891                             set
  15892                             {
  15893                                      this.OnP ropertyCha nging("Ref erencingpp ms_npi_npi _Replaceme ntNPI");
  15894                                      this.Set RelatedEnt ity<VA.PPM S.Context. ppms_npi>( "ppms_npi_ npi_Replac ementNPI",  Microsoft .Xrm.Sdk.E ntityRole. Referencin g, value);
  15895                                      this.OnP ropertyCha nged("Refe rencingppm s_npi_npi_ Replacemen tNPI");
  15896                             }
  15897                    }
  15898                    
  15899                    ///  <summary>
  15900                    ///  Constructo r for popu lating via  LINQ quer ies given  a LINQ ano nymous typ e
  15901                    ///  <param nam e="anonymo usType">LI NQ anonymo us type.</ param>
  15902                    ///  </summary>
  15903                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  15904                    publ ic ppms_np i(object a nonymousTy pe) : 
  15905                                      this()
  15906                    {
  15907                foreach  (var p in  anonymousT ype.GetTyp e().GetPro perties())
  15908                {
  15909                    var  value = p. GetValue(a nonymousTy pe, null);
  15910                    var  name = p.N ame.ToLowe r();
  15911                
  15912                    if ( name.EndsW ith("enum" ) && value .GetType() .BaseType  == typeof( System.Enu m))
  15913                    {
  15914                         value = ne w Microsof t.Xrm.Sdk. OptionSetV alue((int)  value);
  15915                         name = nam e.Remove(n ame.Length  - "enum". Length);
  15916                    }
  15917                
  15918                    swit ch (name)
  15919                    {
  15920                         case "id":
  15921                             base.I d = (Syste m.Guid)val ue;
  15922                             Attrib utes["ppms _npiid"] =  base.Id;
  15923                             break;
  15924                         case "ppms _npiid":
  15925                             var id  = (System .Nullable< System.Gui d>) value;
  15926                             if(id  == null){  continue;  }
  15927                             base.I d = id.Val ue;
  15928                             Attrib utes[name]  = base.Id ;
  15929                             break;
  15930                         case "form attedvalue s":
  15931                             // Add  Support f or Formatt edValues
  15932                             Format tedValues. AddRange(( Microsoft. Xrm.Sdk.Fo rmattedVal ueCollecti on)value);
  15933                             break;
  15934                         default:
  15935                             Attrib utes[name]  = value;
  15936                             break;
  15937                    }
  15938                }
  15939                    }
  15940                    
  15941                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _npitype") ]
  15942                    publ ic virtual  ppms_npi_ ppms_npity pe? ppms_n pitypeEnum
  15943                    {
  15944                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15945                             get
  15946                             {
  15947                                      return ( (ppms_npi_ ppms_npity pe?)(Entit yOptionSet Enum.GetEn um(this, " ppms_npity pe")));
  15948                             }
  15949                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15950                             set
  15951                             {
  15952                                      ppms_npi type = val ue.HasValu e ? new Mi crosoft.Xr m.Sdk.Opti onSetValue ((int)valu e) : null;
  15953                             }
  15954                    }
  15955                    
  15956                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  15957                    publ ic virtual  ppms_npi_ StatusCode ? statusco deEnum
  15958                    {
  15959                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15960                             get
  15961                             {
  15962                                      return ( (ppms_npi_ StatusCode ?)(EntityO ptionSetEn um.GetEnum (this, "st atuscode") ));
  15963                             }
  15964                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  15965                             set
  15966                             {
  15967                                      statusco de = value .HasValue  ? new Micr osoft.Xrm. Sdk.Option SetValue(( int)value)  : null;
  15968                             }
  15969                    }
  15970           }
  15971           
  15972           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  15973           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  15974           pu blic enum  ppms_other nameState
  15975           {
  15976                    
  15977                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  15978                    Acti ve = 0,
  15979                    
  15980                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  15981                    Inac tive = 1,
  15982           }
  15983           
  15984           // / <summary >
  15985           // / Other Na mes
  15986           // / </summar y>
  15987           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  15988           [M icrosoft.X rm.Sdk.Cli ent.Entity LogicalNam eAttribute ("ppms_oth ername")]
  15989           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  15990           pu blic parti al class p pms_othern ame : Micr osoft.Xrm. Sdk.Entity , System.C omponentMo del.INotif yPropertyC hanging, S ystem.Comp onentModel .INotifyPr opertyChan ged
  15991           {
  15992                    
  15993                    ///  <summary>
  15994                    ///  Default Co nstructor.
  15995                    ///  </summary>
  15996                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  15997                    publ ic ppms_ot hername() 
  15998                                      base(Ent ityLogical Name)
  15999                    {
  16000                    }
  16001                    
  16002                    publ ic const s tring Enti tyLogicalN ame = "ppm s_othernam e";
  16003                    
  16004                    publ ic const i nt EntityT ypeCode =  10013;
  16005                    
  16006                    publ ic event S ystem.Comp onentModel .PropertyC hangedEven tHandler P ropertyCha nged;
  16007                    
  16008                    publ ic event S ystem.Comp onentModel .PropertyC hangingEve ntHandler  PropertyCh anging;
  16009                    
  16010                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  16011                    priv ate void O nPropertyC hanged(str ing proper tyName)
  16012                    {
  16013                             if ((t his.Proper tyChanged  != null))
  16014                             {
  16015                                      this.Pro pertyChang ed(this, n ew System. ComponentM odel.Prope rtyChanged EventArgs( propertyNa me));
  16016                             }
  16017                    }
  16018                    
  16019                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  16020                    priv ate void O nPropertyC hanging(st ring prope rtyName)
  16021                    {
  16022                             if ((t his.Proper tyChanging  != null))
  16023                             {
  16024                                      this.Pro pertyChang ing(this,  new System .Component Model.Prop ertyChangi ngEventArg s(property Name));
  16025                             }
  16026                    }
  16027                    
  16028                    ///  <summary>
  16029                    ///  Unique ide ntifier of  the user  who create d the reco rd.
  16030                    ///  </summary>
  16031                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedby")]
  16032                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedBy
  16033                    {
  16034                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16035                             get
  16036                             {
  16037                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedby");
  16038                             }
  16039                    }
  16040                    
  16041                    ///  <summary>
  16042                    ///  Date and t ime when t he record  was create d.
  16043                    ///  </summary>
  16044                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedon")]
  16045                    publ ic System. Nullable<S ystem.Date Time> Crea tedOn
  16046                    {
  16047                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16048                             get
  16049                             {
  16050                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("cre atedon");
  16051                             }
  16052                    }
  16053                    
  16054                    ///  <summary>
  16055                    ///  Unique ide ntifier of  the deleg ate user w ho created  the recor d.
  16056                    ///  </summary>
  16057                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedonbehal fby")]
  16058                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedOnBeha lfBy
  16059                    {
  16060                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16061                             get
  16062                             {
  16063                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedonbeh alfby");
  16064                             }
  16065                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16066                             set
  16067                             {
  16068                                      this.OnP ropertyCha nging("Cre atedOnBeha lfBy");
  16069                                      this.Set AttributeV alue("crea tedonbehal fby", valu e);
  16070                                      this.OnP ropertyCha nged("Crea tedOnBehal fBy");
  16071                             }
  16072                    }
  16073                    
  16074                    ///  <summary>
  16075                    ///  Sequence n umber of t he import  that creat ed this re cord.
  16076                    ///  </summary>
  16077                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("impo rtsequence number")]
  16078                    publ ic System. Nullable<i nt> Import SequenceNu mber
  16079                    {
  16080                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16081                             get
  16082                             {
  16083                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("impor tsequencen umber");
  16084                             }
  16085                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16086                             set
  16087                             {
  16088                                      this.OnP ropertyCha nging("Imp ortSequenc eNumber");
  16089                                      this.Set AttributeV alue("impo rtsequence number", v alue);
  16090                                      this.OnP ropertyCha nged("Impo rtSequence Number");
  16091                             }
  16092                    }
  16093                    
  16094                    ///  <summary>
  16095                    ///  Unique ide ntifier of  the user  who modifi ed the rec ord.
  16096                    ///  </summary>
  16097                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedby")]
  16098                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedBy
  16099                    {
  16100                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16101                             get
  16102                             {
  16103                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedby") ;
  16104                             }
  16105                    }
  16106                    
  16107                    ///  <summary>
  16108                    ///  Date and t ime when t he record  was modifi ed.
  16109                    ///  </summary>
  16110                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedon")]
  16111                    publ ic System. Nullable<S ystem.Date Time> Modi fiedOn
  16112                    {
  16113                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16114                             get
  16115                             {
  16116                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("mod ifiedon");
  16117                             }
  16118                    }
  16119                    
  16120                    ///  <summary>
  16121                    ///  Unique ide ntifier of  the deleg ate user w ho modifie d the reco rd.
  16122                    ///  </summary>
  16123                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedonbeha lfby")]
  16124                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedOnBeh alfBy
  16125                    {
  16126                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16127                             get
  16128                             {
  16129                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedonbe halfby");
  16130                             }
  16131                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16132                             set
  16133                             {
  16134                                      this.OnP ropertyCha nging("Mod ifiedOnBeh alfBy");
  16135                                      this.Set AttributeV alue("modi fiedonbeha lfby", val ue);
  16136                                      this.OnP ropertyCha nged("Modi fiedOnBeha lfBy");
  16137                             }
  16138                    }
  16139                    
  16140                    ///  <summary>
  16141                    ///  Date and t ime that t he record  was migrat ed.
  16142                    ///  </summary>
  16143                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("over riddencrea tedon")]
  16144                    publ ic System. Nullable<S ystem.Date Time> Over riddenCrea tedOn
  16145                    {
  16146                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16147                             get
  16148                             {
  16149                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ove rriddencre atedon");
  16150                             }
  16151                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16152                             set
  16153                             {
  16154                                      this.OnP ropertyCha nging("Ove rriddenCre atedOn");
  16155                                      this.Set AttributeV alue("over riddencrea tedon", va lue);
  16156                                      this.OnP ropertyCha nged("Over riddenCrea tedOn");
  16157                             }
  16158                    }
  16159                    
  16160                    ///  <summary>
  16161                    ///  Owner Id
  16162                    ///  </summary>
  16163                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owne rid")]
  16164                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own erId
  16165                    {
  16166                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16167                             get
  16168                             {
  16169                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow nerid");
  16170                             }
  16171                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16172                             set
  16173                             {
  16174                                      this.OnP ropertyCha nging("Own erId");
  16175                                      this.Set AttributeV alue("owne rid", valu e);
  16176                                      this.OnP ropertyCha nged("Owne rId");
  16177                             }
  16178                    }
  16179                    
  16180                    ///  <summary>
  16181                    ///  Unique ide ntifier fo r the busi ness unit  that owns  the record
  16182                    ///  </summary>
  16183                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngbusiness unit")]
  16184                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingBusines sUnit
  16185                    {
  16186                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16187                             get
  16188                             {
  16189                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningbusine ssunit");
  16190                             }
  16191                    }
  16192                    
  16193                    ///  <summary>
  16194                    ///  Unique ide ntifier fo r the team  that owns  the recor d.
  16195                    ///  </summary>
  16196                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngteam")]
  16197                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingTeam
  16198                    {
  16199                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16200                             get
  16201                             {
  16202                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningteam") ;
  16203                             }
  16204                    }
  16205                    
  16206                    ///  <summary>
  16207                    ///  Unique ide ntifier fo r the user  that owns  the recor d.
  16208                    ///  </summary>
  16209                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni nguser")]
  16210                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingUser
  16211                    {
  16212                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16213                             get
  16214                             {
  16215                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ninguser") ;
  16216                             }
  16217                    }
  16218                    
  16219                    ///  <summary>
  16220                    ///  Correlatio n Id
  16221                    ///  </summary>
  16222                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _correlati onid")]
  16223                    publ ic string  ppms_corre lationid
  16224                    {
  16225                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16226                             get
  16227                             {
  16228                                      return t his.GetAtt ributeValu e<string>( "ppms_corr elationid" );
  16229                             }
  16230                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16231                             set
  16232                             {
  16233                                      this.OnP ropertyCha nging("ppm s_correlat ionid");
  16234                                      this.Set AttributeV alue("ppms _correlati onid", val ue);
  16235                                      this.OnP ropertyCha nged("ppms _correlati onid");
  16236                             }
  16237                    }
  16238                    
  16239                    ///  <summary>
  16240                    /// 
  16241                    ///  </summary>
  16242                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _name")]
  16243                    publ ic string  ppms_name
  16244                    {
  16245                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16246                             get
  16247                             {
  16248                                      return t his.GetAtt ributeValu e<string>( "ppms_name ");
  16249                             }
  16250                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16251                             set
  16252                             {
  16253                                      this.OnP ropertyCha nging("ppm s_name");
  16254                                      this.Set AttributeV alue("ppms _name", va lue);
  16255                                      this.OnP ropertyCha nged("ppms _name");
  16256                             }
  16257                    }
  16258                    
  16259                    ///  <summary>
  16260                    ///  Other Cred ential
  16261                    ///  </summary>
  16262                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _othercred ential")]
  16263                    publ ic string  ppms_other credential
  16264                    {
  16265                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16266                             get
  16267                             {
  16268                                      return t his.GetAtt ributeValu e<string>( "ppms_othe rcredentia l");
  16269                             }
  16270                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16271                             set
  16272                             {
  16273                                      this.OnP ropertyCha nging("ppm s_othercre dential");
  16274                                      this.Set AttributeV alue("ppms _othercred ential", v alue);
  16275                                      this.OnP ropertyCha nged("ppms _othercred ential");
  16276                             }
  16277                    }
  16278                    
  16279                    ///  <summary>
  16280                    ///  Unique ide ntifier fo r entity i nstances
  16281                    ///  </summary>
  16282                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _othername id")]
  16283                    publ ic System. Nullable<S ystem.Guid > ppms_oth ernameId
  16284                    {
  16285                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16286                             get
  16287                             {
  16288                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("ppms_ot hernameid" );
  16289                             }
  16290                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16291                             set
  16292                             {
  16293                                      this.OnP ropertyCha nging("ppm s_othernam eId");
  16294                                      this.Set AttributeV alue("ppms _othername id", value );
  16295                                      if (valu e.HasValue )
  16296                                      {
  16297                                               base.Id =  value.Valu e;
  16298                                      }
  16299                                      else
  16300                                      {
  16301                                               base.Id =  System.Gui d.Empty;
  16302                                      }
  16303                                      this.OnP ropertyCha nged("ppms _othername Id");
  16304                             }
  16305                    }
  16306                    
  16307                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _othername id")]
  16308                    publ ic overrid e System.G uid Id
  16309                    {
  16310                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16311                             get
  16312                             {
  16313                                      return b ase.Id;
  16314                             }
  16315                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16316                             set
  16317                             {
  16318                                      this.ppm s_othernam eId = valu e;
  16319                             }
  16320                    }
  16321                    
  16322                    ///  <summary>
  16323                    ///  Other Name  Type
  16324                    ///  </summary>
  16325                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _othername type")]
  16326                    publ ic Microso ft.Xrm.Sdk .OptionSet Value ppms _othername type
  16327                    {
  16328                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16329                             get
  16330                             {
  16331                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("ppm s_othernam etype");
  16332                             }
  16333                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16334                             set
  16335                             {
  16336                                      this.OnP ropertyCha nging("ppm s_othernam etype");
  16337                                      this.Set AttributeV alue("ppms _othername type", val ue);
  16338                                      this.OnP ropertyCha nged("ppms _othername type");
  16339                             }
  16340                    }
  16341                    
  16342                    ///  <summary>
  16343                    ///  Provider
  16344                    ///  </summary>
  16345                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _provideri d")]
  16346                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_Provider Id
  16347                    {
  16348                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16349                             get
  16350                             {
  16351                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_provide rid");
  16352                             }
  16353                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16354                             set
  16355                             {
  16356                                      this.OnP ropertyCha nging("ppm s_Provider Id");
  16357                                      this.Set AttributeV alue("ppms _provideri d", value) ;
  16358                                      this.OnP ropertyCha nged("ppms _ProviderI d");
  16359                             }
  16360                    }
  16361                    
  16362                    ///  <summary>
  16363                    ///  Provider T ype
  16364                    ///  </summary>
  16365                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providert ype")]
  16366                    publ ic Microso ft.Xrm.Sdk .OptionSet Value ppms _providert ype
  16367                    {
  16368                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16369                             get
  16370                             {
  16371                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("ppm s_provider type");
  16372                             }
  16373                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16374                             set
  16375                             {
  16376                                      this.OnP ropertyCha nging("ppm s_provider type");
  16377                                      this.Set AttributeV alue("ppms _providert ype", valu e);
  16378                                      this.OnP ropertyCha nged("ppms _providert ype");
  16379                             }
  16380                    }
  16381                    
  16382                    ///  <summary>
  16383                    ///  Status of  the Other  Name
  16384                    ///  </summary>
  16385                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat ecode")]
  16386                    publ ic System. Nullable<V A.PPMS.Con text.ppms_ othernameS tate> stat ecode
  16387                    {
  16388                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16389                             get
  16390                             {
  16391                                      Microsof t.Xrm.Sdk. OptionSetV alue optio nSet = thi s.GetAttri buteValue< Microsoft. Xrm.Sdk.Op tionSetVal ue>("state code");
  16392                                      if ((opt ionSet !=  null))
  16393                                      {
  16394                                               return ((V A.PPMS.Con text.ppms_ othernameS tate)(Syst em.Enum.To Object(typ eof(VA.PPM S.Context. ppms_other nameState) , optionSe t.Value))) ;
  16395                                      }
  16396                                      else
  16397                                      {
  16398                                               return nul l;
  16399                                      }
  16400                             }
  16401                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16402                             set
  16403                             {
  16404                                      this.OnP ropertyCha nging("sta tecode");
  16405                                      if ((val ue == null ))
  16406                                      {
  16407                                               this.SetAt tributeVal ue("statec ode", null );
  16408                                      }
  16409                                      else
  16410                                      {
  16411                                               this.SetAt tributeVal ue("statec ode", new  Microsoft. Xrm.Sdk.Op tionSetVal ue(((int)( value))));
  16412                                      }
  16413                                      this.OnP ropertyCha nged("stat ecode");
  16414                             }
  16415                    }
  16416                    
  16417                    ///  <summary>
  16418                    ///  Reason for  the statu s of the O ther Name
  16419                    ///  </summary>
  16420                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  16421                    publ ic Microso ft.Xrm.Sdk .OptionSet Value stat uscode
  16422                    {
  16423                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16424                             get
  16425                             {
  16426                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("sta tuscode");
  16427                             }
  16428                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16429                             set
  16430                             {
  16431                                      this.OnP ropertyCha nging("sta tuscode");
  16432                                      this.Set AttributeV alue("stat uscode", v alue);
  16433                                      this.OnP ropertyCha nged("stat uscode");
  16434                             }
  16435                    }
  16436                    
  16437                    ///  <summary>
  16438                    ///  For intern al use onl y.
  16439                    ///  </summary>
  16440                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("time zoneruleve rsionnumbe r")]
  16441                    publ ic System. Nullable<i nt> TimeZo neRuleVers ionNumber
  16442                    {
  16443                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16444                             get
  16445                             {
  16446                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("timez onerulever sionnumber ");
  16447                             }
  16448                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16449                             set
  16450                             {
  16451                                      this.OnP ropertyCha nging("Tim eZoneRuleV ersionNumb er");
  16452                                      this.Set AttributeV alue("time zoneruleve rsionnumbe r", value) ;
  16453                                      this.OnP ropertyCha nged("Time ZoneRuleVe rsionNumbe r");
  16454                             }
  16455                    }
  16456                    
  16457                    ///  <summary>
  16458                    ///  Time zone  code that  was in use  when the  record was  created.
  16459                    ///  </summary>
  16460                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("utcc onversiont imezonecod e")]
  16461                    publ ic System. Nullable<i nt> UTCCon versionTim eZoneCode
  16462                    {
  16463                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16464                             get
  16465                             {
  16466                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("utcco nversionti mezonecode ");
  16467                             }
  16468                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16469                             set
  16470                             {
  16471                                      this.OnP ropertyCha nging("UTC Conversion TimeZoneCo de");
  16472                                      this.Set AttributeV alue("utcc onversiont imezonecod e", value) ;
  16473                                      this.OnP ropertyCha nged("UTCC onversionT imeZoneCod e");
  16474                             }
  16475                    }
  16476                    
  16477                    ///  <summary>
  16478                    /// 
  16479                    ///  </summary>
  16480                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("vers ionnumber" )]
  16481                    publ ic System. Nullable<l ong> Versi onNumber
  16482                    {
  16483                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16484                             get
  16485                             {
  16486                                      return t his.GetAtt ributeValu e<System.N ullable<lo ng>>("vers ionnumber" );
  16487                             }
  16488                    }
  16489                    
  16490                    ///  <summary>
  16491                    ///  N:1 ppms_a ccount_ppm s_othernam e
  16492                    ///  </summary>
  16493                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _provideri d")]
  16494                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_account _ppms_othe rname")]
  16495                    publ ic VA.PPMS .Context.A ccount ppm s_account_ ppms_other name
  16496                    {
  16497                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16498                             get
  16499                             {
  16500                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.Acc ount>("ppm s_account_ ppms_other name", nul l);
  16501                             }
  16502                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16503                             set
  16504                             {
  16505                                      this.OnP ropertyCha nging("ppm s_account_ ppms_other name");
  16506                                      this.Set RelatedEnt ity<VA.PPM S.Context. Account>(" ppms_accou nt_ppms_ot hername",  null, valu e);
  16507                                      this.OnP ropertyCha nged("ppms _account_p pms_othern ame");
  16508                             }
  16509                    }
  16510                    
  16511                    ///  <summary>
  16512                    ///  Constructo r for popu lating via  LINQ quer ies given  a LINQ ano nymous typ e
  16513                    ///  <param nam e="anonymo usType">LI NQ anonymo us type.</ param>
  16514                    ///  </summary>
  16515                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  16516                    publ ic ppms_ot hername(ob ject anony mousType) 
  16517                                      this()
  16518                    {
  16519                foreach  (var p in  anonymousT ype.GetTyp e().GetPro perties())
  16520                {
  16521                    var  value = p. GetValue(a nonymousTy pe, null);
  16522                    var  name = p.N ame.ToLowe r();
  16523                
  16524                    if ( name.EndsW ith("enum" ) && value .GetType() .BaseType  == typeof( System.Enu m))
  16525                    {
  16526                         value = ne w Microsof t.Xrm.Sdk. OptionSetV alue((int)  value);
  16527                         name = nam e.Remove(n ame.Length  - "enum". Length);
  16528                    }
  16529                
  16530                    swit ch (name)
  16531                    {
  16532                         case "id":
  16533                             base.I d = (Syste m.Guid)val ue;
  16534                             Attrib utes["ppms _othername id"] = bas e.Id;
  16535                             break;
  16536                         case "ppms _othername id":
  16537                             var id  = (System .Nullable< System.Gui d>) value;
  16538                             if(id  == null){  continue;  }
  16539                             base.I d = id.Val ue;
  16540                             Attrib utes[name]  = base.Id ;
  16541                             break;
  16542                         case "form attedvalue s":
  16543                             // Add  Support f or Formatt edValues
  16544                             Format tedValues. AddRange(( Microsoft. Xrm.Sdk.Fo rmattedVal ueCollecti on)value);
  16545                             break;
  16546                         default:
  16547                             Attrib utes[name]  = value;
  16548                             break;
  16549                    }
  16550                }
  16551                    }
  16552                    
  16553                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _othername type")]
  16554                    publ ic virtual  ppms_othe rname_ppms _othername type? ppms _othername typeEnum
  16555                    {
  16556                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16557                             get
  16558                             {
  16559                                      return ( (ppms_othe rname_ppms _othername type?)(Ent ityOptionS etEnum.Get Enum(this,  "ppms_oth ernametype ")));
  16560                             }
  16561                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16562                             set
  16563                             {
  16564                                      ppms_oth ernametype  = value.H asValue ?  new Micros oft.Xrm.Sd k.OptionSe tValue((in t)value) :  null;
  16565                             }
  16566                    }
  16567                    
  16568                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providert ype")]
  16569                    publ ic virtual  ppms_Prov iderType?  ppms_provi dertypeEnu m
  16570                    {
  16571                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16572                             get
  16573                             {
  16574                                      return ( (ppms_Prov iderType?) (EntityOpt ionSetEnum .GetEnum(t his, "ppms _providert ype")));
  16575                             }
  16576                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16577                             set
  16578                             {
  16579                                      ppms_pro vidertype  = value.Ha sValue ? n ew Microso ft.Xrm.Sdk .OptionSet Value((int )value) :  null;
  16580                             }
  16581                    }
  16582                    
  16583                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  16584                    publ ic virtual  ppms_othe rname_Stat usCode? st atuscodeEn um
  16585                    {
  16586                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16587                             get
  16588                             {
  16589                                      return ( (ppms_othe rname_Stat usCode?)(E ntityOptio nSetEnum.G etEnum(thi s, "status code")));
  16590                             }
  16591                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16592                             set
  16593                             {
  16594                                      statusco de = value .HasValue  ? new Micr osoft.Xrm. Sdk.Option SetValue(( int)value)  : null;
  16595                             }
  16596                    }
  16597           }
  16598           
  16599           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  16600           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  16601           pu blic enum  ppms_patie ntserviceS tate
  16602           {
  16603                    
  16604                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  16605                    Acti ve = 0,
  16606                    
  16607                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  16608                    Inac tive = 1,
  16609           }
  16610           
  16611           // / <summary >
  16612           // / Patient  Services
  16613           // / </summar y>
  16614           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  16615           [M icrosoft.X rm.Sdk.Cli ent.Entity LogicalNam eAttribute ("ppms_pat ientservic e")]
  16616           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  16617           pu blic parti al class p pms_patien tservice :  Microsoft .Xrm.Sdk.E ntity, Sys tem.Compon entModel.I NotifyProp ertyChangi ng, System .Component Model.INot ifyPropert yChanged
  16618           {
  16619                    
  16620                    ///  <summary>
  16621                    ///  Default Co nstructor.
  16622                    ///  </summary>
  16623                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  16624                    publ ic ppms_pa tientservi ce() : 
  16625                                      base(Ent ityLogical Name)
  16626                    {
  16627                    }
  16628                    
  16629                    publ ic const s tring Enti tyLogicalN ame = "ppm s_patients ervice";
  16630                    
  16631                    publ ic const i nt EntityT ypeCode =  10033;
  16632                    
  16633                    publ ic event S ystem.Comp onentModel .PropertyC hangedEven tHandler P ropertyCha nged;
  16634                    
  16635                    publ ic event S ystem.Comp onentModel .PropertyC hangingEve ntHandler  PropertyCh anging;
  16636                    
  16637                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  16638                    priv ate void O nPropertyC hanged(str ing proper tyName)
  16639                    {
  16640                             if ((t his.Proper tyChanged  != null))
  16641                             {
  16642                                      this.Pro pertyChang ed(this, n ew System. ComponentM odel.Prope rtyChanged EventArgs( propertyNa me));
  16643                             }
  16644                    }
  16645                    
  16646                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  16647                    priv ate void O nPropertyC hanging(st ring prope rtyName)
  16648                    {
  16649                             if ((t his.Proper tyChanging  != null))
  16650                             {
  16651                                      this.Pro pertyChang ing(this,  new System .Component Model.Prop ertyChangi ngEventArg s(property Name));
  16652                             }
  16653                    }
  16654                    
  16655                    ///  <summary>
  16656                    ///  Unique ide ntifier of  the user  who create d the reco rd.
  16657                    ///  </summary>
  16658                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedby")]
  16659                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedBy
  16660                    {
  16661                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16662                             get
  16663                             {
  16664                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedby");
  16665                             }
  16666                    }
  16667                    
  16668                    ///  <summary>
  16669                    ///  Date and t ime when t he record  was create d.
  16670                    ///  </summary>
  16671                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedon")]
  16672                    publ ic System. Nullable<S ystem.Date Time> Crea tedOn
  16673                    {
  16674                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16675                             get
  16676                             {
  16677                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("cre atedon");
  16678                             }
  16679                    }
  16680                    
  16681                    ///  <summary>
  16682                    ///  Unique ide ntifier of  the deleg ate user w ho created  the recor d.
  16683                    ///  </summary>
  16684                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedonbehal fby")]
  16685                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedOnBeha lfBy
  16686                    {
  16687                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16688                             get
  16689                             {
  16690                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedonbeh alfby");
  16691                             }
  16692                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16693                             set
  16694                             {
  16695                                      this.OnP ropertyCha nging("Cre atedOnBeha lfBy");
  16696                                      this.Set AttributeV alue("crea tedonbehal fby", valu e);
  16697                                      this.OnP ropertyCha nged("Crea tedOnBehal fBy");
  16698                             }
  16699                    }
  16700                    
  16701                    ///  <summary>
  16702                    ///  Sequence n umber of t he import  that creat ed this re cord.
  16703                    ///  </summary>
  16704                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("impo rtsequence number")]
  16705                    publ ic System. Nullable<i nt> Import SequenceNu mber
  16706                    {
  16707                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16708                             get
  16709                             {
  16710                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("impor tsequencen umber");
  16711                             }
  16712                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16713                             set
  16714                             {
  16715                                      this.OnP ropertyCha nging("Imp ortSequenc eNumber");
  16716                                      this.Set AttributeV alue("impo rtsequence number", v alue);
  16717                                      this.OnP ropertyCha nged("Impo rtSequence Number");
  16718                             }
  16719                    }
  16720                    
  16721                    ///  <summary>
  16722                    ///  Unique ide ntifier of  the user  who modifi ed the rec ord.
  16723                    ///  </summary>
  16724                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedby")]
  16725                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedBy
  16726                    {
  16727                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16728                             get
  16729                             {
  16730                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedby") ;
  16731                             }
  16732                    }
  16733                    
  16734                    ///  <summary>
  16735                    ///  Date and t ime when t he record  was modifi ed.
  16736                    ///  </summary>
  16737                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedon")]
  16738                    publ ic System. Nullable<S ystem.Date Time> Modi fiedOn
  16739                    {
  16740                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16741                             get
  16742                             {
  16743                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("mod ifiedon");
  16744                             }
  16745                    }
  16746                    
  16747                    ///  <summary>
  16748                    ///  Unique ide ntifier of  the deleg ate user w ho modifie d the reco rd.
  16749                    ///  </summary>
  16750                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedonbeha lfby")]
  16751                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedOnBeh alfBy
  16752                    {
  16753                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16754                             get
  16755                             {
  16756                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedonbe halfby");
  16757                             }
  16758                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16759                             set
  16760                             {
  16761                                      this.OnP ropertyCha nging("Mod ifiedOnBeh alfBy");
  16762                                      this.Set AttributeV alue("modi fiedonbeha lfby", val ue);
  16763                                      this.OnP ropertyCha nged("Modi fiedOnBeha lfBy");
  16764                             }
  16765                    }
  16766                    
  16767                    ///  <summary>
  16768                    ///  Date and t ime that t he record  was migrat ed.
  16769                    ///  </summary>
  16770                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("over riddencrea tedon")]
  16771                    publ ic System. Nullable<S ystem.Date Time> Over riddenCrea tedOn
  16772                    {
  16773                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16774                             get
  16775                             {
  16776                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ove rriddencre atedon");
  16777                             }
  16778                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16779                             set
  16780                             {
  16781                                      this.OnP ropertyCha nging("Ove rriddenCre atedOn");
  16782                                      this.Set AttributeV alue("over riddencrea tedon", va lue);
  16783                                      this.OnP ropertyCha nged("Over riddenCrea tedOn");
  16784                             }
  16785                    }
  16786                    
  16787                    ///  <summary>
  16788                    ///  Owner Id
  16789                    ///  </summary>
  16790                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owne rid")]
  16791                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own erId
  16792                    {
  16793                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16794                             get
  16795                             {
  16796                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow nerid");
  16797                             }
  16798                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16799                             set
  16800                             {
  16801                                      this.OnP ropertyCha nging("Own erId");
  16802                                      this.Set AttributeV alue("owne rid", valu e);
  16803                                      this.OnP ropertyCha nged("Owne rId");
  16804                             }
  16805                    }
  16806                    
  16807                    ///  <summary>
  16808                    ///  Unique ide ntifier fo r the busi ness unit  that owns  the record
  16809                    ///  </summary>
  16810                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngbusiness unit")]
  16811                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingBusines sUnit
  16812                    {
  16813                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16814                             get
  16815                             {
  16816                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningbusine ssunit");
  16817                             }
  16818                    }
  16819                    
  16820                    ///  <summary>
  16821                    ///  Unique ide ntifier fo r the team  that owns  the recor d.
  16822                    ///  </summary>
  16823                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngteam")]
  16824                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingTeam
  16825                    {
  16826                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16827                             get
  16828                             {
  16829                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningteam") ;
  16830                             }
  16831                    }
  16832                    
  16833                    ///  <summary>
  16834                    ///  Unique ide ntifier fo r the user  that owns  the recor d.
  16835                    ///  </summary>
  16836                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni nguser")]
  16837                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingUser
  16838                    {
  16839                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16840                             get
  16841                             {
  16842                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ninguser") ;
  16843                             }
  16844                    }
  16845                    
  16846                    ///  <summary>
  16847                    ///  Is Availab le
  16848                    ///  </summary>
  16849                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _isavailab le")]
  16850                    publ ic System. Nullable<b ool> ppms_ isavailabl e
  16851                    {
  16852                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16853                             get
  16854                             {
  16855                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("ppms _isavailab le");
  16856                             }
  16857                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16858                             set
  16859                             {
  16860                                      this.OnP ropertyCha nging("ppm s_isavaila ble");
  16861                                      this.Set AttributeV alue("ppms _isavailab le", value );
  16862                                      this.OnP ropertyCha nged("ppms _isavailab le");
  16863                             }
  16864                    }
  16865                    
  16866                    ///  <summary>
  16867                    /// 
  16868                    ///  </summary>
  16869                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _name")]
  16870                    publ ic string  ppms_name
  16871                    {
  16872                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16873                             get
  16874                             {
  16875                                      return t his.GetAtt ributeValu e<string>( "ppms_name ");
  16876                             }
  16877                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16878                             set
  16879                             {
  16880                                      this.OnP ropertyCha nging("ppm s_name");
  16881                                      this.Set AttributeV alue("ppms _name", va lue);
  16882                                      this.OnP ropertyCha nged("ppms _name");
  16883                             }
  16884                    }
  16885                    
  16886                    ///  <summary>
  16887                    ///  Patient Se rvice
  16888                    ///  </summary>
  16889                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _patientse rvice")]
  16890                    publ ic Microso ft.Xrm.Sdk .OptionSet Value ppms _PatientSe rvice
  16891                    {
  16892                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16893                             get
  16894                             {
  16895                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("ppm s_patients ervice");
  16896                             }
  16897                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16898                             set
  16899                             {
  16900                                      this.OnP ropertyCha nging("ppm s_PatientS ervice");
  16901                                      this.Set AttributeV alue("ppms _patientse rvice", va lue);
  16902                                      this.OnP ropertyCha nged("ppms _PatientSe rvice");
  16903                             }
  16904                    }
  16905                    
  16906                    ///  <summary>
  16907                    ///  Unique ide ntifier fo r entity i nstances
  16908                    ///  </summary>
  16909                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _patientse rviceid")]
  16910                    publ ic System. Nullable<S ystem.Guid > ppms_pat ientservic eId
  16911                    {
  16912                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16913                             get
  16914                             {
  16915                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("ppms_pa tientservi ceid");
  16916                             }
  16917                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16918                             set
  16919                             {
  16920                                      this.OnP ropertyCha nging("ppm s_patients erviceId") ;
  16921                                      this.Set AttributeV alue("ppms _patientse rviceid",  value);
  16922                                      if (valu e.HasValue )
  16923                                      {
  16924                                               base.Id =  value.Valu e;
  16925                                      }
  16926                                      else
  16927                                      {
  16928                                               base.Id =  System.Gui d.Empty;
  16929                                      }
  16930                                      this.OnP ropertyCha nged("ppms _patientse rviceId");
  16931                             }
  16932                    }
  16933                    
  16934                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _patientse rviceid")]
  16935                    publ ic overrid e System.G uid Id
  16936                    {
  16937                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16938                             get
  16939                             {
  16940                                      return b ase.Id;
  16941                             }
  16942                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16943                             set
  16944                             {
  16945                                      this.ppm s_patients erviceId =  value;
  16946                             }
  16947                    }
  16948                    
  16949                    ///  <summary>
  16950                    ///  Service Lo cation Des cription
  16951                    ///  </summary>
  16952                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _servicelo cationdesc ription")]
  16953                    publ ic string  ppms_Servi ceLocation Descriptio n
  16954                    {
  16955                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16956                             get
  16957                             {
  16958                                      return t his.GetAtt ributeValu e<string>( "ppms_serv icelocatio ndescripti on");
  16959                             }
  16960                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16961                             set
  16962                             {
  16963                                      this.OnP ropertyCha nging("ppm s_ServiceL ocationDes cription") ;
  16964                                      this.Set AttributeV alue("ppms _servicelo cationdesc ription",  value);
  16965                                      this.OnP ropertyCha nged("ppms _ServiceLo cationDesc ription");
  16966                             }
  16967                    }
  16968                    
  16969                    ///  <summary>
  16970                    ///  Status of  the Patien t Service
  16971                    ///  </summary>
  16972                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat ecode")]
  16973                    publ ic System. Nullable<V A.PPMS.Con text.ppms_ patientser viceState>  statecode
  16974                    {
  16975                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16976                             get
  16977                             {
  16978                                      Microsof t.Xrm.Sdk. OptionSetV alue optio nSet = thi s.GetAttri buteValue< Microsoft. Xrm.Sdk.Op tionSetVal ue>("state code");
  16979                                      if ((opt ionSet !=  null))
  16980                                      {
  16981                                               return ((V A.PPMS.Con text.ppms_ patientser viceState) (System.En um.ToObjec t(typeof(V A.PPMS.Con text.ppms_ patientser viceState) , optionSe t.Value))) ;
  16982                                      }
  16983                                      else
  16984                                      {
  16985                                               return nul l;
  16986                                      }
  16987                             }
  16988                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  16989                             set
  16990                             {
  16991                                      this.OnP ropertyCha nging("sta tecode");
  16992                                      if ((val ue == null ))
  16993                                      {
  16994                                               this.SetAt tributeVal ue("statec ode", null );
  16995                                      }
  16996                                      else
  16997                                      {
  16998                                               this.SetAt tributeVal ue("statec ode", new  Microsoft. Xrm.Sdk.Op tionSetVal ue(((int)( value))));
  16999                                      }
  17000                                      this.OnP ropertyCha nged("stat ecode");
  17001                             }
  17002                    }
  17003                    
  17004                    ///  <summary>
  17005                    ///  Reason for  the statu s of the P atient Ser vice
  17006                    ///  </summary>
  17007                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  17008                    publ ic Microso ft.Xrm.Sdk .OptionSet Value stat uscode
  17009                    {
  17010                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17011                             get
  17012                             {
  17013                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("sta tuscode");
  17014                             }
  17015                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17016                             set
  17017                             {
  17018                                      this.OnP ropertyCha nging("sta tuscode");
  17019                                      this.Set AttributeV alue("stat uscode", v alue);
  17020                                      this.OnP ropertyCha nged("stat uscode");
  17021                             }
  17022                    }
  17023                    
  17024                    ///  <summary>
  17025                    ///  For intern al use onl y.
  17026                    ///  </summary>
  17027                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("time zoneruleve rsionnumbe r")]
  17028                    publ ic System. Nullable<i nt> TimeZo neRuleVers ionNumber
  17029                    {
  17030                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17031                             get
  17032                             {
  17033                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("timez onerulever sionnumber ");
  17034                             }
  17035                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17036                             set
  17037                             {
  17038                                      this.OnP ropertyCha nging("Tim eZoneRuleV ersionNumb er");
  17039                                      this.Set AttributeV alue("time zoneruleve rsionnumbe r", value) ;
  17040                                      this.OnP ropertyCha nged("Time ZoneRuleVe rsionNumbe r");
  17041                             }
  17042                    }
  17043                    
  17044                    ///  <summary>
  17045                    ///  Time zone  code that  was in use  when the  record was  created.
  17046                    ///  </summary>
  17047                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("utcc onversiont imezonecod e")]
  17048                    publ ic System. Nullable<i nt> UTCCon versionTim eZoneCode
  17049                    {
  17050                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17051                             get
  17052                             {
  17053                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("utcco nversionti mezonecode ");
  17054                             }
  17055                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17056                             set
  17057                             {
  17058                                      this.OnP ropertyCha nging("UTC Conversion TimeZoneCo de");
  17059                                      this.Set AttributeV alue("utcc onversiont imezonecod e", value) ;
  17060                                      this.OnP ropertyCha nged("UTCC onversionT imeZoneCod e");
  17061                             }
  17062                    }
  17063                    
  17064                    ///  <summary>
  17065                    /// 
  17066                    ///  </summary>
  17067                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("vers ionnumber" )]
  17068                    publ ic System. Nullable<l ong> Versi onNumber
  17069                    {
  17070                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17071                             get
  17072                             {
  17073                                      return t his.GetAtt ributeValu e<System.N ullable<lo ng>>("vers ionnumber" );
  17074                             }
  17075                    }
  17076                    
  17077                    ///  <summary>
  17078                    ///  1:N ppms_p atientserv ice_servic eavailabil ity
  17079                    ///  </summary>
  17080                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_patient service_se rviceavail ability")]
  17081                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_service availabili ty> ppms_p atientserv ice_servic eavailabil ity
  17082                    {
  17083                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17084                             get
  17085                             {
  17086                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_servic eavailabil ity>("ppms _patientse rvice_serv iceavailab ility", nu ll);
  17087                             }
  17088                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17089                             set
  17090                             {
  17091                                      this.OnP ropertyCha nging("ppm s_patients ervice_ser viceavaila bility");
  17092                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_ser viceavaila bility>("p pms_patien tservice_s erviceavai lability",  null, val ue);
  17093                                      this.OnP ropertyCha nged("ppms _patientse rvice_serv iceavailab ility");
  17094                             }
  17095                    }
  17096                    
  17097                    ///  <summary>
  17098                    ///  Constructo r for popu lating via  LINQ quer ies given  a LINQ ano nymous typ e
  17099                    ///  <param nam e="anonymo usType">LI NQ anonymo us type.</ param>
  17100                    ///  </summary>
  17101                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  17102                    publ ic ppms_pa tientservi ce(object  anonymousT ype) : 
  17103                                      this()
  17104                    {
  17105                foreach  (var p in  anonymousT ype.GetTyp e().GetPro perties())
  17106                {
  17107                    var  value = p. GetValue(a nonymousTy pe, null);
  17108                    var  name = p.N ame.ToLowe r();
  17109                
  17110                    if ( name.EndsW ith("enum" ) && value .GetType() .BaseType  == typeof( System.Enu m))
  17111                    {
  17112                         value = ne w Microsof t.Xrm.Sdk. OptionSetV alue((int)  value);
  17113                         name = nam e.Remove(n ame.Length  - "enum". Length);
  17114                    }
  17115                
  17116                    swit ch (name)
  17117                    {
  17118                         case "id":
  17119                             base.I d = (Syste m.Guid)val ue;
  17120                             Attrib utes["ppms _patientse rviceid"]  = base.Id;
  17121                             break;
  17122                         case "ppms _patientse rviceid":
  17123                             var id  = (System .Nullable< System.Gui d>) value;
  17124                             if(id  == null){  continue;  }
  17125                             base.I d = id.Val ue;
  17126                             Attrib utes[name]  = base.Id ;
  17127                             break;
  17128                         case "form attedvalue s":
  17129                             // Add  Support f or Formatt edValues
  17130                             Format tedValues. AddRange(( Microsoft. Xrm.Sdk.Fo rmattedVal ueCollecti on)value);
  17131                             break;
  17132                         default:
  17133                             Attrib utes[name]  = value;
  17134                             break;
  17135                    }
  17136                }
  17137                    }
  17138                    
  17139                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _patientse rvice")]
  17140                    publ ic virtual  new_Patie ntService?  ppms_Pati entService Enum
  17141                    {
  17142                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17143                             get
  17144                             {
  17145                                      return ( (new_Patie ntService? )(EntityOp tionSetEnu m.GetEnum( this, "ppm s_patients ervice"))) ;
  17146                             }
  17147                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17148                             set
  17149                             {
  17150                                      ppms_Pat ientServic e = value. HasValue ?  new Micro soft.Xrm.S dk.OptionS etValue((i nt)value)  : null;
  17151                             }
  17152                    }
  17153                    
  17154                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  17155                    publ ic virtual  ppms_pati entservice _StatusCod e? statusc odeEnum
  17156                    {
  17157                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17158                             get
  17159                             {
  17160                                      return ( (ppms_pati entservice _StatusCod e?)(Entity OptionSetE num.GetEnu m(this, "s tatuscode" )));
  17161                             }
  17162                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17163                             set
  17164                             {
  17165                                      statusco de = value .HasValue  ? new Micr osoft.Xrm. Sdk.Option SetValue(( int)value)  : null;
  17166                             }
  17167                    }
  17168           }
  17169           
  17170           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  17171           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  17172           pu blic enum  ppms_provi deragreeme ntState
  17173           {
  17174                    
  17175                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  17176                    Acti ve = 0,
  17177                    
  17178                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  17179                    Inac tive = 1,
  17180           }
  17181           
  17182           // / <summary >
  17183           // / Provider  Agreement s
  17184           // / </summar y>
  17185           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  17186           [M icrosoft.X rm.Sdk.Cli ent.Entity LogicalNam eAttribute ("ppms_pro videragree ment")]
  17187           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  17188           pu blic parti al class p pms_provid eragreemen t : Micros oft.Xrm.Sd k.Entity,  System.Com ponentMode l.INotifyP ropertyCha nging, Sys tem.Compon entModel.I NotifyProp ertyChange d
  17189           {
  17190                    
  17191                    ///  <summary>
  17192                    ///  Default Co nstructor.
  17193                    ///  </summary>
  17194                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  17195                    publ ic ppms_pr ovideragre ement() : 
  17196                                      base(Ent ityLogical Name)
  17197                    {
  17198                    }
  17199                    
  17200                    publ ic const s tring Enti tyLogicalN ame = "ppm s_provider agreement" ;
  17201                    
  17202                    publ ic const i nt EntityT ypeCode =  10020;
  17203                    
  17204                    publ ic event S ystem.Comp onentModel .PropertyC hangedEven tHandler P ropertyCha nged;
  17205                    
  17206                    publ ic event S ystem.Comp onentModel .PropertyC hangingEve ntHandler  PropertyCh anging;
  17207                    
  17208                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  17209                    priv ate void O nPropertyC hanged(str ing proper tyName)
  17210                    {
  17211                             if ((t his.Proper tyChanged  != null))
  17212                             {
  17213                                      this.Pro pertyChang ed(this, n ew System. ComponentM odel.Prope rtyChanged EventArgs( propertyNa me));
  17214                             }
  17215                    }
  17216                    
  17217                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  17218                    priv ate void O nPropertyC hanging(st ring prope rtyName)
  17219                    {
  17220                             if ((t his.Proper tyChanging  != null))
  17221                             {
  17222                                      this.Pro pertyChang ing(this,  new System .Component Model.Prop ertyChangi ngEventArg s(property Name));
  17223                             }
  17224                    }
  17225                    
  17226                    ///  <summary>
  17227                    ///  Unique ide ntifier of  the user  who create d the reco rd.
  17228                    ///  </summary>
  17229                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedby")]
  17230                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedBy
  17231                    {
  17232                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17233                             get
  17234                             {
  17235                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedby");
  17236                             }
  17237                    }
  17238                    
  17239                    ///  <summary>
  17240                    ///  Date and t ime when t he record  was create d.
  17241                    ///  </summary>
  17242                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedon")]
  17243                    publ ic System. Nullable<S ystem.Date Time> Crea tedOn
  17244                    {
  17245                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17246                             get
  17247                             {
  17248                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("cre atedon");
  17249                             }
  17250                    }
  17251                    
  17252                    ///  <summary>
  17253                    ///  Unique ide ntifier of  the deleg ate user w ho created  the recor d.
  17254                    ///  </summary>
  17255                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedonbehal fby")]
  17256                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedOnBeha lfBy
  17257                    {
  17258                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17259                             get
  17260                             {
  17261                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedonbeh alfby");
  17262                             }
  17263                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17264                             set
  17265                             {
  17266                                      this.OnP ropertyCha nging("Cre atedOnBeha lfBy");
  17267                                      this.Set AttributeV alue("crea tedonbehal fby", valu e);
  17268                                      this.OnP ropertyCha nged("Crea tedOnBehal fBy");
  17269                             }
  17270                    }
  17271                    
  17272                    ///  <summary>
  17273                    ///  Sequence n umber of t he import  that creat ed this re cord.
  17274                    ///  </summary>
  17275                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("impo rtsequence number")]
  17276                    publ ic System. Nullable<i nt> Import SequenceNu mber
  17277                    {
  17278                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17279                             get
  17280                             {
  17281                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("impor tsequencen umber");
  17282                             }
  17283                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17284                             set
  17285                             {
  17286                                      this.OnP ropertyCha nging("Imp ortSequenc eNumber");
  17287                                      this.Set AttributeV alue("impo rtsequence number", v alue);
  17288                                      this.OnP ropertyCha nged("Impo rtSequence Number");
  17289                             }
  17290                    }
  17291                    
  17292                    ///  <summary>
  17293                    ///  Unique ide ntifier of  the user  who modifi ed the rec ord.
  17294                    ///  </summary>
  17295                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedby")]
  17296                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedBy
  17297                    {
  17298                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17299                             get
  17300                             {
  17301                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedby") ;
  17302                             }
  17303                    }
  17304                    
  17305                    ///  <summary>
  17306                    ///  Date and t ime when t he record  was modifi ed.
  17307                    ///  </summary>
  17308                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedon")]
  17309                    publ ic System. Nullable<S ystem.Date Time> Modi fiedOn
  17310                    {
  17311                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17312                             get
  17313                             {
  17314                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("mod ifiedon");
  17315                             }
  17316                    }
  17317                    
  17318                    ///  <summary>
  17319                    ///  Unique ide ntifier of  the deleg ate user w ho modifie d the reco rd.
  17320                    ///  </summary>
  17321                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedonbeha lfby")]
  17322                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedOnBeh alfBy
  17323                    {
  17324                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17325                             get
  17326                             {
  17327                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedonbe halfby");
  17328                             }
  17329                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17330                             set
  17331                             {
  17332                                      this.OnP ropertyCha nging("Mod ifiedOnBeh alfBy");
  17333                                      this.Set AttributeV alue("modi fiedonbeha lfby", val ue);
  17334                                      this.OnP ropertyCha nged("Modi fiedOnBeha lfBy");
  17335                             }
  17336                    }
  17337                    
  17338                    ///  <summary>
  17339                    ///  Date and t ime that t he record  was migrat ed.
  17340                    ///  </summary>
  17341                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("over riddencrea tedon")]
  17342                    publ ic System. Nullable<S ystem.Date Time> Over riddenCrea tedOn
  17343                    {
  17344                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17345                             get
  17346                             {
  17347                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ove rriddencre atedon");
  17348                             }
  17349                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17350                             set
  17351                             {
  17352                                      this.OnP ropertyCha nging("Ove rriddenCre atedOn");
  17353                                      this.Set AttributeV alue("over riddencrea tedon", va lue);
  17354                                      this.OnP ropertyCha nged("Over riddenCrea tedOn");
  17355                             }
  17356                    }
  17357                    
  17358                    ///  <summary>
  17359                    ///  Owner Id
  17360                    ///  </summary>
  17361                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owne rid")]
  17362                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own erId
  17363                    {
  17364                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17365                             get
  17366                             {
  17367                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow nerid");
  17368                             }
  17369                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17370                             set
  17371                             {
  17372                                      this.OnP ropertyCha nging("Own erId");
  17373                                      this.Set AttributeV alue("owne rid", valu e);
  17374                                      this.OnP ropertyCha nged("Owne rId");
  17375                             }
  17376                    }
  17377                    
  17378                    ///  <summary>
  17379                    ///  Unique ide ntifier fo r the busi ness unit  that owns  the record
  17380                    ///  </summary>
  17381                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngbusiness unit")]
  17382                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingBusines sUnit
  17383                    {
  17384                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17385                             get
  17386                             {
  17387                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningbusine ssunit");
  17388                             }
  17389                    }
  17390                    
  17391                    ///  <summary>
  17392                    ///  Unique ide ntifier fo r the team  that owns  the recor d.
  17393                    ///  </summary>
  17394                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngteam")]
  17395                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingTeam
  17396                    {
  17397                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17398                             get
  17399                             {
  17400                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningteam") ;
  17401                             }
  17402                    }
  17403                    
  17404                    ///  <summary>
  17405                    ///  Unique ide ntifier fo r the user  that owns  the recor d.
  17406                    ///  </summary>
  17407                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni nguser")]
  17408                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingUser
  17409                    {
  17410                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17411                             get
  17412                             {
  17413                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ninguser") ;
  17414                             }
  17415                    }
  17416                    
  17417                    ///  <summary>
  17418                    ///  Unique ide ntifier fo r Provider  associate d with Pro vider Agre ement.
  17419                    ///  </summary>
  17420                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _account_p rovideragr eementid") ]
  17421                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_account_ ProviderAg reementId
  17422                    {
  17423                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17424                             get
  17425                             {
  17426                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_account _providera greementid ");
  17427                             }
  17428                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17429                             set
  17430                             {
  17431                                      this.OnP ropertyCha nging("ppm s_account_ ProviderAg reementId" );
  17432                                      this.Set AttributeV alue("ppms _account_p rovideragr eementid",  value);
  17433                                      this.OnP ropertyCha nged("ppms _account_P roviderAgr eementId") ;
  17434                             }
  17435                    }
  17436                    
  17437                    ///  <summary>
  17438                    /// 
  17439                    ///  </summary>
  17440                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _agreement id")]
  17441                    publ ic string  ppms_agree mentid
  17442                    {
  17443                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17444                             get
  17445                             {
  17446                                      return t his.GetAtt ributeValu e<string>( "ppms_agre ementid");
  17447                             }
  17448                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17449                             set
  17450                             {
  17451                                      this.OnP ropertyCha nging("ppm s_agreemen tid");
  17452                                      this.Set AttributeV alue("ppms _agreement id", value );
  17453                                      this.OnP ropertyCha nged("ppms _agreement id");
  17454                             }
  17455                    }
  17456                    
  17457                    ///  <summary>
  17458                    /// 
  17459                    ///  </summary>
  17460                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _assignedf acility")]
  17461                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_Assigned Facility
  17462                    {
  17463                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17464                             get
  17465                             {
  17466                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_assigne dfacility" );
  17467                             }
  17468                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17469                             set
  17470                             {
  17471                                      this.OnP ropertyCha nging("ppm s_Assigned Facility") ;
  17472                                      this.Set AttributeV alue("ppms _assignedf acility",  value);
  17473                                      this.OnP ropertyCha nged("ppms _AssignedF acility");
  17474                             }
  17475                    }
  17476                    
  17477                    ///  <summary>
  17478                    /// 
  17479                    ///  </summary>
  17480                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _categoryo fcare")]
  17481                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_Category ofCare
  17482                    {
  17483                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17484                             get
  17485                             {
  17486                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_categor yofcare");
  17487                             }
  17488                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17489                             set
  17490                             {
  17491                                      this.OnP ropertyCha nging("ppm s_Category ofCare");
  17492                                      this.Set AttributeV alue("ppms _categoryo fcare", va lue);
  17493                                      this.OnP ropertyCha nged("ppms _Categoryo fCare");
  17494                             }
  17495                    }
  17496                    
  17497                    ///  <summary>
  17498                    ///  Effective  Date
  17499                    ///  </summary>
  17500                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _effective date")]
  17501                    publ ic System. Nullable<S ystem.Date Time> ppms _effective date
  17502                    {
  17503                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17504                             get
  17505                             {
  17506                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ppm s_effectiv edate");
  17507                             }
  17508                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17509                             set
  17510                             {
  17511                                      this.OnP ropertyCha nging("ppm s_effectiv edate");
  17512                                      this.Set AttributeV alue("ppms _effective date", val ue);
  17513                                      this.OnP ropertyCha nged("ppms _effective date");
  17514                             }
  17515                    }
  17516                    
  17517                    ///  <summary>
  17518                    ///  Expiration  Date
  17519                    ///  </summary>
  17520                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _expiratio ndate")]
  17521                    publ ic System. Nullable<S ystem.Date Time> ppms _expiratio ndate
  17522                    {
  17523                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17524                             get
  17525                             {
  17526                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ppm s_expirati ondate");
  17527                             }
  17528                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17529                             set
  17530                             {
  17531                                      this.OnP ropertyCha nging("ppm s_expirati ondate");
  17532                                      this.Set AttributeV alue("ppms _expiratio ndate", va lue);
  17533                                      this.OnP ropertyCha nged("ppms _expiratio ndate");
  17534                             }
  17535                    }
  17536                    
  17537                    ///  <summary>
  17538                    /// 
  17539                    ///  </summary>
  17540                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _importsta tusfield") ]
  17541                    publ ic string  ppms_Impor tStatusFie ld
  17542                    {
  17543                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17544                             get
  17545                             {
  17546                                      return t his.GetAtt ributeValu e<string>( "ppms_impo rtstatusfi eld");
  17547                             }
  17548                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17549                             set
  17550                             {
  17551                                      this.OnP ropertyCha nging("ppm s_ImportSt atusField" );
  17552                                      this.Set AttributeV alue("ppms _importsta tusfield",  value);
  17553                                      this.OnP ropertyCha nged("ppms _ImportSta tusField") ;
  17554                             }
  17555                    }
  17556                    
  17557                    ///  <summary>
  17558                    ///  Unique ide ntifier fo r entity i nstances
  17559                    ///  </summary>
  17560                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providera greementid ")]
  17561                    publ ic System. Nullable<S ystem.Guid > ppms_pro videragree mentId
  17562                    {
  17563                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17564                             get
  17565                             {
  17566                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("ppms_pr ovideragre ementid");
  17567                             }
  17568                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17569                             set
  17570                             {
  17571                                      this.OnP ropertyCha nging("ppm s_provider agreementI d");
  17572                                      this.Set AttributeV alue("ppms _providera greementid ", value);
  17573                                      if (valu e.HasValue )
  17574                                      {
  17575                                               base.Id =  value.Valu e;
  17576                                      }
  17577                                      else
  17578                                      {
  17579                                               base.Id =  System.Gui d.Empty;
  17580                                      }
  17581                                      this.OnP ropertyCha nged("ppms _providera greementId ");
  17582                             }
  17583                    }
  17584                    
  17585                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providera greementid ")]
  17586                    publ ic overrid e System.G uid Id
  17587                    {
  17588                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17589                             get
  17590                             {
  17591                                      return b ase.Id;
  17592                             }
  17593                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17594                             set
  17595                             {
  17596                                      this.ppm s_provider agreementI d = value;
  17597                             }
  17598                    }
  17599                    
  17600                    ///  <summary>
  17601                    /// 
  17602                    ///  </summary>
  17603                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providert ype")]
  17604                    publ ic Microso ft.Xrm.Sdk .OptionSet Value ppms _ProviderT ype
  17605                    {
  17606                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17607                             get
  17608                             {
  17609                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("ppm s_provider type");
  17610                             }
  17611                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17612                             set
  17613                             {
  17614                                      this.OnP ropertyCha nging("ppm s_Provider Type");
  17615                                      this.Set AttributeV alue("ppms _providert ype", valu e);
  17616                                      this.OnP ropertyCha nged("ppms _ProviderT ype");
  17617                             }
  17618                    }
  17619                    
  17620                    ///  <summary>
  17621                    ///  Required A ttachment
  17622                    ///  </summary>
  17623                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _requireda ttachment" )]
  17624                    publ ic string  ppms_requi redattachm ent
  17625                    {
  17626                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17627                             get
  17628                             {
  17629                                      return t his.GetAtt ributeValu e<string>( "ppms_requ iredattach ment");
  17630                             }
  17631                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17632                             set
  17633                             {
  17634                                      this.OnP ropertyCha nging("ppm s_required attachment ");
  17635                                      this.Set AttributeV alue("ppms _requireda ttachment" , value);
  17636                                      this.OnP ropertyCha nged("ppms _requireda ttachment" );
  17637                             }
  17638                    }
  17639                    
  17640                    ///  <summary>
  17641                    ///  Agreement  Status
  17642                    ///  </summary>
  17643                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _status")]
  17644                    publ ic Microso ft.Xrm.Sdk .OptionSet Value ppms _Status
  17645                    {
  17646                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17647                             get
  17648                             {
  17649                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("ppm s_status") ;
  17650                             }
  17651                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17652                             set
  17653                             {
  17654                                      this.OnP ropertyCha nging("ppm s_Status") ;
  17655                                      this.Set AttributeV alue("ppms _status",  value);
  17656                                      this.OnP ropertyCha nged("ppms _Status");
  17657                             }
  17658                    }
  17659                    
  17660                    ///  <summary>
  17661                    ///  Status of  the Provid er Agreeme nt
  17662                    ///  </summary>
  17663                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat ecode")]
  17664                    publ ic System. Nullable<V A.PPMS.Con text.ppms_ providerag reementSta te> statec ode
  17665                    {
  17666                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17667                             get
  17668                             {
  17669                                      Microsof t.Xrm.Sdk. OptionSetV alue optio nSet = thi s.GetAttri buteValue< Microsoft. Xrm.Sdk.Op tionSetVal ue>("state code");
  17670                                      if ((opt ionSet !=  null))
  17671                                      {
  17672                                               return ((V A.PPMS.Con text.ppms_ providerag reementSta te)(System .Enum.ToOb ject(typeo f(VA.PPMS. Context.pp ms_provide ragreement State), op tionSet.Va lue)));
  17673                                      }
  17674                                      else
  17675                                      {
  17676                                               return nul l;
  17677                                      }
  17678                             }
  17679                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17680                             set
  17681                             {
  17682                                      this.OnP ropertyCha nging("sta tecode");
  17683                                      if ((val ue == null ))
  17684                                      {
  17685                                               this.SetAt tributeVal ue("statec ode", null );
  17686                                      }
  17687                                      else
  17688                                      {
  17689                                               this.SetAt tributeVal ue("statec ode", new  Microsoft. Xrm.Sdk.Op tionSetVal ue(((int)( value))));
  17690                                      }
  17691                                      this.OnP ropertyCha nged("stat ecode");
  17692                             }
  17693                    }
  17694                    
  17695                    ///  <summary>
  17696                    ///  Reason for  the statu s of the P rovider Ag reement
  17697                    ///  </summary>
  17698                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  17699                    publ ic Microso ft.Xrm.Sdk .OptionSet Value stat uscode
  17700                    {
  17701                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17702                             get
  17703                             {
  17704                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("sta tuscode");
  17705                             }
  17706                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17707                             set
  17708                             {
  17709                                      this.OnP ropertyCha nging("sta tuscode");
  17710                                      this.Set AttributeV alue("stat uscode", v alue);
  17711                                      this.OnP ropertyCha nged("stat uscode");
  17712                             }
  17713                    }
  17714                    
  17715                    ///  <summary>
  17716                    ///  For intern al use onl y.
  17717                    ///  </summary>
  17718                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("time zoneruleve rsionnumbe r")]
  17719                    publ ic System. Nullable<i nt> TimeZo neRuleVers ionNumber
  17720                    {
  17721                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17722                             get
  17723                             {
  17724                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("timez onerulever sionnumber ");
  17725                             }
  17726                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17727                             set
  17728                             {
  17729                                      this.OnP ropertyCha nging("Tim eZoneRuleV ersionNumb er");
  17730                                      this.Set AttributeV alue("time zoneruleve rsionnumbe r", value) ;
  17731                                      this.OnP ropertyCha nged("Time ZoneRuleVe rsionNumbe r");
  17732                             }
  17733                    }
  17734                    
  17735                    ///  <summary>
  17736                    ///  Time zone  code that  was in use  when the  record was  created.
  17737                    ///  </summary>
  17738                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("utcc onversiont imezonecod e")]
  17739                    publ ic System. Nullable<i nt> UTCCon versionTim eZoneCode
  17740                    {
  17741                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17742                             get
  17743                             {
  17744                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("utcco nversionti mezonecode ");
  17745                             }
  17746                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17747                             set
  17748                             {
  17749                                      this.OnP ropertyCha nging("UTC Conversion TimeZoneCo de");
  17750                                      this.Set AttributeV alue("utcc onversiont imezonecod e", value) ;
  17751                                      this.OnP ropertyCha nged("UTCC onversionT imeZoneCod e");
  17752                             }
  17753                    }
  17754                    
  17755                    ///  <summary>
  17756                    /// 
  17757                    ///  </summary>
  17758                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("vers ionnumber" )]
  17759                    publ ic System. Nullable<l ong> Versi onNumber
  17760                    {
  17761                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17762                             get
  17763                             {
  17764                                      return t his.GetAtt ributeValu e<System.N ullable<lo ng>>("vers ionnumber" );
  17765                             }
  17766                    }
  17767                    
  17768                    ///  <summary>
  17769                    ///  1:N ppms_p pms_provid eragreemen t_ppms_agr eementprov ider_Provi derAgreeme nt
  17770                    ///  </summary>
  17771                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_ppms_pr ovideragre ement_ppms _agreement provider_P roviderAgr eement")]
  17772                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_agreeme ntprovider > ppms_ppm s_provider agreement_ ppms_agree mentprovid er_Provide rAgreement
  17773                    {
  17774                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17775                             get
  17776                             {
  17777                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_agreem entprovide r>("ppms_p pms_provid eragreemen t_ppms_agr eementprov ider_Provi derAgreeme nt", null) ;
  17778                             }
  17779                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17780                             set
  17781                             {
  17782                                      this.OnP ropertyCha nging("ppm s_ppms_pro videragree ment_ppms_ agreementp rovider_Pr oviderAgre ement");
  17783                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_agr eementprov ider>("ppm s_ppms_pro videragree ment_ppms_ agreementp rovider_Pr oviderAgre ement", nu ll, value) ;
  17784                                      this.OnP ropertyCha nged("ppms _ppms_prov ideragreem ent_ppms_a greementpr ovider_Pro viderAgree ment");
  17785                             }
  17786                    }
  17787                    
  17788                    ///  <summary>
  17789                    ///  1:N ppms_p pms_provid eragreemen t_ppms_ins titution
  17790                    ///  </summary>
  17791                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_ppms_pr ovideragre ement_ppms _instituti on")]
  17792                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_institu tion> ppms _ppms_prov ideragreem ent_ppms_i nstitution
  17793                    {
  17794                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17795                             get
  17796                             {
  17797                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_instit ution>("pp ms_ppms_pr ovideragre ement_ppms _instituti on", null) ;
  17798                             }
  17799                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17800                             set
  17801                             {
  17802                                      this.OnP ropertyCha nging("ppm s_ppms_pro videragree ment_ppms_ institutio n");
  17803                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_ins titution>( "ppms_ppms _providera greement_p pms_instit ution", nu ll, value) ;
  17804                                      this.OnP ropertyCha nged("ppms _ppms_prov ideragreem ent_ppms_i nstitution ");
  17805                             }
  17806                    }
  17807                    
  17808                    ///  <summary>
  17809                    ///  1:N ppms_p rovideragr eement_ppm s_provider service_Pr oviderAgre ement
  17810                    ///  </summary>
  17811                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_provide ragreement _ppms_prov iderservic e_Provider Agreement" )]
  17812                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_provide rservice>  ppms_provi deragreeme nt_ppms_pr oviderserv ice_Provid erAgreemen t
  17813                    {
  17814                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17815                             get
  17816                             {
  17817                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_provid erservice> ("ppms_pro videragree ment_ppms_ providerse rvice_Prov iderAgreem ent", null );
  17818                             }
  17819                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17820                             set
  17821                             {
  17822                                      this.OnP ropertyCha nging("ppm s_provider agreement_ ppms_provi derservice _ProviderA greement") ;
  17823                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_pro viderservi ce>("ppms_ providerag reement_pp ms_provide rservice_P roviderAgr eement", n ull, value );
  17824                                      this.OnP ropertyCha nged("ppms _providera greement_p pms_provid erservice_ ProviderAg reement");
  17825                             }
  17826                    }
  17827                    
  17828                    ///  <summary>
  17829                    ///  N:1 ppms_p pm_provide ragreement
  17830                    ///  </summary>
  17831                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _account_p rovideragr eementid") ]
  17832                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_ppm_pro videragree ment")]
  17833                    publ ic VA.PPMS .Context.A ccount ppm s_ppm_prov ideragreem ent
  17834                    {
  17835                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17836                             get
  17837                             {
  17838                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.Acc ount>("ppm s_ppm_prov ideragreem ent", null );
  17839                             }
  17840                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17841                             set
  17842                             {
  17843                                      this.OnP ropertyCha nging("ppm s_ppm_prov ideragreem ent");
  17844                                      this.Set RelatedEnt ity<VA.PPM S.Context. Account>(" ppms_ppm_p rovideragr eement", n ull, value );
  17845                                      this.OnP ropertyCha nged("ppms _ppm_provi deragreeme nt");
  17846                             }
  17847                    }
  17848                    
  17849                    ///  <summary>
  17850                    ///  N:1 ppms_p rovidertax onomy_ppms _providera greement_C ategoryofC are
  17851                    ///  </summary>
  17852                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _categoryo fcare")]
  17853                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_provide rtaxonomy_ ppms_provi deragreeme nt_Categor yofCare")]
  17854                    publ ic VA.PPMS .Context.p pms_provid ertaxonomy  ppms_prov idertaxono my_ppms_pr ovideragre ement_Cate goryofCare
  17855                    {
  17856                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17857                             get
  17858                             {
  17859                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.ppm s_provider taxonomy>( "ppms_prov idertaxono my_ppms_pr ovideragre ement_Cate goryofCare ", null);
  17860                             }
  17861                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17862                             set
  17863                             {
  17864                                      this.OnP ropertyCha nging("ppm s_provider taxonomy_p pms_provid eragreemen t_Category ofCare");
  17865                                      this.Set RelatedEnt ity<VA.PPM S.Context. ppms_provi dertaxonom y>("ppms_p rovidertax onomy_ppms _providera greement_C ategoryofC are", null , value);
  17866                                      this.OnP ropertyCha nged("ppms _providert axonomy_pp ms_provide ragreement _Categoryo fCare");
  17867                             }
  17868                    }
  17869                    
  17870                    ///  <summary>
  17871                    ///  N:1 ppms_v a_facility _ppms_prov ideragreem ent_Assign edFacility
  17872                    ///  </summary>
  17873                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _assignedf acility")]
  17874                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_va_faci lity_ppms_ providerag reement_As signedFaci lity")]
  17875                    publ ic VA.PPMS .Context.v a_facility  ppms_va_f acility_pp ms_provide ragreement _AssignedF acility
  17876                    {
  17877                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17878                             get
  17879                             {
  17880                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.va_ facility>( "ppms_va_f acility_pp ms_provide ragreement _AssignedF acility",  null);
  17881                             }
  17882                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17883                             set
  17884                             {
  17885                                      this.OnP ropertyCha nging("ppm s_va_facil ity_ppms_p rovideragr eement_Ass ignedFacil ity");
  17886                                      this.Set RelatedEnt ity<VA.PPM S.Context. va_facilit y>("ppms_v a_facility _ppms_prov ideragreem ent_Assign edFacility ", null, v alue);
  17887                                      this.OnP ropertyCha nged("ppms _va_facili ty_ppms_pr ovideragre ement_Assi gnedFacili ty");
  17888                             }
  17889                    }
  17890                    
  17891                    ///  <summary>
  17892                    ///  Constructo r for popu lating via  LINQ quer ies given  a LINQ ano nymous typ e
  17893                    ///  <param nam e="anonymo usType">LI NQ anonymo us type.</ param>
  17894                    ///  </summary>
  17895                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  17896                    publ ic ppms_pr ovideragre ement(obje ct anonymo usType) : 
  17897                                      this()
  17898                    {
  17899                foreach  (var p in  anonymousT ype.GetTyp e().GetPro perties())
  17900                {
  17901                    var  value = p. GetValue(a nonymousTy pe, null);
  17902                    var  name = p.N ame.ToLowe r();
  17903                
  17904                    if ( name.EndsW ith("enum" ) && value .GetType() .BaseType  == typeof( System.Enu m))
  17905                    {
  17906                         value = ne w Microsof t.Xrm.Sdk. OptionSetV alue((int)  value);
  17907                         name = nam e.Remove(n ame.Length  - "enum". Length);
  17908                    }
  17909                
  17910                    swit ch (name)
  17911                    {
  17912                         case "id":
  17913                             base.I d = (Syste m.Guid)val ue;
  17914                             Attrib utes["ppms _providera greementid "] = base. Id;
  17915                             break;
  17916                         case "ppms _providera greementid ":
  17917                             var id  = (System .Nullable< System.Gui d>) value;
  17918                             if(id  == null){  continue;  }
  17919                             base.I d = id.Val ue;
  17920                             Attrib utes[name]  = base.Id ;
  17921                             break;
  17922                         case "form attedvalue s":
  17923                             // Add  Support f or Formatt edValues
  17924                             Format tedValues. AddRange(( Microsoft. Xrm.Sdk.Fo rmattedVal ueCollecti on)value);
  17925                             break;
  17926                         default:
  17927                             Attrib utes[name]  = value;
  17928                             break;
  17929                    }
  17930                }
  17931                    }
  17932                    
  17933                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providert ype")]
  17934                    publ ic virtual  ppms_Prov iderType?  ppms_Provi derTypeEnu m
  17935                    {
  17936                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17937                             get
  17938                             {
  17939                                      return ( (ppms_Prov iderType?) (EntityOpt ionSetEnum .GetEnum(t his, "ppms _providert ype")));
  17940                             }
  17941                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17942                             set
  17943                             {
  17944                                      ppms_Pro viderType  = value.Ha sValue ? n ew Microso ft.Xrm.Sdk .OptionSet Value((int )value) :  null;
  17945                             }
  17946                    }
  17947                    
  17948                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _status")]
  17949                    publ ic virtual  new_Activ eInactiveL ist? ppms_ StatusEnum
  17950                    {
  17951                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17952                             get
  17953                             {
  17954                                      return ( (new_Activ eInactiveL ist?)(Enti tyOptionSe tEnum.GetE num(this,  "ppms_stat us")));
  17955                             }
  17956                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17957                             set
  17958                             {
  17959                                      ppms_Sta tus = valu e.HasValue  ? new Mic rosoft.Xrm .Sdk.Optio nSetValue( (int)value ) : null;
  17960                             }
  17961                    }
  17962                    
  17963                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  17964                    publ ic virtual  ppms_prov ideragreem ent_Status Code? stat uscodeEnum
  17965                    {
  17966                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17967                             get
  17968                             {
  17969                                      return ( (ppms_prov ideragreem ent_Status Code?)(Ent ityOptionS etEnum.Get Enum(this,  "statusco de")));
  17970                             }
  17971                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  17972                             set
  17973                             {
  17974                                      statusco de = value .HasValue  ? new Micr osoft.Xrm. Sdk.Option SetValue(( int)value)  : null;
  17975                             }
  17976                    }
  17977           }
  17978           
  17979           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  17980           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  17981           pu blic enum  ppms_provi dercredent ialState
  17982           {
  17983                    
  17984                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  17985                    Acti ve = 0,
  17986                    
  17987                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  17988                    Inac tive = 1,
  17989           }
  17990           
  17991           // / <summary >
  17992           // / Provider  Credentia ls
  17993           // / </summar y>
  17994           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  17995           [M icrosoft.X rm.Sdk.Cli ent.Entity LogicalNam eAttribute ("ppms_pro vidercrede ntial")]
  17996           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  17997           pu blic parti al class p pms_provid ercredenti al : Micro soft.Xrm.S dk.Entity,  System.Co mponentMod el.INotify PropertyCh anging, Sy stem.Compo nentModel. INotifyPro pertyChang ed
  17998           {
  17999                    
  18000                    ///  <summary>
  18001                    ///  Default Co nstructor.
  18002                    ///  </summary>
  18003                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  18004                    publ ic ppms_pr ovidercred ential() :  
  18005                                      base(Ent ityLogical Name)
  18006                    {
  18007                    }
  18008                    
  18009                    publ ic const s tring Enti tyLogicalN ame = "ppm s_provider credential ";
  18010                    
  18011                    publ ic const i nt EntityT ypeCode =  10009;
  18012                    
  18013                    publ ic event S ystem.Comp onentModel .PropertyC hangedEven tHandler P ropertyCha nged;
  18014                    
  18015                    publ ic event S ystem.Comp onentModel .PropertyC hangingEve ntHandler  PropertyCh anging;
  18016                    
  18017                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  18018                    priv ate void O nPropertyC hanged(str ing proper tyName)
  18019                    {
  18020                             if ((t his.Proper tyChanged  != null))
  18021                             {
  18022                                      this.Pro pertyChang ed(this, n ew System. ComponentM odel.Prope rtyChanged EventArgs( propertyNa me));
  18023                             }
  18024                    }
  18025                    
  18026                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  18027                    priv ate void O nPropertyC hanging(st ring prope rtyName)
  18028                    {
  18029                             if ((t his.Proper tyChanging  != null))
  18030                             {
  18031                                      this.Pro pertyChang ing(this,  new System .Component Model.Prop ertyChangi ngEventArg s(property Name));
  18032                             }
  18033                    }
  18034                    
  18035                    ///  <summary>
  18036                    ///  Unique ide ntifier of  the user  who create d the reco rd.
  18037                    ///  </summary>
  18038                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedby")]
  18039                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedBy
  18040                    {
  18041                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18042                             get
  18043                             {
  18044                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedby");
  18045                             }
  18046                    }
  18047                    
  18048                    ///  <summary>
  18049                    ///  Date and t ime when t he record  was create d.
  18050                    ///  </summary>
  18051                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedon")]
  18052                    publ ic System. Nullable<S ystem.Date Time> Crea tedOn
  18053                    {
  18054                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18055                             get
  18056                             {
  18057                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("cre atedon");
  18058                             }
  18059                    }
  18060                    
  18061                    ///  <summary>
  18062                    ///  Unique ide ntifier of  the deleg ate user w ho created  the recor d.
  18063                    ///  </summary>
  18064                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedonbehal fby")]
  18065                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedOnBeha lfBy
  18066                    {
  18067                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18068                             get
  18069                             {
  18070                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedonbeh alfby");
  18071                             }
  18072                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18073                             set
  18074                             {
  18075                                      this.OnP ropertyCha nging("Cre atedOnBeha lfBy");
  18076                                      this.Set AttributeV alue("crea tedonbehal fby", valu e);
  18077                                      this.OnP ropertyCha nged("Crea tedOnBehal fBy");
  18078                             }
  18079                    }
  18080                    
  18081                    ///  <summary>
  18082                    ///  Sequence n umber of t he import  that creat ed this re cord.
  18083                    ///  </summary>
  18084                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("impo rtsequence number")]
  18085                    publ ic System. Nullable<i nt> Import SequenceNu mber
  18086                    {
  18087                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18088                             get
  18089                             {
  18090                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("impor tsequencen umber");
  18091                             }
  18092                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18093                             set
  18094                             {
  18095                                      this.OnP ropertyCha nging("Imp ortSequenc eNumber");
  18096                                      this.Set AttributeV alue("impo rtsequence number", v alue);
  18097                                      this.OnP ropertyCha nged("Impo rtSequence Number");
  18098                             }
  18099                    }
  18100                    
  18101                    ///  <summary>
  18102                    ///  Unique ide ntifier of  the user  who modifi ed the rec ord.
  18103                    ///  </summary>
  18104                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedby")]
  18105                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedBy
  18106                    {
  18107                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18108                             get
  18109                             {
  18110                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedby") ;
  18111                             }
  18112                    }
  18113                    
  18114                    ///  <summary>
  18115                    ///  Date and t ime when t he record  was modifi ed.
  18116                    ///  </summary>
  18117                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedon")]
  18118                    publ ic System. Nullable<S ystem.Date Time> Modi fiedOn
  18119                    {
  18120                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18121                             get
  18122                             {
  18123                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("mod ifiedon");
  18124                             }
  18125                    }
  18126                    
  18127                    ///  <summary>
  18128                    ///  Unique ide ntifier of  the deleg ate user w ho modifie d the reco rd.
  18129                    ///  </summary>
  18130                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedonbeha lfby")]
  18131                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedOnBeh alfBy
  18132                    {
  18133                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18134                             get
  18135                             {
  18136                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedonbe halfby");
  18137                             }
  18138                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18139                             set
  18140                             {
  18141                                      this.OnP ropertyCha nging("Mod ifiedOnBeh alfBy");
  18142                                      this.Set AttributeV alue("modi fiedonbeha lfby", val ue);
  18143                                      this.OnP ropertyCha nged("Modi fiedOnBeha lfBy");
  18144                             }
  18145                    }
  18146                    
  18147                    ///  <summary>
  18148                    ///  Date and t ime that t he record  was migrat ed.
  18149                    ///  </summary>
  18150                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("over riddencrea tedon")]
  18151                    publ ic System. Nullable<S ystem.Date Time> Over riddenCrea tedOn
  18152                    {
  18153                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18154                             get
  18155                             {
  18156                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ove rriddencre atedon");
  18157                             }
  18158                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18159                             set
  18160                             {
  18161                                      this.OnP ropertyCha nging("Ove rriddenCre atedOn");
  18162                                      this.Set AttributeV alue("over riddencrea tedon", va lue);
  18163                                      this.OnP ropertyCha nged("Over riddenCrea tedOn");
  18164                             }
  18165                    }
  18166                    
  18167                    ///  <summary>
  18168                    ///  Owner Id
  18169                    ///  </summary>
  18170                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owne rid")]
  18171                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own erId
  18172                    {
  18173                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18174                             get
  18175                             {
  18176                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow nerid");
  18177                             }
  18178                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18179                             set
  18180                             {
  18181                                      this.OnP ropertyCha nging("Own erId");
  18182                                      this.Set AttributeV alue("owne rid", valu e);
  18183                                      this.OnP ropertyCha nged("Owne rId");
  18184                             }
  18185                    }
  18186                    
  18187                    ///  <summary>
  18188                    ///  Unique ide ntifier fo r the busi ness unit  that owns  the record
  18189                    ///  </summary>
  18190                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngbusiness unit")]
  18191                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingBusines sUnit
  18192                    {
  18193                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18194                             get
  18195                             {
  18196                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningbusine ssunit");
  18197                             }
  18198                    }
  18199                    
  18200                    ///  <summary>
  18201                    ///  Unique ide ntifier fo r the team  that owns  the recor d.
  18202                    ///  </summary>
  18203                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngteam")]
  18204                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingTeam
  18205                    {
  18206                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18207                             get
  18208                             {
  18209                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningteam") ;
  18210                             }
  18211                    }
  18212                    
  18213                    ///  <summary>
  18214                    ///  Unique ide ntifier fo r the user  that owns  the recor d.
  18215                    ///  </summary>
  18216                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni nguser")]
  18217                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingUser
  18218                    {
  18219                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18220                             get
  18221                             {
  18222                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ninguser") ;
  18223                             }
  18224                    }
  18225                    
  18226                    ///  <summary>
  18227                    ///  Correlatio n Id
  18228                    ///  </summary>
  18229                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _correlati onid")]
  18230                    publ ic string  ppms_corre lationid
  18231                    {
  18232                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18233                             get
  18234                             {
  18235                                      return t his.GetAtt ributeValu e<string>( "ppms_corr elationid" );
  18236                             }
  18237                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18238                             set
  18239                             {
  18240                                      this.OnP ropertyCha nging("ppm s_correlat ionid");
  18241                                      this.Set AttributeV alue("ppms _correlati onid", val ue);
  18242                                      this.OnP ropertyCha nged("ppms _correlati onid");
  18243                             }
  18244                    }
  18245                    
  18246                    ///  <summary>
  18247                    ///  Credential ed Date
  18248                    ///  </summary>
  18249                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _credentia leddate")]
  18250                    publ ic System. Nullable<S ystem.Date Time> ppms _credentia leddate
  18251                    {
  18252                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18253                             get
  18254                             {
  18255                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ppm s_credenti aleddate") ;
  18256                             }
  18257                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18258                             set
  18259                             {
  18260                                      this.OnP ropertyCha nging("ppm s_credenti aleddate") ;
  18261                                      this.Set AttributeV alue("ppms _credentia leddate",  value);
  18262                                      this.OnP ropertyCha nged("ppms _credentia leddate");
  18263                             }
  18264                    }
  18265                    
  18266                    ///  <summary>
  18267                    ///  Credential ing Status
  18268                    ///  </summary>
  18269                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _credentia lingstatus ")]
  18270                    publ ic Microso ft.Xrm.Sdk .OptionSet Value ppms _credentia lingstatus
  18271                    {
  18272                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18273                             get
  18274                             {
  18275                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("ppm s_credenti alingstatu s");
  18276                             }
  18277                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18278                             set
  18279                             {
  18280                                      this.OnP ropertyCha nging("ppm s_credenti alingstatu s");
  18281                                      this.Set AttributeV alue("ppms _credentia lingstatus ", value);
  18282                                      this.OnP ropertyCha nged("ppms _credentia lingstatus ");
  18283                             }
  18284                    }
  18285                    
  18286                    ///  <summary>
  18287                    ///  Credential  Number
  18288                    ///  </summary>
  18289                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _credentia lnumber")]
  18290                    publ ic System. Nullable<i nt> ppms_c redentialn umber
  18291                    {
  18292                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18293                             get
  18294                             {
  18295                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("ppms_ credential number");
  18296                             }
  18297                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18298                             set
  18299                             {
  18300                                      this.OnP ropertyCha nging("ppm s_credenti alnumber") ;
  18301                                      this.Set AttributeV alue("ppms _credentia lnumber",  value);
  18302                                      this.OnP ropertyCha nged("ppms _credentia lnumber");
  18303                             }
  18304                    }
  18305                    
  18306                    ///  <summary>
  18307                    ///  Credential  Type
  18308                    ///  </summary>
  18309                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _credentia ltype")]
  18310                    publ ic Microso ft.Xrm.Sdk .OptionSet Value ppms _credentia ltype
  18311                    {
  18312                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18313                             get
  18314                             {
  18315                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("ppm s_credenti altype");
  18316                             }
  18317                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18318                             set
  18319                             {
  18320                                      this.OnP ropertyCha nging("ppm s_credenti altype");
  18321                                      this.Set AttributeV alue("ppms _credentia ltype", va lue);
  18322                                      this.OnP ropertyCha nged("ppms _credentia ltype");
  18323                             }
  18324                    }
  18325                    
  18326                    ///  <summary>
  18327                    ///  Descriptio n
  18328                    ///  </summary>
  18329                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _descripti on")]
  18330                    publ ic string  ppms_Descr iption
  18331                    {
  18332                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18333                             get
  18334                             {
  18335                                      return t his.GetAtt ributeValu e<string>( "ppms_desc ription");
  18336                             }
  18337                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18338                             set
  18339                             {
  18340                                      this.OnP ropertyCha nging("ppm s_Descript ion");
  18341                                      this.Set AttributeV alue("ppms _descripti on", value );
  18342                                      this.OnP ropertyCha nged("ppms _Descripti on");
  18343                             }
  18344                    }
  18345                    
  18346                    ///  <summary>
  18347                    /// 
  18348                    ///  </summary>
  18349                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _name")]
  18350                    publ ic string  ppms_name
  18351                    {
  18352                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18353                             get
  18354                             {
  18355                                      return t his.GetAtt ributeValu e<string>( "ppms_name ");
  18356                             }
  18357                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18358                             set
  18359                             {
  18360                                      this.OnP ropertyCha nging("ppm s_name");
  18361                                      this.Set AttributeV alue("ppms _name", va lue);
  18362                                      this.OnP ropertyCha nged("ppms _name");
  18363                             }
  18364                    }
  18365                    
  18366                    ///  <summary>
  18367                    ///  Next Crede ntialing D ate
  18368                    ///  </summary>
  18369                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _nextcrede ntialingda te")]
  18370                    publ ic System. Nullable<S ystem.Date Time> ppms _nextcrede ntialingda te
  18371                    {
  18372                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18373                             get
  18374                             {
  18375                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ppm s_nextcred entialingd ate");
  18376                             }
  18377                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18378                             set
  18379                             {
  18380                                      this.OnP ropertyCha nging("ppm s_nextcred entialingd ate");
  18381                                      this.Set AttributeV alue("ppms _nextcrede ntialingda te", value );
  18382                                      this.OnP ropertyCha nged("ppms _nextcrede ntialingda te");
  18383                             }
  18384                    }
  18385                    
  18386                    ///  <summary>
  18387                    ///  Unique ide ntifier fo r entity i nstances
  18388                    ///  </summary>
  18389                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providerc redentiali d")]
  18390                    publ ic System. Nullable<S ystem.Guid > ppms_pro vidercrede ntialId
  18391                    {
  18392                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18393                             get
  18394                             {
  18395                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("ppms_pr ovidercred entialid") ;
  18396                             }
  18397                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18398                             set
  18399                             {
  18400                                      this.OnP ropertyCha nging("ppm s_provider credential Id");
  18401                                      this.Set AttributeV alue("ppms _providerc redentiali d", value) ;
  18402                                      if (valu e.HasValue )
  18403                                      {
  18404                                               base.Id =  value.Valu e;
  18405                                      }
  18406                                      else
  18407                                      {
  18408                                               base.Id =  System.Gui d.Empty;
  18409                                      }
  18410                                      this.OnP ropertyCha nged("ppms _providerc redentialI d");
  18411                             }
  18412                    }
  18413                    
  18414                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providerc redentiali d")]
  18415                    publ ic overrid e System.G uid Id
  18416                    {
  18417                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18418                             get
  18419                             {
  18420                                      return b ase.Id;
  18421                             }
  18422                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18423                             set
  18424                             {
  18425                                      this.ppm s_provider credential Id = value ;
  18426                             }
  18427                    }
  18428                    
  18429                    ///  <summary>
  18430                    ///  Provider
  18431                    ///  </summary>
  18432                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _provideri d")]
  18433                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_Provider Id
  18434                    {
  18435                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18436                             get
  18437                             {
  18438                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_provide rid");
  18439                             }
  18440                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18441                             set
  18442                             {
  18443                                      this.OnP ropertyCha nging("ppm s_Provider Id");
  18444                                      this.Set AttributeV alue("ppms _provideri d", value) ;
  18445                                      this.OnP ropertyCha nged("ppms _ProviderI d");
  18446                             }
  18447                    }
  18448                    
  18449                    ///  <summary>
  18450                    ///  Status of  the Provid er Credent ial
  18451                    ///  </summary>
  18452                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat ecode")]
  18453                    publ ic System. Nullable<V A.PPMS.Con text.ppms_ providercr edentialSt ate> state code
  18454                    {
  18455                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18456                             get
  18457                             {
  18458                                      Microsof t.Xrm.Sdk. OptionSetV alue optio nSet = thi s.GetAttri buteValue< Microsoft. Xrm.Sdk.Op tionSetVal ue>("state code");
  18459                                      if ((opt ionSet !=  null))
  18460                                      {
  18461                                               return ((V A.PPMS.Con text.ppms_ providercr edentialSt ate)(Syste m.Enum.ToO bject(type of(VA.PPMS .Context.p pms_provid ercredenti alState),  optionSet. Value)));
  18462                                      }
  18463                                      else
  18464                                      {
  18465                                               return nul l;
  18466                                      }
  18467                             }
  18468                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18469                             set
  18470                             {
  18471                                      this.OnP ropertyCha nging("sta tecode");
  18472                                      if ((val ue == null ))
  18473                                      {
  18474                                               this.SetAt tributeVal ue("statec ode", null );
  18475                                      }
  18476                                      else
  18477                                      {
  18478                                               this.SetAt tributeVal ue("statec ode", new  Microsoft. Xrm.Sdk.Op tionSetVal ue(((int)( value))));
  18479                                      }
  18480                                      this.OnP ropertyCha nged("stat ecode");
  18481                             }
  18482                    }
  18483                    
  18484                    ///  <summary>
  18485                    ///  Reason for  the statu s of the P rovider Cr edential
  18486                    ///  </summary>
  18487                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  18488                    publ ic Microso ft.Xrm.Sdk .OptionSet Value stat uscode
  18489                    {
  18490                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18491                             get
  18492                             {
  18493                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("sta tuscode");
  18494                             }
  18495                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18496                             set
  18497                             {
  18498                                      this.OnP ropertyCha nging("sta tuscode");
  18499                                      this.Set AttributeV alue("stat uscode", v alue);
  18500                                      this.OnP ropertyCha nged("stat uscode");
  18501                             }
  18502                    }
  18503                    
  18504                    ///  <summary>
  18505                    ///  For intern al use onl y.
  18506                    ///  </summary>
  18507                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("time zoneruleve rsionnumbe r")]
  18508                    publ ic System. Nullable<i nt> TimeZo neRuleVers ionNumber
  18509                    {
  18510                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18511                             get
  18512                             {
  18513                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("timez onerulever sionnumber ");
  18514                             }
  18515                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18516                             set
  18517                             {
  18518                                      this.OnP ropertyCha nging("Tim eZoneRuleV ersionNumb er");
  18519                                      this.Set AttributeV alue("time zoneruleve rsionnumbe r", value) ;
  18520                                      this.OnP ropertyCha nged("Time ZoneRuleVe rsionNumbe r");
  18521                             }
  18522                    }
  18523                    
  18524                    ///  <summary>
  18525                    ///  Time zone  code that  was in use  when the  record was  created.
  18526                    ///  </summary>
  18527                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("utcc onversiont imezonecod e")]
  18528                    publ ic System. Nullable<i nt> UTCCon versionTim eZoneCode
  18529                    {
  18530                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18531                             get
  18532                             {
  18533                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("utcco nversionti mezonecode ");
  18534                             }
  18535                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18536                             set
  18537                             {
  18538                                      this.OnP ropertyCha nging("UTC Conversion TimeZoneCo de");
  18539                                      this.Set AttributeV alue("utcc onversiont imezonecod e", value) ;
  18540                                      this.OnP ropertyCha nged("UTCC onversionT imeZoneCod e");
  18541                             }
  18542                    }
  18543                    
  18544                    ///  <summary>
  18545                    /// 
  18546                    ///  </summary>
  18547                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("vers ionnumber" )]
  18548                    publ ic System. Nullable<l ong> Versi onNumber
  18549                    {
  18550                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18551                             get
  18552                             {
  18553                                      return t his.GetAtt ributeValu e<System.N ullable<lo ng>>("vers ionnumber" );
  18554                             }
  18555                    }
  18556                    
  18557                    ///  <summary>
  18558                    ///  1:N ppms_p pms_provid ercredenti al_ppms_va providerre lationship _Credentia ling
  18559                    ///  </summary>
  18560                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_ppms_pr ovidercred ential_ppm s_vaprovid errelation ship_Crede ntialing") ]
  18561                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_vaprovi derrelatio nship> ppm s_ppms_pro vidercrede ntial_ppms _vaprovide rrelations hip_Creden tialing
  18562                    {
  18563                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18564                             get
  18565                             {
  18566                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_vaprov iderrelati onship>("p pms_ppms_p rovidercre dential_pp ms_vaprovi derrelatio nship_Cred entialing" , null);
  18567                             }
  18568                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18569                             set
  18570                             {
  18571                                      this.OnP ropertyCha nging("ppm s_ppms_pro vidercrede ntial_ppms _vaprovide rrelations hip_Creden tialing");
  18572                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_vap roviderrel ationship> ("ppms_ppm s_provider credential _ppms_vapr oviderrela tionship_C redentiali ng", null,  value);
  18573                                      this.OnP ropertyCha nged("ppms _ppms_prov idercreden tial_ppms_ vaprovider relationsh ip_Credent ialing");
  18574                             }
  18575                    }
  18576                    
  18577                    ///  <summary>
  18578                    ///  N:1 ppms_a ccount_ppm s_provider credential
  18579                    ///  </summary>
  18580                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _provideri d")]
  18581                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_account _ppms_prov idercreden tial")]
  18582                    publ ic VA.PPMS .Context.A ccount ppm s_account_ ppms_provi dercredent ial
  18583                    {
  18584                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18585                             get
  18586                             {
  18587                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.Acc ount>("ppm s_account_ ppms_provi dercredent ial", null );
  18588                             }
  18589                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18590                             set
  18591                             {
  18592                                      this.OnP ropertyCha nging("ppm s_account_ ppms_provi dercredent ial");
  18593                                      this.Set RelatedEnt ity<VA.PPM S.Context. Account>(" ppms_accou nt_ppms_pr ovidercred ential", n ull, value );
  18594                                      this.OnP ropertyCha nged("ppms _account_p pms_provid ercredenti al");
  18595                             }
  18596                    }
  18597                    
  18598                    ///  <summary>
  18599                    ///  Constructo r for popu lating via  LINQ quer ies given  a LINQ ano nymous typ e
  18600                    ///  <param nam e="anonymo usType">LI NQ anonymo us type.</ param>
  18601                    ///  </summary>
  18602                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  18603                    publ ic ppms_pr ovidercred ential(obj ect anonym ousType) :  
  18604                                      this()
  18605                    {
  18606                foreach  (var p in  anonymousT ype.GetTyp e().GetPro perties())
  18607                {
  18608                    var  value = p. GetValue(a nonymousTy pe, null);
  18609                    var  name = p.N ame.ToLowe r();
  18610                
  18611                    if ( name.EndsW ith("enum" ) && value .GetType() .BaseType  == typeof( System.Enu m))
  18612                    {
  18613                         value = ne w Microsof t.Xrm.Sdk. OptionSetV alue((int)  value);
  18614                         name = nam e.Remove(n ame.Length  - "enum". Length);
  18615                    }
  18616                
  18617                    swit ch (name)
  18618                    {
  18619                         case "id":
  18620                             base.I d = (Syste m.Guid)val ue;
  18621                             Attrib utes["ppms _providerc redentiali d"] = base .Id;
  18622                             break;
  18623                         case "ppms _providerc redentiali d":
  18624                             var id  = (System .Nullable< System.Gui d>) value;
  18625                             if(id  == null){  continue;  }
  18626                             base.I d = id.Val ue;
  18627                             Attrib utes[name]  = base.Id ;
  18628                             break;
  18629                         case "form attedvalue s":
  18630                             // Add  Support f or Formatt edValues
  18631                             Format tedValues. AddRange(( Microsoft. Xrm.Sdk.Fo rmattedVal ueCollecti on)value);
  18632                             break;
  18633                         default:
  18634                             Attrib utes[name]  = value;
  18635                             break;
  18636                    }
  18637                }
  18638                    }
  18639                    
  18640                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _credentia lingstatus ")]
  18641                    publ ic virtual  ppms_prov idercreden tial_ppms_ credential ingstatus?  ppms_cred entialings tatusEnum
  18642                    {
  18643                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18644                             get
  18645                             {
  18646                                      return ( (ppms_prov idercreden tial_ppms_ credential ingstatus? )(EntityOp tionSetEnu m.GetEnum( this, "ppm s_credenti alingstatu s")));
  18647                             }
  18648                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18649                             set
  18650                             {
  18651                                      ppms_cre dentialing status = v alue.HasVa lue ? new  Microsoft. Xrm.Sdk.Op tionSetVal ue((int)va lue) : nul l;
  18652                             }
  18653                    }
  18654                    
  18655                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _credentia ltype")]
  18656                    publ ic virtual  ppms_prov idercreden tial_ppms_ credential type? ppms _credentia ltypeEnum
  18657                    {
  18658                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18659                             get
  18660                             {
  18661                                      return ( (ppms_prov idercreden tial_ppms_ credential type?)(Ent ityOptionS etEnum.Get Enum(this,  "ppms_cre dentialtyp e")));
  18662                             }
  18663                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18664                             set
  18665                             {
  18666                                      ppms_cre dentialtyp e = value. HasValue ?  new Micro soft.Xrm.S dk.OptionS etValue((i nt)value)  : null;
  18667                             }
  18668                    }
  18669                    
  18670                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  18671                    publ ic virtual  ppms_prov idercreden tial_Statu sCode? sta tuscodeEnu m
  18672                    {
  18673                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18674                             get
  18675                             {
  18676                                      return ( (ppms_prov idercreden tial_Statu sCode?)(En tityOption SetEnum.Ge tEnum(this , "statusc ode")));
  18677                             }
  18678                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18679                             set
  18680                             {
  18681                                      statusco de = value .HasValue  ? new Micr osoft.Xrm. Sdk.Option SetValue(( int)value)  : null;
  18682                             }
  18683                    }
  18684           }
  18685           
  18686           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  18687           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  18688           pu blic enum  ppms_provi derlicensu reState
  18689           {
  18690                    
  18691                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  18692                    Acti ve = 0,
  18693                    
  18694                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  18695                    Inac tive = 1,
  18696           }
  18697           
  18698           // / <summary >
  18699           // / Provider  Licensure s
  18700           // / </summar y>
  18701           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  18702           [M icrosoft.X rm.Sdk.Cli ent.Entity LogicalNam eAttribute ("ppms_pro viderlicen sure")]
  18703           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  18704           pu blic parti al class p pms_provid erlicensur e : Micros oft.Xrm.Sd k.Entity,  System.Com ponentMode l.INotifyP ropertyCha nging, Sys tem.Compon entModel.I NotifyProp ertyChange d
  18705           {
  18706                    
  18707                    ///  <summary>
  18708                    ///  Default Co nstructor.
  18709                    ///  </summary>
  18710                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  18711                    publ ic ppms_pr oviderlice nsure() : 
  18712                                      base(Ent ityLogical Name)
  18713                    {
  18714                    }
  18715                    
  18716                    publ ic const s tring Enti tyLogicalN ame = "ppm s_provider licensure" ;
  18717                    
  18718                    publ ic const i nt EntityT ypeCode =  10007;
  18719                    
  18720                    publ ic event S ystem.Comp onentModel .PropertyC hangedEven tHandler P ropertyCha nged;
  18721                    
  18722                    publ ic event S ystem.Comp onentModel .PropertyC hangingEve ntHandler  PropertyCh anging;
  18723                    
  18724                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  18725                    priv ate void O nPropertyC hanged(str ing proper tyName)
  18726                    {
  18727                             if ((t his.Proper tyChanged  != null))
  18728                             {
  18729                                      this.Pro pertyChang ed(this, n ew System. ComponentM odel.Prope rtyChanged EventArgs( propertyNa me));
  18730                             }
  18731                    }
  18732                    
  18733                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  18734                    priv ate void O nPropertyC hanging(st ring prope rtyName)
  18735                    {
  18736                             if ((t his.Proper tyChanging  != null))
  18737                             {
  18738                                      this.Pro pertyChang ing(this,  new System .Component Model.Prop ertyChangi ngEventArg s(property Name));
  18739                             }
  18740                    }
  18741                    
  18742                    ///  <summary>
  18743                    ///  Unique ide ntifier of  the user  who create d the reco rd.
  18744                    ///  </summary>
  18745                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedby")]
  18746                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedBy
  18747                    {
  18748                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18749                             get
  18750                             {
  18751                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedby");
  18752                             }
  18753                    }
  18754                    
  18755                    ///  <summary>
  18756                    ///  Date and t ime when t he record  was create d.
  18757                    ///  </summary>
  18758                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedon")]
  18759                    publ ic System. Nullable<S ystem.Date Time> Crea tedOn
  18760                    {
  18761                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18762                             get
  18763                             {
  18764                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("cre atedon");
  18765                             }
  18766                    }
  18767                    
  18768                    ///  <summary>
  18769                    ///  Unique ide ntifier of  the deleg ate user w ho created  the recor d.
  18770                    ///  </summary>
  18771                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedonbehal fby")]
  18772                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedOnBeha lfBy
  18773                    {
  18774                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18775                             get
  18776                             {
  18777                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedonbeh alfby");
  18778                             }
  18779                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18780                             set
  18781                             {
  18782                                      this.OnP ropertyCha nging("Cre atedOnBeha lfBy");
  18783                                      this.Set AttributeV alue("crea tedonbehal fby", valu e);
  18784                                      this.OnP ropertyCha nged("Crea tedOnBehal fBy");
  18785                             }
  18786                    }
  18787                    
  18788                    ///  <summary>
  18789                    ///  Sequence n umber of t he import  that creat ed this re cord.
  18790                    ///  </summary>
  18791                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("impo rtsequence number")]
  18792                    publ ic System. Nullable<i nt> Import SequenceNu mber
  18793                    {
  18794                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18795                             get
  18796                             {
  18797                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("impor tsequencen umber");
  18798                             }
  18799                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18800                             set
  18801                             {
  18802                                      this.OnP ropertyCha nging("Imp ortSequenc eNumber");
  18803                                      this.Set AttributeV alue("impo rtsequence number", v alue);
  18804                                      this.OnP ropertyCha nged("Impo rtSequence Number");
  18805                             }
  18806                    }
  18807                    
  18808                    ///  <summary>
  18809                    ///  Unique ide ntifier of  the user  who modifi ed the rec ord.
  18810                    ///  </summary>
  18811                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedby")]
  18812                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedBy
  18813                    {
  18814                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18815                             get
  18816                             {
  18817                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedby") ;
  18818                             }
  18819                    }
  18820                    
  18821                    ///  <summary>
  18822                    ///  Date and t ime when t he record  was modifi ed.
  18823                    ///  </summary>
  18824                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedon")]
  18825                    publ ic System. Nullable<S ystem.Date Time> Modi fiedOn
  18826                    {
  18827                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18828                             get
  18829                             {
  18830                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("mod ifiedon");
  18831                             }
  18832                    }
  18833                    
  18834                    ///  <summary>
  18835                    ///  Unique ide ntifier of  the deleg ate user w ho modifie d the reco rd.
  18836                    ///  </summary>
  18837                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedonbeha lfby")]
  18838                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedOnBeh alfBy
  18839                    {
  18840                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18841                             get
  18842                             {
  18843                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedonbe halfby");
  18844                             }
  18845                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18846                             set
  18847                             {
  18848                                      this.OnP ropertyCha nging("Mod ifiedOnBeh alfBy");
  18849                                      this.Set AttributeV alue("modi fiedonbeha lfby", val ue);
  18850                                      this.OnP ropertyCha nged("Modi fiedOnBeha lfBy");
  18851                             }
  18852                    }
  18853                    
  18854                    ///  <summary>
  18855                    ///  Date and t ime that t he record  was migrat ed.
  18856                    ///  </summary>
  18857                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("over riddencrea tedon")]
  18858                    publ ic System. Nullable<S ystem.Date Time> Over riddenCrea tedOn
  18859                    {
  18860                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18861                             get
  18862                             {
  18863                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ove rriddencre atedon");
  18864                             }
  18865                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18866                             set
  18867                             {
  18868                                      this.OnP ropertyCha nging("Ove rriddenCre atedOn");
  18869                                      this.Set AttributeV alue("over riddencrea tedon", va lue);
  18870                                      this.OnP ropertyCha nged("Over riddenCrea tedOn");
  18871                             }
  18872                    }
  18873                    
  18874                    ///  <summary>
  18875                    ///  Owner Id
  18876                    ///  </summary>
  18877                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owne rid")]
  18878                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own erId
  18879                    {
  18880                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18881                             get
  18882                             {
  18883                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow nerid");
  18884                             }
  18885                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18886                             set
  18887                             {
  18888                                      this.OnP ropertyCha nging("Own erId");
  18889                                      this.Set AttributeV alue("owne rid", valu e);
  18890                                      this.OnP ropertyCha nged("Owne rId");
  18891                             }
  18892                    }
  18893                    
  18894                    ///  <summary>
  18895                    ///  Unique ide ntifier fo r the busi ness unit  that owns  the record
  18896                    ///  </summary>
  18897                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngbusiness unit")]
  18898                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingBusines sUnit
  18899                    {
  18900                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18901                             get
  18902                             {
  18903                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningbusine ssunit");
  18904                             }
  18905                    }
  18906                    
  18907                    ///  <summary>
  18908                    ///  Unique ide ntifier fo r the team  that owns  the recor d.
  18909                    ///  </summary>
  18910                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngteam")]
  18911                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingTeam
  18912                    {
  18913                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18914                             get
  18915                             {
  18916                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningteam") ;
  18917                             }
  18918                    }
  18919                    
  18920                    ///  <summary>
  18921                    ///  Unique ide ntifier fo r the user  that owns  the recor d.
  18922                    ///  </summary>
  18923                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni nguser")]
  18924                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingUser
  18925                    {
  18926                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18927                             get
  18928                             {
  18929                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ninguser") ;
  18930                             }
  18931                    }
  18932                    
  18933                    ///  <summary>
  18934                    ///  Expiration  Date
  18935                    ///  </summary>
  18936                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _expiratio ndate")]
  18937                    publ ic System. Nullable<S ystem.Date Time> ppms _expiratio ndate
  18938                    {
  18939                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18940                             get
  18941                             {
  18942                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ppm s_expirati ondate");
  18943                             }
  18944                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18945                             set
  18946                             {
  18947                                      this.OnP ropertyCha nging("ppm s_expirati ondate");
  18948                                      this.Set AttributeV alue("ppms _expiratio ndate", va lue);
  18949                                      this.OnP ropertyCha nged("ppms _expiratio ndate");
  18950                             }
  18951                    }
  18952                    
  18953                    ///  <summary>
  18954                    ///  Licensing  State
  18955                    ///  </summary>
  18956                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _licensing state")]
  18957                    publ ic string  ppms_licen singstate
  18958                    {
  18959                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18960                             get
  18961                             {
  18962                                      return t his.GetAtt ributeValu e<string>( "ppms_lice nsingstate ");
  18963                             }
  18964                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18965                             set
  18966                             {
  18967                                      this.OnP ropertyCha nging("ppm s_licensin gstate");
  18968                                      this.Set AttributeV alue("ppms _licensing state", va lue);
  18969                                      this.OnP ropertyCha nged("ppms _licensing state");
  18970                             }
  18971                    }
  18972                    
  18973                    ///  <summary>
  18974                    /// 
  18975                    ///  </summary>
  18976                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _name")]
  18977                    publ ic string  ppms_name
  18978                    {
  18979                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18980                             get
  18981                             {
  18982                                      return t his.GetAtt ributeValu e<string>( "ppms_name ");
  18983                             }
  18984                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  18985                             set
  18986                             {
  18987                                      this.OnP ropertyCha nging("ppm s_name");
  18988                                      this.Set AttributeV alue("ppms _name", va lue);
  18989                                      this.OnP ropertyCha nged("ppms _name");
  18990                             }
  18991                    }
  18992                    
  18993                    ///  <summary>
  18994                    ///  Provider I d
  18995                    ///  </summary>
  18996                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _provideri did")]
  18997                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_Provider IdId
  18998                    {
  18999                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19000                             get
  19001                             {
  19002                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_provide ridid");
  19003                             }
  19004                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19005                             set
  19006                             {
  19007                                      this.OnP ropertyCha nging("ppm s_Provider IdId");
  19008                                      this.Set AttributeV alue("ppms _provideri did", valu e);
  19009                                      this.OnP ropertyCha nged("ppms _ProviderI dId");
  19010                             }
  19011                    }
  19012                    
  19013                    ///  <summary>
  19014                    ///  Unique ide ntifier fo r entity i nstances
  19015                    ///  </summary>
  19016                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providerl icensureid ")]
  19017                    publ ic System. Nullable<S ystem.Guid > ppms_pro viderlicen sureId
  19018                    {
  19019                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19020                             get
  19021                             {
  19022                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("ppms_pr oviderlice nsureid");
  19023                             }
  19024                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19025                             set
  19026                             {
  19027                                      this.OnP ropertyCha nging("ppm s_provider licensureI d");
  19028                                      this.Set AttributeV alue("ppms _providerl icensureid ", value);
  19029                                      if (valu e.HasValue )
  19030                                      {
  19031                                               base.Id =  value.Valu e;
  19032                                      }
  19033                                      else
  19034                                      {
  19035                                               base.Id =  System.Gui d.Empty;
  19036                                      }
  19037                                      this.OnP ropertyCha nged("ppms _providerl icensureId ");
  19038                             }
  19039                    }
  19040                    
  19041                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providerl icensureid ")]
  19042                    publ ic overrid e System.G uid Id
  19043                    {
  19044                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19045                             get
  19046                             {
  19047                                      return b ase.Id;
  19048                             }
  19049                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19050                             set
  19051                             {
  19052                                      this.ppm s_provider licensureI d = value;
  19053                             }
  19054                    }
  19055                    
  19056                    ///  <summary>
  19057                    ///  Status of  the Provid er Licensu re
  19058                    ///  </summary>
  19059                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat ecode")]
  19060                    publ ic System. Nullable<V A.PPMS.Con text.ppms_ providerli censureSta te> statec ode
  19061                    {
  19062                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19063                             get
  19064                             {
  19065                                      Microsof t.Xrm.Sdk. OptionSetV alue optio nSet = thi s.GetAttri buteValue< Microsoft. Xrm.Sdk.Op tionSetVal ue>("state code");
  19066                                      if ((opt ionSet !=  null))
  19067                                      {
  19068                                               return ((V A.PPMS.Con text.ppms_ providerli censureSta te)(System .Enum.ToOb ject(typeo f(VA.PPMS. Context.pp ms_provide rlicensure State), op tionSet.Va lue)));
  19069                                      }
  19070                                      else
  19071                                      {
  19072                                               return nul l;
  19073                                      }
  19074                             }
  19075                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19076                             set
  19077                             {
  19078                                      this.OnP ropertyCha nging("sta tecode");
  19079                                      if ((val ue == null ))
  19080                                      {
  19081                                               this.SetAt tributeVal ue("statec ode", null );
  19082                                      }
  19083                                      else
  19084                                      {
  19085                                               this.SetAt tributeVal ue("statec ode", new  Microsoft. Xrm.Sdk.Op tionSetVal ue(((int)( value))));
  19086                                      }
  19087                                      this.OnP ropertyCha nged("stat ecode");
  19088                             }
  19089                    }
  19090                    
  19091                    ///  <summary>
  19092                    ///  Reason for  the statu s of the P rovider Li censure
  19093                    ///  </summary>
  19094                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  19095                    publ ic Microso ft.Xrm.Sdk .OptionSet Value stat uscode
  19096                    {
  19097                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19098                             get
  19099                             {
  19100                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("sta tuscode");
  19101                             }
  19102                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19103                             set
  19104                             {
  19105                                      this.OnP ropertyCha nging("sta tuscode");
  19106                                      this.Set AttributeV alue("stat uscode", v alue);
  19107                                      this.OnP ropertyCha nged("stat uscode");
  19108                             }
  19109                    }
  19110                    
  19111                    ///  <summary>
  19112                    ///  For intern al use onl y.
  19113                    ///  </summary>
  19114                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("time zoneruleve rsionnumbe r")]
  19115                    publ ic System. Nullable<i nt> TimeZo neRuleVers ionNumber
  19116                    {
  19117                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19118                             get
  19119                             {
  19120                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("timez onerulever sionnumber ");
  19121                             }
  19122                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19123                             set
  19124                             {
  19125                                      this.OnP ropertyCha nging("Tim eZoneRuleV ersionNumb er");
  19126                                      this.Set AttributeV alue("time zoneruleve rsionnumbe r", value) ;
  19127                                      this.OnP ropertyCha nged("Time ZoneRuleVe rsionNumbe r");
  19128                             }
  19129                    }
  19130                    
  19131                    ///  <summary>
  19132                    ///  Time zone  code that  was in use  when the  record was  created.
  19133                    ///  </summary>
  19134                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("utcc onversiont imezonecod e")]
  19135                    publ ic System. Nullable<i nt> UTCCon versionTim eZoneCode
  19136                    {
  19137                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19138                             get
  19139                             {
  19140                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("utcco nversionti mezonecode ");
  19141                             }
  19142                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19143                             set
  19144                             {
  19145                                      this.OnP ropertyCha nging("UTC Conversion TimeZoneCo de");
  19146                                      this.Set AttributeV alue("utcc onversiont imezonecod e", value) ;
  19147                                      this.OnP ropertyCha nged("UTCC onversionT imeZoneCod e");
  19148                             }
  19149                    }
  19150                    
  19151                    ///  <summary>
  19152                    /// 
  19153                    ///  </summary>
  19154                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("vers ionnumber" )]
  19155                    publ ic System. Nullable<l ong> Versi onNumber
  19156                    {
  19157                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19158                             get
  19159                             {
  19160                                      return t his.GetAtt ributeValu e<System.N ullable<lo ng>>("vers ionnumber" );
  19161                             }
  19162                    }
  19163                    
  19164                    ///  <summary>
  19165                    ///  N:1 ppms_a ccount_pro viderlicen sure
  19166                    ///  </summary>
  19167                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _provideri did")]
  19168                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_account _providerl icensure") ]
  19169                    publ ic VA.PPMS .Context.A ccount ppm s_account_ providerli censure
  19170                    {
  19171                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19172                             get
  19173                             {
  19174                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.Acc ount>("ppm s_account_ providerli censure",  null);
  19175                             }
  19176                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19177                             set
  19178                             {
  19179                                      this.OnP ropertyCha nging("ppm s_account_ providerli censure");
  19180                                      this.Set RelatedEnt ity<VA.PPM S.Context. Account>(" ppms_accou nt_provide rlicensure ", null, v alue);
  19181                                      this.OnP ropertyCha nged("ppms _account_p roviderlic ensure");
  19182                             }
  19183                    }
  19184                    
  19185                    ///  <summary>
  19186                    ///  Constructo r for popu lating via  LINQ quer ies given  a LINQ ano nymous typ e
  19187                    ///  <param nam e="anonymo usType">LI NQ anonymo us type.</ param>
  19188                    ///  </summary>
  19189                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  19190                    publ ic ppms_pr oviderlice nsure(obje ct anonymo usType) : 
  19191                                      this()
  19192                    {
  19193                foreach  (var p in  anonymousT ype.GetTyp e().GetPro perties())
  19194                {
  19195                    var  value = p. GetValue(a nonymousTy pe, null);
  19196                    var  name = p.N ame.ToLowe r();
  19197                
  19198                    if ( name.EndsW ith("enum" ) && value .GetType() .BaseType  == typeof( System.Enu m))
  19199                    {
  19200                         value = ne w Microsof t.Xrm.Sdk. OptionSetV alue((int)  value);
  19201                         name = nam e.Remove(n ame.Length  - "enum". Length);
  19202                    }
  19203                
  19204                    swit ch (name)
  19205                    {
  19206                         case "id":
  19207                             base.I d = (Syste m.Guid)val ue;
  19208                             Attrib utes["ppms _providerl icensureid "] = base. Id;
  19209                             break;
  19210                         case "ppms _providerl icensureid ":
  19211                             var id  = (System .Nullable< System.Gui d>) value;
  19212                             if(id  == null){  continue;  }
  19213                             base.I d = id.Val ue;
  19214                             Attrib utes[name]  = base.Id ;
  19215                             break;
  19216                         case "form attedvalue s":
  19217                             // Add  Support f or Formatt edValues
  19218                             Format tedValues. AddRange(( Microsoft. Xrm.Sdk.Fo rmattedVal ueCollecti on)value);
  19219                             break;
  19220                         default:
  19221                             Attrib utes[name]  = value;
  19222                             break;
  19223                    }
  19224                }
  19225                    }
  19226                    
  19227                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  19228                    publ ic virtual  ppms_prov iderlicens ure_Status Code? stat uscodeEnum
  19229                    {
  19230                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19231                             get
  19232                             {
  19233                                      return ( (ppms_prov iderlicens ure_Status Code?)(Ent ityOptionS etEnum.Get Enum(this,  "statusco de")));
  19234                             }
  19235                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19236                             set
  19237                             {
  19238                                      statusco de = value .HasValue  ? new Micr osoft.Xrm. Sdk.Option SetValue(( int)value)  : null;
  19239                             }
  19240                    }
  19241           }
  19242           
  19243           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  19244           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  19245           pu blic enum  ppms_provi derprivile geState
  19246           {
  19247                    
  19248                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  19249                    Acti ve = 0,
  19250                    
  19251                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  19252                    Inac tive = 1,
  19253           }
  19254           
  19255           // / <summary >
  19256           // / Provider  Privilege s
  19257           // / </summar y>
  19258           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  19259           [M icrosoft.X rm.Sdk.Cli ent.Entity LogicalNam eAttribute ("ppms_pro viderprivi lege")]
  19260           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  19261           pu blic parti al class p pms_provid erprivileg e : Micros oft.Xrm.Sd k.Entity,  System.Com ponentMode l.INotifyP ropertyCha nging, Sys tem.Compon entModel.I NotifyProp ertyChange d
  19262           {
  19263                    
  19264                    ///  <summary>
  19265                    ///  Default Co nstructor.
  19266                    ///  </summary>
  19267                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  19268                    publ ic ppms_pr oviderpriv ilege() : 
  19269                                      base(Ent ityLogical Name)
  19270                    {
  19271                    }
  19272                    
  19273                    publ ic const s tring Enti tyLogicalN ame = "ppm s_provider privilege" ;
  19274                    
  19275                    publ ic const i nt EntityT ypeCode =  10024;
  19276                    
  19277                    publ ic event S ystem.Comp onentModel .PropertyC hangedEven tHandler P ropertyCha nged;
  19278                    
  19279                    publ ic event S ystem.Comp onentModel .PropertyC hangingEve ntHandler  PropertyCh anging;
  19280                    
  19281                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  19282                    priv ate void O nPropertyC hanged(str ing proper tyName)
  19283                    {
  19284                             if ((t his.Proper tyChanged  != null))
  19285                             {
  19286                                      this.Pro pertyChang ed(this, n ew System. ComponentM odel.Prope rtyChanged EventArgs( propertyNa me));
  19287                             }
  19288                    }
  19289                    
  19290                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  19291                    priv ate void O nPropertyC hanging(st ring prope rtyName)
  19292                    {
  19293                             if ((t his.Proper tyChanging  != null))
  19294                             {
  19295                                      this.Pro pertyChang ing(this,  new System .Component Model.Prop ertyChangi ngEventArg s(property Name));
  19296                             }
  19297                    }
  19298                    
  19299                    ///  <summary>
  19300                    ///  Unique ide ntifier of  the user  who create d the reco rd.
  19301                    ///  </summary>
  19302                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedby")]
  19303                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedBy
  19304                    {
  19305                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19306                             get
  19307                             {
  19308                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedby");
  19309                             }
  19310                    }
  19311                    
  19312                    ///  <summary>
  19313                    ///  Date and t ime when t he record  was create d.
  19314                    ///  </summary>
  19315                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedon")]
  19316                    publ ic System. Nullable<S ystem.Date Time> Crea tedOn
  19317                    {
  19318                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19319                             get
  19320                             {
  19321                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("cre atedon");
  19322                             }
  19323                    }
  19324                    
  19325                    ///  <summary>
  19326                    ///  Unique ide ntifier of  the deleg ate user w ho created  the recor d.
  19327                    ///  </summary>
  19328                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedonbehal fby")]
  19329                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedOnBeha lfBy
  19330                    {
  19331                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19332                             get
  19333                             {
  19334                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedonbeh alfby");
  19335                             }
  19336                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19337                             set
  19338                             {
  19339                                      this.OnP ropertyCha nging("Cre atedOnBeha lfBy");
  19340                                      this.Set AttributeV alue("crea tedonbehal fby", valu e);
  19341                                      this.OnP ropertyCha nged("Crea tedOnBehal fBy");
  19342                             }
  19343                    }
  19344                    
  19345                    ///  <summary>
  19346                    ///  Sequence n umber of t he import  that creat ed this re cord.
  19347                    ///  </summary>
  19348                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("impo rtsequence number")]
  19349                    publ ic System. Nullable<i nt> Import SequenceNu mber
  19350                    {
  19351                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19352                             get
  19353                             {
  19354                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("impor tsequencen umber");
  19355                             }
  19356                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19357                             set
  19358                             {
  19359                                      this.OnP ropertyCha nging("Imp ortSequenc eNumber");
  19360                                      this.Set AttributeV alue("impo rtsequence number", v alue);
  19361                                      this.OnP ropertyCha nged("Impo rtSequence Number");
  19362                             }
  19363                    }
  19364                    
  19365                    ///  <summary>
  19366                    ///  Unique ide ntifier of  the user  who modifi ed the rec ord.
  19367                    ///  </summary>
  19368                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedby")]
  19369                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedBy
  19370                    {
  19371                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19372                             get
  19373                             {
  19374                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedby") ;
  19375                             }
  19376                    }
  19377                    
  19378                    ///  <summary>
  19379                    ///  Date and t ime when t he record  was modifi ed.
  19380                    ///  </summary>
  19381                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedon")]
  19382                    publ ic System. Nullable<S ystem.Date Time> Modi fiedOn
  19383                    {
  19384                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19385                             get
  19386                             {
  19387                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("mod ifiedon");
  19388                             }
  19389                    }
  19390                    
  19391                    ///  <summary>
  19392                    ///  Unique ide ntifier of  the deleg ate user w ho modifie d the reco rd.
  19393                    ///  </summary>
  19394                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedonbeha lfby")]
  19395                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedOnBeh alfBy
  19396                    {
  19397                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19398                             get
  19399                             {
  19400                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedonbe halfby");
  19401                             }
  19402                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19403                             set
  19404                             {
  19405                                      this.OnP ropertyCha nging("Mod ifiedOnBeh alfBy");
  19406                                      this.Set AttributeV alue("modi fiedonbeha lfby", val ue);
  19407                                      this.OnP ropertyCha nged("Modi fiedOnBeha lfBy");
  19408                             }
  19409                    }
  19410                    
  19411                    ///  <summary>
  19412                    ///  Date and t ime that t he record  was migrat ed.
  19413                    ///  </summary>
  19414                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("over riddencrea tedon")]
  19415                    publ ic System. Nullable<S ystem.Date Time> Over riddenCrea tedOn
  19416                    {
  19417                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19418                             get
  19419                             {
  19420                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ove rriddencre atedon");
  19421                             }
  19422                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19423                             set
  19424                             {
  19425                                      this.OnP ropertyCha nging("Ove rriddenCre atedOn");
  19426                                      this.Set AttributeV alue("over riddencrea tedon", va lue);
  19427                                      this.OnP ropertyCha nged("Over riddenCrea tedOn");
  19428                             }
  19429                    }
  19430                    
  19431                    ///  <summary>
  19432                    ///  Owner Id
  19433                    ///  </summary>
  19434                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owne rid")]
  19435                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own erId
  19436                    {
  19437                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19438                             get
  19439                             {
  19440                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow nerid");
  19441                             }
  19442                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19443                             set
  19444                             {
  19445                                      this.OnP ropertyCha nging("Own erId");
  19446                                      this.Set AttributeV alue("owne rid", valu e);
  19447                                      this.OnP ropertyCha nged("Owne rId");
  19448                             }
  19449                    }
  19450                    
  19451                    ///  <summary>
  19452                    ///  Unique ide ntifier fo r the busi ness unit  that owns  the record
  19453                    ///  </summary>
  19454                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngbusiness unit")]
  19455                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingBusines sUnit
  19456                    {
  19457                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19458                             get
  19459                             {
  19460                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningbusine ssunit");
  19461                             }
  19462                    }
  19463                    
  19464                    ///  <summary>
  19465                    ///  Unique ide ntifier fo r the team  that owns  the recor d.
  19466                    ///  </summary>
  19467                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngteam")]
  19468                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingTeam
  19469                    {
  19470                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19471                             get
  19472                             {
  19473                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningteam") ;
  19474                             }
  19475                    }
  19476                    
  19477                    ///  <summary>
  19478                    ///  Unique ide ntifier fo r the user  that owns  the recor d.
  19479                    ///  </summary>
  19480                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni nguser")]
  19481                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingUser
  19482                    {
  19483                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19484                             get
  19485                             {
  19486                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ninguser") ;
  19487                             }
  19488                    }
  19489                    
  19490                    ///  <summary>
  19491                    ///  Privilege  Location
  19492                    ///  </summary>
  19493                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _caresite" )]
  19494                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_CareSite
  19495                    {
  19496                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19497                             get
  19498                             {
  19499                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_caresit e");
  19500                             }
  19501                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19502                             set
  19503                             {
  19504                                      this.OnP ropertyCha nging("ppm s_CareSite ");
  19505                                      this.Set AttributeV alue("ppms _caresite" , value);
  19506                                      this.OnP ropertyCha nged("ppms _CareSite" );
  19507                             }
  19508                    }
  19509                    
  19510                    ///  <summary>
  19511                    ///  Comment
  19512                    ///  </summary>
  19513                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _comment") ]
  19514                    publ ic string  ppms_Comme nt
  19515                    {
  19516                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19517                             get
  19518                             {
  19519                                      return t his.GetAtt ributeValu e<string>( "ppms_comm ent");
  19520                             }
  19521                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19522                             set
  19523                             {
  19524                                      this.OnP ropertyCha nging("ppm s_Comment" );
  19525                                      this.Set AttributeV alue("ppms _comment",  value);
  19526                                      this.OnP ropertyCha nged("ppms _Comment") ;
  19527                             }
  19528                    }
  19529                    
  19530                    ///  <summary>
  19531                    ///  Expiration  Date
  19532                    ///  </summary>
  19533                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _expiratio ndate")]
  19534                    publ ic System. Nullable<S ystem.Date Time> ppms _expiratio ndate
  19535                    {
  19536                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19537                             get
  19538                             {
  19539                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ppm s_expirati ondate");
  19540                             }
  19541                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19542                             set
  19543                             {
  19544                                      this.OnP ropertyCha nging("ppm s_expirati ondate");
  19545                                      this.Set AttributeV alue("ppms _expiratio ndate", va lue);
  19546                                      this.OnP ropertyCha nged("ppms _expiratio ndate");
  19547                             }
  19548                    }
  19549                    
  19550                    ///  <summary>
  19551                    /// 
  19552                    ///  </summary>
  19553                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _name")]
  19554                    publ ic string  ppms_name
  19555                    {
  19556                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19557                             get
  19558                             {
  19559                                      return t his.GetAtt ributeValu e<string>( "ppms_name ");
  19560                             }
  19561                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19562                             set
  19563                             {
  19564                                      this.OnP ropertyCha nging("ppm s_name");
  19565                                      this.Set AttributeV alue("ppms _name", va lue);
  19566                                      this.OnP ropertyCha nged("ppms _name");
  19567                             }
  19568                    }
  19569                    
  19570                    ///  <summary>
  19571                    ///  Provider
  19572                    ///  </summary>
  19573                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _provideri d")]
  19574                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_Provider Id
  19575                    {
  19576                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19577                             get
  19578                             {
  19579                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_provide rid");
  19580                             }
  19581                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19582                             set
  19583                             {
  19584                                      this.OnP ropertyCha nging("ppm s_Provider Id");
  19585                                      this.Set AttributeV alue("ppms _provideri d", value) ;
  19586                                      this.OnP ropertyCha nged("ppms _ProviderI d");
  19587                             }
  19588                    }
  19589                    
  19590                    ///  <summary>
  19591                    ///  Unique ide ntifier fo r entity i nstances
  19592                    ///  </summary>
  19593                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providerp rivilegeid ")]
  19594                    publ ic System. Nullable<S ystem.Guid > ppms_pro viderprivi legeId
  19595                    {
  19596                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19597                             get
  19598                             {
  19599                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("ppms_pr oviderpriv ilegeid");
  19600                             }
  19601                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19602                             set
  19603                             {
  19604                                      this.OnP ropertyCha nging("ppm s_provider privilegeI d");
  19605                                      this.Set AttributeV alue("ppms _providerp rivilegeid ", value);
  19606                                      if (valu e.HasValue )
  19607                                      {
  19608                                               base.Id =  value.Valu e;
  19609                                      }
  19610                                      else
  19611                                      {
  19612                                               base.Id =  System.Gui d.Empty;
  19613                                      }
  19614                                      this.OnP ropertyCha nged("ppms _providerp rivilegeId ");
  19615                             }
  19616                    }
  19617                    
  19618                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providerp rivilegeid ")]
  19619                    publ ic overrid e System.G uid Id
  19620                    {
  19621                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19622                             get
  19623                             {
  19624                                      return b ase.Id;
  19625                             }
  19626                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19627                             set
  19628                             {
  19629                                      this.ppm s_provider privilegeI d = value;
  19630                             }
  19631                    }
  19632                    
  19633                    ///  <summary>
  19634                    ///  Update Dat e
  19635                    ///  </summary>
  19636                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _updatedat e")]
  19637                    publ ic System. Nullable<S ystem.Date Time> ppms _updatedat e
  19638                    {
  19639                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19640                             get
  19641                             {
  19642                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ppm s_updateda te");
  19643                             }
  19644                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19645                             set
  19646                             {
  19647                                      this.OnP ropertyCha nging("ppm s_updateda te");
  19648                                      this.Set AttributeV alue("ppms _updatedat e", value) ;
  19649                                      this.OnP ropertyCha nged("ppms _updatedat e");
  19650                             }
  19651                    }
  19652                    
  19653                    ///  <summary>
  19654                    ///  Status of  the Provid er Privile ge
  19655                    ///  </summary>
  19656                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat ecode")]
  19657                    publ ic System. Nullable<V A.PPMS.Con text.ppms_ providerpr ivilegeSta te> statec ode
  19658                    {
  19659                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19660                             get
  19661                             {
  19662                                      Microsof t.Xrm.Sdk. OptionSetV alue optio nSet = thi s.GetAttri buteValue< Microsoft. Xrm.Sdk.Op tionSetVal ue>("state code");
  19663                                      if ((opt ionSet !=  null))
  19664                                      {
  19665                                               return ((V A.PPMS.Con text.ppms_ providerpr ivilegeSta te)(System .Enum.ToOb ject(typeo f(VA.PPMS. Context.pp ms_provide rprivilege State), op tionSet.Va lue)));
  19666                                      }
  19667                                      else
  19668                                      {
  19669                                               return nul l;
  19670                                      }
  19671                             }
  19672                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19673                             set
  19674                             {
  19675                                      this.OnP ropertyCha nging("sta tecode");
  19676                                      if ((val ue == null ))
  19677                                      {
  19678                                               this.SetAt tributeVal ue("statec ode", null );
  19679                                      }
  19680                                      else
  19681                                      {
  19682                                               this.SetAt tributeVal ue("statec ode", new  Microsoft. Xrm.Sdk.Op tionSetVal ue(((int)( value))));
  19683                                      }
  19684                                      this.OnP ropertyCha nged("stat ecode");
  19685                             }
  19686                    }
  19687                    
  19688                    ///  <summary>
  19689                    ///  Reason for  the statu s of the P rovider Pr ivilege
  19690                    ///  </summary>
  19691                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  19692                    publ ic Microso ft.Xrm.Sdk .OptionSet Value stat uscode
  19693                    {
  19694                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19695                             get
  19696                             {
  19697                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("sta tuscode");
  19698                             }
  19699                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19700                             set
  19701                             {
  19702                                      this.OnP ropertyCha nging("sta tuscode");
  19703                                      this.Set AttributeV alue("stat uscode", v alue);
  19704                                      this.OnP ropertyCha nged("stat uscode");
  19705                             }
  19706                    }
  19707                    
  19708                    ///  <summary>
  19709                    ///  For intern al use onl y.
  19710                    ///  </summary>
  19711                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("time zoneruleve rsionnumbe r")]
  19712                    publ ic System. Nullable<i nt> TimeZo neRuleVers ionNumber
  19713                    {
  19714                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19715                             get
  19716                             {
  19717                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("timez onerulever sionnumber ");
  19718                             }
  19719                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19720                             set
  19721                             {
  19722                                      this.OnP ropertyCha nging("Tim eZoneRuleV ersionNumb er");
  19723                                      this.Set AttributeV alue("time zoneruleve rsionnumbe r", value) ;
  19724                                      this.OnP ropertyCha nged("Time ZoneRuleVe rsionNumbe r");
  19725                             }
  19726                    }
  19727                    
  19728                    ///  <summary>
  19729                    ///  Time zone  code that  was in use  when the  record was  created.
  19730                    ///  </summary>
  19731                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("utcc onversiont imezonecod e")]
  19732                    publ ic System. Nullable<i nt> UTCCon versionTim eZoneCode
  19733                    {
  19734                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19735                             get
  19736                             {
  19737                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("utcco nversionti mezonecode ");
  19738                             }
  19739                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19740                             set
  19741                             {
  19742                                      this.OnP ropertyCha nging("UTC Conversion TimeZoneCo de");
  19743                                      this.Set AttributeV alue("utcc onversiont imezonecod e", value) ;
  19744                                      this.OnP ropertyCha nged("UTCC onversionT imeZoneCod e");
  19745                             }
  19746                    }
  19747                    
  19748                    ///  <summary>
  19749                    /// 
  19750                    ///  </summary>
  19751                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("vers ionnumber" )]
  19752                    publ ic System. Nullable<l ong> Versi onNumber
  19753                    {
  19754                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19755                             get
  19756                             {
  19757                                      return t his.GetAtt ributeValu e<System.N ullable<lo ng>>("vers ionnumber" );
  19758                             }
  19759                    }
  19760                    
  19761                    ///  <summary>
  19762                    ///  N:1 ppms_a ccount_pro viderprivi lege
  19763                    ///  </summary>
  19764                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _provideri d")]
  19765                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_account _providerp rivilege") ]
  19766                    publ ic VA.PPMS .Context.A ccount ppm s_account_ providerpr ivilege
  19767                    {
  19768                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19769                             get
  19770                             {
  19771                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.Acc ount>("ppm s_account_ providerpr ivilege",  null);
  19772                             }
  19773                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19774                             set
  19775                             {
  19776                                      this.OnP ropertyCha nging("ppm s_account_ providerpr ivilege");
  19777                                      this.Set RelatedEnt ity<VA.PPM S.Context. Account>(" ppms_accou nt_provide rprivilege ", null, v alue);
  19778                                      this.OnP ropertyCha nged("ppms _account_p roviderpri vilege");
  19779                             }
  19780                    }
  19781                    
  19782                    ///  <summary>
  19783                    ///  N:1 ppms_c aresite_pr oviderpriv ilege_Care Site
  19784                    ///  </summary>
  19785                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _caresite" )]
  19786                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_caresit e_provider privilege_ CareSite") ]
  19787                    publ ic VA.PPMS .Context.p pms_caresi te ppms_ca resite_pro viderprivi lege_CareS ite
  19788                    {
  19789                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19790                             get
  19791                             {
  19792                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.ppm s_caresite >("ppms_ca resite_pro viderprivi lege_CareS ite", null );
  19793                             }
  19794                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19795                             set
  19796                             {
  19797                                      this.OnP ropertyCha nging("ppm s_caresite _providerp rivilege_C areSite");
  19798                                      this.Set RelatedEnt ity<VA.PPM S.Context. ppms_cares ite>("ppms _caresite_ providerpr ivilege_Ca reSite", n ull, value );
  19799                                      this.OnP ropertyCha nged("ppms _caresite_ providerpr ivilege_Ca reSite");
  19800                             }
  19801                    }
  19802                    
  19803                    ///  <summary>
  19804                    ///  Constructo r for popu lating via  LINQ quer ies given  a LINQ ano nymous typ e
  19805                    ///  <param nam e="anonymo usType">LI NQ anonymo us type.</ param>
  19806                    ///  </summary>
  19807                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  19808                    publ ic ppms_pr oviderpriv ilege(obje ct anonymo usType) : 
  19809                                      this()
  19810                    {
  19811                foreach  (var p in  anonymousT ype.GetTyp e().GetPro perties())
  19812                {
  19813                    var  value = p. GetValue(a nonymousTy pe, null);
  19814                    var  name = p.N ame.ToLowe r();
  19815                
  19816                    if ( name.EndsW ith("enum" ) && value .GetType() .BaseType  == typeof( System.Enu m))
  19817                    {
  19818                         value = ne w Microsof t.Xrm.Sdk. OptionSetV alue((int)  value);
  19819                         name = nam e.Remove(n ame.Length  - "enum". Length);
  19820                    }
  19821                
  19822                    swit ch (name)
  19823                    {
  19824                         case "id":
  19825                             base.I d = (Syste m.Guid)val ue;
  19826                             Attrib utes["ppms _providerp rivilegeid "] = base. Id;
  19827                             break;
  19828                         case "ppms _providerp rivilegeid ":
  19829                             var id  = (System .Nullable< System.Gui d>) value;
  19830                             if(id  == null){  continue;  }
  19831                             base.I d = id.Val ue;
  19832                             Attrib utes[name]  = base.Id ;
  19833                             break;
  19834                         case "form attedvalue s":
  19835                             // Add  Support f or Formatt edValues
  19836                             Format tedValues. AddRange(( Microsoft. Xrm.Sdk.Fo rmattedVal ueCollecti on)value);
  19837                             break;
  19838                         default:
  19839                             Attrib utes[name]  = value;
  19840                             break;
  19841                    }
  19842                }
  19843                    }
  19844                    
  19845                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  19846                    publ ic virtual  ppms_prov iderprivil ege_Status Code? stat uscodeEnum
  19847                    {
  19848                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19849                             get
  19850                             {
  19851                                      return ( (ppms_prov iderprivil ege_Status Code?)(Ent ityOptionS etEnum.Get Enum(this,  "statusco de")));
  19852                             }
  19853                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19854                             set
  19855                             {
  19856                                      statusco de = value .HasValue  ? new Micr osoft.Xrm. Sdk.Option SetValue(( int)value)  : null;
  19857                             }
  19858                    }
  19859           }
  19860           
  19861           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  19862           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  19863           pu blic enum  ppms_provi derservice State
  19864           {
  19865                    
  19866                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  19867                    Acti ve = 0,
  19868                    
  19869                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  19870                    Inac tive = 1,
  19871           }
  19872           
  19873           // / <summary >
  19874           // / Provider  Services
  19875           // / </summar y>
  19876           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  19877           [M icrosoft.X rm.Sdk.Cli ent.Entity LogicalNam eAttribute ("ppms_pro viderservi ce")]
  19878           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  19879           pu blic parti al class p pms_provid erservice  : Microsof t.Xrm.Sdk. Entity, Sy stem.Compo nentModel. INotifyPro pertyChang ing, Syste m.Componen tModel.INo tifyProper tyChanged
  19880           {
  19881                    
  19882                    ///  <summary>
  19883                    ///  Default Co nstructor.
  19884                    ///  </summary>
  19885                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  19886                    publ ic ppms_pr oviderserv ice() : 
  19887                                      base(Ent ityLogical Name)
  19888                    {
  19889                    }
  19890                    
  19891                    publ ic const s tring Enti tyLogicalN ame = "ppm s_provider service";
  19892                    
  19893                    publ ic const i nt EntityT ypeCode =  10014;
  19894                    
  19895                    publ ic event S ystem.Comp onentModel .PropertyC hangedEven tHandler P ropertyCha nged;
  19896                    
  19897                    publ ic event S ystem.Comp onentModel .PropertyC hangingEve ntHandler  PropertyCh anging;
  19898                    
  19899                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  19900                    priv ate void O nPropertyC hanged(str ing proper tyName)
  19901                    {
  19902                             if ((t his.Proper tyChanged  != null))
  19903                             {
  19904                                      this.Pro pertyChang ed(this, n ew System. ComponentM odel.Prope rtyChanged EventArgs( propertyNa me));
  19905                             }
  19906                    }
  19907                    
  19908                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  19909                    priv ate void O nPropertyC hanging(st ring prope rtyName)
  19910                    {
  19911                             if ((t his.Proper tyChanging  != null))
  19912                             {
  19913                                      this.Pro pertyChang ing(this,  new System .Component Model.Prop ertyChangi ngEventArg s(property Name));
  19914                             }
  19915                    }
  19916                    
  19917                    ///  <summary>
  19918                    ///  Unique ide ntifier of  the user  who create d the reco rd.
  19919                    ///  </summary>
  19920                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedby")]
  19921                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedBy
  19922                    {
  19923                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19924                             get
  19925                             {
  19926                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedby");
  19927                             }
  19928                    }
  19929                    
  19930                    ///  <summary>
  19931                    ///  Date and t ime when t he record  was create d.
  19932                    ///  </summary>
  19933                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedon")]
  19934                    publ ic System. Nullable<S ystem.Date Time> Crea tedOn
  19935                    {
  19936                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19937                             get
  19938                             {
  19939                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("cre atedon");
  19940                             }
  19941                    }
  19942                    
  19943                    ///  <summary>
  19944                    ///  Unique ide ntifier of  the deleg ate user w ho created  the recor d.
  19945                    ///  </summary>
  19946                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedonbehal fby")]
  19947                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedOnBeha lfBy
  19948                    {
  19949                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19950                             get
  19951                             {
  19952                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedonbeh alfby");
  19953                             }
  19954                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19955                             set
  19956                             {
  19957                                      this.OnP ropertyCha nging("Cre atedOnBeha lfBy");
  19958                                      this.Set AttributeV alue("crea tedonbehal fby", valu e);
  19959                                      this.OnP ropertyCha nged("Crea tedOnBehal fBy");
  19960                             }
  19961                    }
  19962                    
  19963                    ///  <summary>
  19964                    ///  Sequence n umber of t he import  that creat ed this re cord.
  19965                    ///  </summary>
  19966                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("impo rtsequence number")]
  19967                    publ ic System. Nullable<i nt> Import SequenceNu mber
  19968                    {
  19969                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19970                             get
  19971                             {
  19972                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("impor tsequencen umber");
  19973                             }
  19974                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19975                             set
  19976                             {
  19977                                      this.OnP ropertyCha nging("Imp ortSequenc eNumber");
  19978                                      this.Set AttributeV alue("impo rtsequence number", v alue);
  19979                                      this.OnP ropertyCha nged("Impo rtSequence Number");
  19980                             }
  19981                    }
  19982                    
  19983                    ///  <summary>
  19984                    ///  Unique ide ntifier of  the user  who modifi ed the rec ord.
  19985                    ///  </summary>
  19986                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedby")]
  19987                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedBy
  19988                    {
  19989                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  19990                             get
  19991                             {
  19992                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedby") ;
  19993                             }
  19994                    }
  19995                    
  19996                    ///  <summary>
  19997                    ///  Date and t ime when t he record  was modifi ed.
  19998                    ///  </summary>
  19999                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedon")]
  20000                    publ ic System. Nullable<S ystem.Date Time> Modi fiedOn
  20001                    {
  20002                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20003                             get
  20004                             {
  20005                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("mod ifiedon");
  20006                             }
  20007                    }
  20008                    
  20009                    ///  <summary>
  20010                    ///  Unique ide ntifier of  the deleg ate user w ho modifie d the reco rd.
  20011                    ///  </summary>
  20012                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedonbeha lfby")]
  20013                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedOnBeh alfBy
  20014                    {
  20015                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20016                             get
  20017                             {
  20018                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedonbe halfby");
  20019                             }
  20020                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20021                             set
  20022                             {
  20023                                      this.OnP ropertyCha nging("Mod ifiedOnBeh alfBy");
  20024                                      this.Set AttributeV alue("modi fiedonbeha lfby", val ue);
  20025                                      this.OnP ropertyCha nged("Modi fiedOnBeha lfBy");
  20026                             }
  20027                    }
  20028                    
  20029                    ///  <summary>
  20030                    ///  Date and t ime that t he record  was migrat ed.
  20031                    ///  </summary>
  20032                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("over riddencrea tedon")]
  20033                    publ ic System. Nullable<S ystem.Date Time> Over riddenCrea tedOn
  20034                    {
  20035                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20036                             get
  20037                             {
  20038                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ove rriddencre atedon");
  20039                             }
  20040                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20041                             set
  20042                             {
  20043                                      this.OnP ropertyCha nging("Ove rriddenCre atedOn");
  20044                                      this.Set AttributeV alue("over riddencrea tedon", va lue);
  20045                                      this.OnP ropertyCha nged("Over riddenCrea tedOn");
  20046                             }
  20047                    }
  20048                    
  20049                    ///  <summary>
  20050                    ///  Owner Id
  20051                    ///  </summary>
  20052                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owne rid")]
  20053                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own erId
  20054                    {
  20055                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20056                             get
  20057                             {
  20058                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow nerid");
  20059                             }
  20060                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20061                             set
  20062                             {
  20063                                      this.OnP ropertyCha nging("Own erId");
  20064                                      this.Set AttributeV alue("owne rid", valu e);
  20065                                      this.OnP ropertyCha nged("Owne rId");
  20066                             }
  20067                    }
  20068                    
  20069                    ///  <summary>
  20070                    ///  Unique ide ntifier fo r the busi ness unit  that owns  the record
  20071                    ///  </summary>
  20072                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngbusiness unit")]
  20073                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingBusines sUnit
  20074                    {
  20075                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20076                             get
  20077                             {
  20078                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningbusine ssunit");
  20079                             }
  20080                    }
  20081                    
  20082                    ///  <summary>
  20083                    ///  Unique ide ntifier fo r the team  that owns  the recor d.
  20084                    ///  </summary>
  20085                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngteam")]
  20086                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingTeam
  20087                    {
  20088                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20089                             get
  20090                             {
  20091                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningteam") ;
  20092                             }
  20093                    }
  20094                    
  20095                    ///  <summary>
  20096                    ///  Unique ide ntifier fo r the user  that owns  the recor d.
  20097                    ///  </summary>
  20098                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni nguser")]
  20099                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingUser
  20100                    {
  20101                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20102                             get
  20103                             {
  20104                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ninguser") ;
  20105                             }
  20106                    }
  20107                    
  20108                    ///  <summary>
  20109                    ///  Care Site
  20110                    ///  </summary>
  20111                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _caresite" )]
  20112                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_caresite
  20113                    {
  20114                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20115                             get
  20116                             {
  20117                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_caresit e");
  20118                             }
  20119                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20120                             set
  20121                             {
  20122                                      this.OnP ropertyCha nging("ppm s_caresite ");
  20123                                      this.Set AttributeV alue("ppms _caresite" , value);
  20124                                      this.OnP ropertyCha nged("ppms _caresite" );
  20125                             }
  20126                    }
  20127                    
  20128                    ///  <summary>
  20129                    /// 
  20130                    ///  </summary>
  20131                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _caresitea ddress")]
  20132                    publ ic string  ppms_cares iteaddress
  20133                    {
  20134                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20135                             get
  20136                             {
  20137                                      return t his.GetAtt ributeValu e<string>( "ppms_care siteaddres s");
  20138                             }
  20139                    }
  20140                    
  20141                    ///  <summary>
  20142                    /// 
  20143                    ///  </summary>
  20144                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _caresitea ddresslati tude")]
  20145                    publ ic string  ppms_CareS iteAddress Latitude
  20146                    {
  20147                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20148                             get
  20149                             {
  20150                                      return t his.GetAtt ributeValu e<string>( "ppms_care siteaddres slatitude" );
  20151                             }
  20152                    }
  20153                    
  20154                    ///  <summary>
  20155                    /// 
  20156                    ///  </summary>
  20157                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _caresitea ddresslong itude")]
  20158                    publ ic string  ppms_CareS iteAddress Longitude
  20159                    {
  20160                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20161                             get
  20162                             {
  20163                                      return t his.GetAtt ributeValu e<string>( "ppms_care siteaddres slongitude ");
  20164                             }
  20165                    }
  20166                    
  20167                    ///  <summary>
  20168                    /// 
  20169                    ///  </summary>
  20170                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _caresitec ity")]
  20171                    publ ic string  ppms_cares itecity
  20172                    {
  20173                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20174                             get
  20175                             {
  20176                                      return t his.GetAtt ributeValu e<string>( "ppms_care sitecity") ;
  20177                             }
  20178                    }
  20179                    
  20180                    ///  <summary>
  20181                    /// 
  20182                    ///  </summary>
  20183                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _caresitel atitude")]
  20184                    publ ic System. Nullable<d ecimal> pp ms_caresit elatitude
  20185                    {
  20186                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20187                             get
  20188                             {
  20189                                      return t his.GetAtt ributeValu e<System.N ullable<de cimal>>("p pms_caresi telatitude ");
  20190                             }
  20191                    }
  20192                    
  20193                    ///  <summary>
  20194                    /// 
  20195                    ///  </summary>
  20196                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _caresites tateprovin ce")]
  20197                    publ ic string  ppms_cares itestatepr ovince
  20198                    {
  20199                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20200                             get
  20201                             {
  20202                                      return t his.GetAtt ributeValu e<string>( "ppms_care sitestatep rovince");
  20203                             }
  20204                    }
  20205                    
  20206                    ///  <summary>
  20207                    /// 
  20208                    ///  </summary>
  20209                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _caresitez ipcode")]
  20210                    publ ic string  ppms_cares itezipcode
  20211                    {
  20212                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20213                             get
  20214                             {
  20215                                      return t his.GetAtt ributeValu e<string>( "ppms_care sitezipcod e");
  20216                             }
  20217                    }
  20218                    
  20219                    ///  <summary>
  20220                    ///  Descriptio n Of Servi ce
  20221                    ///  </summary>
  20222                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _descripti onofservic e")]
  20223                    publ ic string  ppms_descr iptionofse rvice
  20224                    {
  20225                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20226                             get
  20227                             {
  20228                                      return t his.GetAtt ributeValu e<string>( "ppms_desc riptionofs ervice");
  20229                             }
  20230                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20231                             set
  20232                             {
  20233                                      this.OnP ropertyCha nging("ppm s_descript ionofservi ce");
  20234                                      this.Set AttributeV alue("ppms _descripti onofservic e", value) ;
  20235                                      this.OnP ropertyCha nged("ppms _descripti onofservic e");
  20236                             }
  20237                    }
  20238                    
  20239                    ///  <summary>
  20240                    /// 
  20241                    ///  </summary>
  20242                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _distance" )]
  20243                    publ ic System. Nullable<d ouble> ppm s_distance
  20244                    {
  20245                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20246                             get
  20247                             {
  20248                                      return t his.GetAtt ributeValu e<System.N ullable<do uble>>("pp ms_distanc e");
  20249                             }
  20250                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20251                             set
  20252                             {
  20253                                      this.OnP ropertyCha nging("ppm s_distance ");
  20254                                      this.Set AttributeV alue("ppms _distance" , value);
  20255                                      this.OnP ropertyCha nged("ppms _distance" );
  20256                             }
  20257                    }
  20258                    
  20259                    ///  <summary>
  20260                    /// 
  20261                    ///  </summary>
  20262                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _dupcheck" )]
  20263                    publ ic string  ppms_DupCh eck
  20264                    {
  20265                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20266                             get
  20267                             {
  20268                                      return t his.GetAtt ributeValu e<string>( "ppms_dupc heck");
  20269                             }
  20270                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20271                             set
  20272                             {
  20273                                      this.OnP ropertyCha nging("ppm s_DupCheck ");
  20274                                      this.Set AttributeV alue("ppms _dupcheck" , value);
  20275                                      this.OnP ropertyCha nged("ppms _DupCheck" );
  20276                             }
  20277                    }
  20278                    
  20279                    ///  <summary>
  20280                    /// 
  20281                    ///  </summary>
  20282                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _geocoded" )]
  20283                    publ ic System. Nullable<b ool> ppms_ geocoded
  20284                    {
  20285                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20286                             get
  20287                             {
  20288                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("ppms _geocoded" );
  20289                             }
  20290                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20291                             set
  20292                             {
  20293                                      this.OnP ropertyCha nging("ppm s_geocoded ");
  20294                                      this.Set AttributeV alue("ppms _geocoded" , value);
  20295                                      this.OnP ropertyCha nged("ppms _geocoded" );
  20296                             }
  20297                    }
  20298                    
  20299                    ///  <summary>
  20300                    ///  Limitation
  20301                    ///  </summary>
  20302                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _limitatio n")]
  20303                    publ ic string  ppms_limit ation
  20304                    {
  20305                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20306                             get
  20307                             {
  20308                                      return t his.GetAtt ributeValu e<string>( "ppms_limi tation");
  20309                             }
  20310                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20311                             set
  20312                             {
  20313                                      this.OnP ropertyCha nging("ppm s_limitati on");
  20314                                      this.Set AttributeV alue("ppms _limitatio n", value) ;
  20315                                      this.OnP ropertyCha nged("ppms _limitatio n");
  20316                             }
  20317                    }
  20318                    
  20319                    ///  <summary>
  20320                    /// 
  20321                    ///  </summary>
  20322                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _name")]
  20323                    publ ic string  ppms_name
  20324                    {
  20325                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20326                             get
  20327                             {
  20328                                      return t his.GetAtt ributeValu e<string>( "ppms_name ");
  20329                             }
  20330                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20331                             set
  20332                             {
  20333                                      this.OnP ropertyCha nging("ppm s_name");
  20334                                      this.Set AttributeV alue("ppms _name", va lue);
  20335                                      this.OnP ropertyCha nged("ppms _name");
  20336                             }
  20337                    }
  20338                    
  20339                    ///  <summary>
  20340                    ///  Affiliatio n
  20341                    ///  </summary>
  20342                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _network") ]
  20343                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_network
  20344                    {
  20345                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20346                             get
  20347                             {
  20348                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_network ");
  20349                             }
  20350                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20351                             set
  20352                             {
  20353                                      this.OnP ropertyCha nging("ppm s_network" );
  20354                                      this.Set AttributeV alue("ppms _network",  value);
  20355                                      this.OnP ropertyCha nged("ppms _network") ;
  20356                             }
  20357                    }
  20358                    
  20359                    ///  <summary>
  20360                    /// 
  20361                    ///  </summary>
  20362                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _organizat ion")]
  20363                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_Organiza tion
  20364                    {
  20365                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20366                             get
  20367                             {
  20368                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_organiz ation");
  20369                             }
  20370                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20371                             set
  20372                             {
  20373                                      this.OnP ropertyCha nging("ppm s_Organiza tion");
  20374                                      this.Set AttributeV alue("ppms _organizat ion", valu e);
  20375                                      this.OnP ropertyCha nged("ppms _Organizat ion");
  20376                             }
  20377                    }
  20378                    
  20379                    ///  <summary>
  20380                    /// 
  20381                    ///  </summary>
  20382                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providera cceptingne wpatients" )]
  20383                    publ ic System. Nullable<b ool> ppms_ providerac ceptingnew patients
  20384                    {
  20385                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20386                             get
  20387                             {
  20388                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("ppms _providera cceptingne wpatients" );
  20389                             }
  20390                    }
  20391                    
  20392                    ///  <summary>
  20393                    /// 
  20394                    ///  </summary>
  20395                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providera cceptingva ")]
  20396                    publ ic System. Nullable<b ool> ppms_ providerac ceptingva
  20397                    {
  20398                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20399                             get
  20400                             {
  20401                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("ppms _providera cceptingva ");
  20402                             }
  20403                    }
  20404                    
  20405                    ///  <summary>
  20406                    /// 
  20407                    ///  </summary>
  20408                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providera greement") ]
  20409                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_Provider Agreement
  20410                    {
  20411                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20412                             get
  20413                             {
  20414                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_provide ragreement ");
  20415                             }
  20416                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20417                             set
  20418                             {
  20419                                      this.OnP ropertyCha nging("ppm s_Provider Agreement" );
  20420                                      this.Set AttributeV alue("ppms _providera greement",  value);
  20421                                      this.OnP ropertyCha nged("ppms _ProviderA greement") ;
  20422                             }
  20423                    }
  20424                    
  20425                    ///  <summary>
  20426                    /// 
  20427                    ///  </summary>
  20428                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providerg ender")]
  20429                    publ ic Microso ft.Xrm.Sdk .OptionSet Value ppms _providerg ender
  20430                    {
  20431                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20432                             get
  20433                             {
  20434                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("ppm s_provider gender");
  20435                             }
  20436                    }
  20437                    
  20438                    ///  <summary>
  20439                    ///  Provider
  20440                    ///  </summary>
  20441                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _provideri d")]
  20442                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_Provider Id
  20443                    {
  20444                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20445                             get
  20446                             {
  20447                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_provide rid");
  20448                             }
  20449                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20450                             set
  20451                             {
  20452                                      this.OnP ropertyCha nging("ppm s_Provider Id");
  20453                                      this.Set AttributeV alue("ppms _provideri d", value) ;
  20454                                      this.OnP ropertyCha nged("ppms _ProviderI d");
  20455                             }
  20456                    }
  20457                    
  20458                    ///  <summary>
  20459                    /// 
  20460                    ///  </summary>
  20461                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _provideri sprimaryca re")]
  20462                    publ ic System. Nullable<b ool> ppms_ provideris primarycar e
  20463                    {
  20464                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20465                             get
  20466                             {
  20467                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("ppms _provideri sprimaryca re");
  20468                             }
  20469                    }
  20470                    
  20471                    ///  <summary>
  20472                    /// 
  20473                    ///  </summary>
  20474                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providern ame")]
  20475                    publ ic string  ppms_provi dername
  20476                    {
  20477                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20478                             get
  20479                             {
  20480                                      return t his.GetAtt ributeValu e<string>( "ppms_prov idername") ;
  20481                             }
  20482                    }
  20483                    
  20484                    ///  <summary>
  20485                    ///  Unique ide ntifier fo r entity i nstances
  20486                    ///  </summary>
  20487                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providers erviceid") ]
  20488                    publ ic System. Nullable<S ystem.Guid > ppms_pro viderservi ceId
  20489                    {
  20490                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20491                             get
  20492                             {
  20493                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("ppms_pr oviderserv iceid");
  20494                             }
  20495                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20496                             set
  20497                             {
  20498                                      this.OnP ropertyCha nging("ppm s_provider serviceId" );
  20499                                      this.Set AttributeV alue("ppms _providers erviceid",  value);
  20500                                      if (valu e.HasValue )
  20501                                      {
  20502                                               base.Id =  value.Valu e;
  20503                                      }
  20504                                      else
  20505                                      {
  20506                                               base.Id =  System.Gui d.Empty;
  20507                                      }
  20508                                      this.OnP ropertyCha nged("ppms _providers erviceId") ;
  20509                             }
  20510                    }
  20511                    
  20512                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providers erviceid") ]
  20513                    publ ic overrid e System.G uid Id
  20514                    {
  20515                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20516                             get
  20517                             {
  20518                                      return b ase.Id;
  20519                             }
  20520                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20521                             set
  20522                             {
  20523                                      this.ppm s_provider serviceId  = value;
  20524                             }
  20525                    }
  20526                    
  20527                    ///  <summary>
  20528                    ///  Specialty
  20529                    ///  </summary>
  20530                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _specialty ")]
  20531                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_specialt y
  20532                    {
  20533                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20534                             get
  20535                             {
  20536                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_special ty");
  20537                             }
  20538                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20539                             set
  20540                             {
  20541                                      this.OnP ropertyCha nging("ppm s_specialt y");
  20542                                      this.Set AttributeV alue("ppms _specialty ", value);
  20543                                      this.OnP ropertyCha nged("ppms _specialty ");
  20544                             }
  20545                    }
  20546                    
  20547                    ///  <summary>
  20548                    /// 
  20549                    ///  </summary>
  20550                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _specialty code")]
  20551                    publ ic string  ppms_speci altycode
  20552                    {
  20553                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20554                             get
  20555                             {
  20556                                      return t his.GetAtt ributeValu e<string>( "ppms_spec ialtycode" );
  20557                             }
  20558                    }
  20559                    
  20560                    ///  <summary>
  20561                    /// 
  20562                    ///  </summary>
  20563                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _specialty nametext") ]
  20564                    publ ic string  ppms_speci altynamete xt
  20565                    {
  20566                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20567                             get
  20568                             {
  20569                                      return t his.GetAtt ributeValu e<string>( "ppms_spec ialtynamet ext");
  20570                             }
  20571                    }
  20572                    
  20573                    ///  <summary>
  20574                    ///  VA Provide r Relation ship
  20575                    ///  </summary>
  20576                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _vaprovide rrelations hipid")]
  20577                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_VAProvid erRelation shipId
  20578                    {
  20579                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20580                             get
  20581                             {
  20582                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_vaprovi derrelatio nshipid");
  20583                             }
  20584                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20585                             set
  20586                             {
  20587                                      this.OnP ropertyCha nging("ppm s_VAProvid erRelation shipId");
  20588                                      this.Set AttributeV alue("ppms _vaprovide rrelations hipid", va lue);
  20589                                      this.OnP ropertyCha nged("ppms _VAProvide rRelations hipId");
  20590                             }
  20591                    }
  20592                    
  20593                    ///  <summary>
  20594                    ///  Status of  the Provid er Service
  20595                    ///  </summary>
  20596                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat ecode")]
  20597                    publ ic System. Nullable<V A.PPMS.Con text.ppms_ providerse rviceState > statecod e
  20598                    {
  20599                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20600                             get
  20601                             {
  20602                                      Microsof t.Xrm.Sdk. OptionSetV alue optio nSet = thi s.GetAttri buteValue< Microsoft. Xrm.Sdk.Op tionSetVal ue>("state code");
  20603                                      if ((opt ionSet !=  null))
  20604                                      {
  20605                                               return ((V A.PPMS.Con text.ppms_ providerse rviceState )(System.E num.ToObje ct(typeof( VA.PPMS.Co ntext.ppms _providers erviceStat e), option Set.Value) ));
  20606                                      }
  20607                                      else
  20608                                      {
  20609                                               return nul l;
  20610                                      }
  20611                             }
  20612                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20613                             set
  20614                             {
  20615                                      this.OnP ropertyCha nging("sta tecode");
  20616                                      if ((val ue == null ))
  20617                                      {
  20618                                               this.SetAt tributeVal ue("statec ode", null );
  20619                                      }
  20620                                      else
  20621                                      {
  20622                                               this.SetAt tributeVal ue("statec ode", new  Microsoft. Xrm.Sdk.Op tionSetVal ue(((int)( value))));
  20623                                      }
  20624                                      this.OnP ropertyCha nged("stat ecode");
  20625                             }
  20626                    }
  20627                    
  20628                    ///  <summary>
  20629                    ///  Reason for  the statu s of the P rovider Se rvice
  20630                    ///  </summary>
  20631                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  20632                    publ ic Microso ft.Xrm.Sdk .OptionSet Value stat uscode
  20633                    {
  20634                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20635                             get
  20636                             {
  20637                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("sta tuscode");
  20638                             }
  20639                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20640                             set
  20641                             {
  20642                                      this.OnP ropertyCha nging("sta tuscode");
  20643                                      this.Set AttributeV alue("stat uscode", v alue);
  20644                                      this.OnP ropertyCha nged("stat uscode");
  20645                             }
  20646                    }
  20647                    
  20648                    ///  <summary>
  20649                    ///  For intern al use onl y.
  20650                    ///  </summary>
  20651                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("time zoneruleve rsionnumbe r")]
  20652                    publ ic System. Nullable<i nt> TimeZo neRuleVers ionNumber
  20653                    {
  20654                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20655                             get
  20656                             {
  20657                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("timez onerulever sionnumber ");
  20658                             }
  20659                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20660                             set
  20661                             {
  20662                                      this.OnP ropertyCha nging("Tim eZoneRuleV ersionNumb er");
  20663                                      this.Set AttributeV alue("time zoneruleve rsionnumbe r", value) ;
  20664                                      this.OnP ropertyCha nged("Time ZoneRuleVe rsionNumbe r");
  20665                             }
  20666                    }
  20667                    
  20668                    ///  <summary>
  20669                    ///  Time zone  code that  was in use  when the  record was  created.
  20670                    ///  </summary>
  20671                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("utcc onversiont imezonecod e")]
  20672                    publ ic System. Nullable<i nt> UTCCon versionTim eZoneCode
  20673                    {
  20674                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20675                             get
  20676                             {
  20677                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("utcco nversionti mezonecode ");
  20678                             }
  20679                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20680                             set
  20681                             {
  20682                                      this.OnP ropertyCha nging("UTC Conversion TimeZoneCo de");
  20683                                      this.Set AttributeV alue("utcc onversiont imezonecod e", value) ;
  20684                                      this.OnP ropertyCha nged("UTCC onversionT imeZoneCod e");
  20685                             }
  20686                    }
  20687                    
  20688                    ///  <summary>
  20689                    /// 
  20690                    ///  </summary>
  20691                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("vers ionnumber" )]
  20692                    publ ic System. Nullable<l ong> Versi onNumber
  20693                    {
  20694                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20695                             get
  20696                             {
  20697                                      return t his.GetAtt ributeValu e<System.N ullable<lo ng>>("vers ionnumber" );
  20698                             }
  20699                    }
  20700                    
  20701                    ///  <summary>
  20702                    ///  1:N ppms_p roviderser vice_agree mentprovid er_provide rservice
  20703                    ///  </summary>
  20704                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_provide rservice_a greementpr ovider_pro viderservi ce")]
  20705                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_agreeme ntprovider > ppms_pro viderservi ce_agreeme ntprovider _providers ervice
  20706                    {
  20707                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20708                             get
  20709                             {
  20710                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_agreem entprovide r>("ppms_p roviderser vice_agree mentprovid er_provide rservice",  null);
  20711                             }
  20712                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20713                             set
  20714                             {
  20715                                      this.OnP ropertyCha nging("ppm s_provider service_ag reementpro vider_prov iderservic e");
  20716                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_agr eementprov ider>("ppm s_provider service_ag reementpro vider_prov iderservic e", null,  value);
  20717                                      this.OnP ropertyCha nged("ppms _providers ervice_agr eementprov ider_provi derservice ");
  20718                             }
  20719                    }
  20720                    
  20721                    ///  <summary>
  20722                    ///  1:N ppms_p roviderser vice_ppms_ vaprovider relat
  20723                    ///  </summary>
  20724                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_provide rservice_p pms_vaprov iderrelat" )]
  20725                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_vaprovi derrelatio nship> ppm s_provider service_pp ms_vaprovi derrelat
  20726                    {
  20727                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20728                             get
  20729                             {
  20730                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_vaprov iderrelati onship>("p pms_provid erservice_ ppms_vapro viderrelat ", null);
  20731                             }
  20732                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20733                             set
  20734                             {
  20735                                      this.OnP ropertyCha nging("ppm s_provider service_pp ms_vaprovi derrelat") ;
  20736                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_vap roviderrel ationship> ("ppms_pro viderservi ce_ppms_va providerre lat", null , value);
  20737                                      this.OnP ropertyCha nged("ppms _providers ervice_ppm s_vaprovid errelat");
  20738                             }
  20739                    }
  20740                    
  20741                    ///  <summary>
  20742                    ///  1:N ppms_p roviderser vice_servi ceavailabi lity
  20743                    ///  </summary>
  20744                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_provide rservice_s erviceavai lability") ]
  20745                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_service availabili ty> ppms_p roviderser vice_servi ceavailabi lity
  20746                    {
  20747                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20748                             get
  20749                             {
  20750                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_servic eavailabil ity>("ppms _providers ervice_ser viceavaila bility", n ull);
  20751                             }
  20752                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20753                             set
  20754                             {
  20755                                      this.OnP ropertyCha nging("ppm s_provider service_se rviceavail ability");
  20756                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_ser viceavaila bility>("p pms_provid erservice_ serviceava ilability" , null, va lue);
  20757                                      this.OnP ropertyCha nged("ppms _providers ervice_ser viceavaila bility");
  20758                             }
  20759                    }
  20760                    
  20761                    ///  <summary>
  20762                    ///  N:1 ppms_a ccount_ppm s_provider service
  20763                    ///  </summary>
  20764                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _provideri d")]
  20765                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_account _ppms_prov iderservic e")]
  20766                    publ ic VA.PPMS .Context.A ccount ppm s_account_ ppms_provi derservice
  20767                    {
  20768                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20769                             get
  20770                             {
  20771                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.Acc ount>("ppm s_account_ ppms_provi derservice ", null);
  20772                             }
  20773                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20774                             set
  20775                             {
  20776                                      this.OnP ropertyCha nging("ppm s_account_ ppms_provi derservice ");
  20777                                      this.Set RelatedEnt ity<VA.PPM S.Context. Account>(" ppms_accou nt_ppms_pr oviderserv ice", null , value);
  20778                                      this.OnP ropertyCha nged("ppms _account_p pms_provid erservice" );
  20779                             }
  20780                    }
  20781                    
  20782                    ///  <summary>
  20783                    ///  N:1 ppms_c aresite_pr oviderserv ice_caresi te
  20784                    ///  </summary>
  20785                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _caresite" )]
  20786                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_caresit e_provider service_ca resite")]
  20787                    publ ic VA.PPMS .Context.p pms_caresi te ppms_ca resite_pro viderservi ce_caresit e
  20788                    {
  20789                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20790                             get
  20791                             {
  20792                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.ppm s_caresite >("ppms_ca resite_pro viderservi ce_caresit e", null);
  20793                             }
  20794                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20795                             set
  20796                             {
  20797                                      this.OnP ropertyCha nging("ppm s_caresite _providers ervice_car esite");
  20798                                      this.Set RelatedEnt ity<VA.PPM S.Context. ppms_cares ite>("ppms _caresite_ providerse rvice_care site", nul l, value);
  20799                                      this.OnP ropertyCha nged("ppms _caresite_ providerse rvice_care site");
  20800                             }
  20801                    }
  20802                    
  20803                    ///  <summary>
  20804                    ///  N:1 ppms_p pms_vaprov iderrelati onship_ppm s_provider
  20805                    ///  </summary>
  20806                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _vaprovide rrelations hipid")]
  20807                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_ppms_va providerre lationship _ppms_prov ider")]
  20808                    publ ic VA.PPMS .Context.p pms_vaprov iderrelati onship ppm s_ppms_vap roviderrel ationship_ ppms_provi der
  20809                    {
  20810                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20811                             get
  20812                             {
  20813                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.ppm s_vaprovid errelation ship>("ppm s_ppms_vap roviderrel ationship_ ppms_provi der", null );
  20814                             }
  20815                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20816                             set
  20817                             {
  20818                                      this.OnP ropertyCha nging("ppm s_ppms_vap roviderrel ationship_ ppms_provi der");
  20819                                      this.Set RelatedEnt ity<VA.PPM S.Context. ppms_vapro viderrelat ionship>(" ppms_ppms_ vaprovider relationsh ip_ppms_pr ovider", n ull, value );
  20820                                      this.OnP ropertyCha nged("ppms _ppms_vapr oviderrela tionship_p pms_provid er");
  20821                             }
  20822                    }
  20823                    
  20824                    ///  <summary>
  20825                    ///  N:1 ppms_p rovideragr eement_ppm s_provider service_Pr oviderAgre ement
  20826                    ///  </summary>
  20827                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providera greement") ]
  20828                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_provide ragreement _ppms_prov iderservic e_Provider Agreement" )]
  20829                    publ ic VA.PPMS .Context.p pms_provid eragreemen t ppms_pro videragree ment_ppms_ providerse rvice_Prov iderAgreem ent
  20830                    {
  20831                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20832                             get
  20833                             {
  20834                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.ppm s_provider agreement> ("ppms_pro videragree ment_ppms_ providerse rvice_Prov iderAgreem ent", null );
  20835                             }
  20836                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20837                             set
  20838                             {
  20839                                      this.OnP ropertyCha nging("ppm s_provider agreement_ ppms_provi derservice _ProviderA greement") ;
  20840                                      this.Set RelatedEnt ity<VA.PPM S.Context. ppms_provi deragreeme nt>("ppms_ providerag reement_pp ms_provide rservice_P roviderAgr eement", n ull, value );
  20841                                      this.OnP ropertyCha nged("ppms _providera greement_p pms_provid erservice_ ProviderAg reement");
  20842                             }
  20843                    }
  20844                    
  20845                    ///  <summary>
  20846                    ///  N:1 ppms_p roviderser vice_Organ ization
  20847                    ///  </summary>
  20848                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _organizat ion")]
  20849                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_provide rservice_O rganizatio n")]
  20850                    publ ic VA.PPMS .Context.A ccount ppm s_provider service_Or ganization
  20851                    {
  20852                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20853                             get
  20854                             {
  20855                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.Acc ount>("ppm s_provider service_Or ganization ", null);
  20856                             }
  20857                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20858                             set
  20859                             {
  20860                                      this.OnP ropertyCha nging("ppm s_provider service_Or ganization ");
  20861                                      this.Set RelatedEnt ity<VA.PPM S.Context. Account>(" ppms_provi derservice _Organizat ion", null , value);
  20862                                      this.OnP ropertyCha nged("ppms _providers ervice_Org anization" );
  20863                             }
  20864                    }
  20865                    
  20866                    ///  <summary>
  20867                    ///  N:1 ppms_t axonomy_pr oviderserv ice_specia lty
  20868                    ///  </summary>
  20869                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _specialty ")]
  20870                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_taxonom y_provider service_sp ecialty")]
  20871                    publ ic VA.PPMS .Context.p pms_taxono my ppms_ta xonomy_pro viderservi ce_special ty
  20872                    {
  20873                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20874                             get
  20875                             {
  20876                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.ppm s_taxonomy >("ppms_ta xonomy_pro viderservi ce_special ty", null) ;
  20877                             }
  20878                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20879                             set
  20880                             {
  20881                                      this.OnP ropertyCha nging("ppm s_taxonomy _providers ervice_spe cialty");
  20882                                      this.Set RelatedEnt ity<VA.PPM S.Context. ppms_taxon omy>("ppms _taxonomy_ providerse rvice_spec ialty", nu ll, value) ;
  20883                                      this.OnP ropertyCha nged("ppms _taxonomy_ providerse rvice_spec ialty");
  20884                             }
  20885                    }
  20886                    
  20887                    ///  <summary>
  20888                    ///  N:1 ppms_v aprovidern etwork_pro viderservi ce_network
  20889                    ///  </summary>
  20890                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _network") ]
  20891                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_vaprovi dernetwork _providers ervice_net work")]
  20892                    publ ic VA.PPMS .Context.p pms_vaprov idernetwor k ppms_vap rovidernet work_provi derservice _network
  20893                    {
  20894                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20895                             get
  20896                             {
  20897                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.ppm s_vaprovid ernetwork> ("ppms_vap rovidernet work_provi derservice _network",  null);
  20898                             }
  20899                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20900                             set
  20901                             {
  20902                                      this.OnP ropertyCha nging("ppm s_vaprovid ernetwork_ providerse rvice_netw ork");
  20903                                      this.Set RelatedEnt ity<VA.PPM S.Context. ppms_vapro vidernetwo rk>("ppms_ vaprovider network_pr oviderserv ice_networ k", null,  value);
  20904                                      this.OnP ropertyCha nged("ppms _vaprovide rnetwork_p roviderser vice_netwo rk");
  20905                             }
  20906                    }
  20907                    
  20908                    ///  <summary>
  20909                    ///  Constructo r for popu lating via  LINQ quer ies given  a LINQ ano nymous typ e
  20910                    ///  <param nam e="anonymo usType">LI NQ anonymo us type.</ param>
  20911                    ///  </summary>
  20912                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  20913                    publ ic ppms_pr oviderserv ice(object  anonymous Type) : 
  20914                                      this()
  20915                    {
  20916                foreach  (var p in  anonymousT ype.GetTyp e().GetPro perties())
  20917                {
  20918                    var  value = p. GetValue(a nonymousTy pe, null);
  20919                    var  name = p.N ame.ToLowe r();
  20920                
  20921                    if ( name.EndsW ith("enum" ) && value .GetType() .BaseType  == typeof( System.Enu m))
  20922                    {
  20923                         value = ne w Microsof t.Xrm.Sdk. OptionSetV alue((int)  value);
  20924                         name = nam e.Remove(n ame.Length  - "enum". Length);
  20925                    }
  20926                
  20927                    swit ch (name)
  20928                    {
  20929                         case "id":
  20930                             base.I d = (Syste m.Guid)val ue;
  20931                             Attrib utes["ppms _providers erviceid"]  = base.Id ;
  20932                             break;
  20933                         case "ppms _providers erviceid":
  20934                             var id  = (System .Nullable< System.Gui d>) value;
  20935                             if(id  == null){  continue;  }
  20936                             base.I d = id.Val ue;
  20937                             Attrib utes[name]  = base.Id ;
  20938                             break;
  20939                         case "form attedvalue s":
  20940                             // Add  Support f or Formatt edValues
  20941                             Format tedValues. AddRange(( Microsoft. Xrm.Sdk.Fo rmattedVal ueCollecti on)value);
  20942                             break;
  20943                         default:
  20944                             Attrib utes[name]  = value;
  20945                             break;
  20946                    }
  20947                }
  20948                    }
  20949                    
  20950                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providerg ender")]
  20951                    publ ic virtual  ppms_Gend er? ppms_p rovidergen derEnum
  20952                    {
  20953                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20954                             get
  20955                             {
  20956                                      return ( (ppms_Gend er?)(Entit yOptionSet Enum.GetEn um(this, " ppms_provi dergender" )));
  20957                             }
  20958                    }
  20959                    
  20960                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  20961                    publ ic virtual  ppms_prov iderservic e_StatusCo de? status codeEnum
  20962                    {
  20963                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20964                             get
  20965                             {
  20966                                      return ( (ppms_prov iderservic e_StatusCo de?)(Entit yOptionSet Enum.GetEn um(this, " statuscode ")));
  20967                             }
  20968                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  20969                             set
  20970                             {
  20971                                      statusco de = value .HasValue  ? new Micr osoft.Xrm. Sdk.Option SetValue(( int)value)  : null;
  20972                             }
  20973                    }
  20974           }
  20975           
  20976           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  20977           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  20978           pu blic enum  ppms_provi dertaxonom yState
  20979           {
  20980                    
  20981                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  20982                    Acti ve = 0,
  20983                    
  20984                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  20985                    Inac tive = 1,
  20986           }
  20987           
  20988           // / <summary >
  20989           //
  20990           // / </summar y>
  20991           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  20992           [M icrosoft.X rm.Sdk.Cli ent.Entity LogicalNam eAttribute ("ppms_pro vidertaxon omy")]
  20993           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  20994           pu blic parti al class p pms_provid ertaxonomy  : Microso ft.Xrm.Sdk .Entity, S ystem.Comp onentModel .INotifyPr opertyChan ging, Syst em.Compone ntModel.IN otifyPrope rtyChanged
  20995           {
  20996                    
  20997                    ///  <summary>
  20998                    ///  Default Co nstructor.
  20999                    ///  </summary>
  21000                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  21001                    publ ic ppms_pr ovidertaxo nomy() : 
  21002                                      base(Ent ityLogical Name)
  21003                    {
  21004                    }
  21005                    
  21006                    publ ic const s tring Enti tyLogicalN ame = "ppm s_provider taxonomy";
  21007                    
  21008                    publ ic const i nt EntityT ypeCode =  10071;
  21009                    
  21010                    publ ic event S ystem.Comp onentModel .PropertyC hangedEven tHandler P ropertyCha nged;
  21011                    
  21012                    publ ic event S ystem.Comp onentModel .PropertyC hangingEve ntHandler  PropertyCh anging;
  21013                    
  21014                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  21015                    priv ate void O nPropertyC hanged(str ing proper tyName)
  21016                    {
  21017                             if ((t his.Proper tyChanged  != null))
  21018                             {
  21019                                      this.Pro pertyChang ed(this, n ew System. ComponentM odel.Prope rtyChanged EventArgs( propertyNa me));
  21020                             }
  21021                    }
  21022                    
  21023                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  21024                    priv ate void O nPropertyC hanging(st ring prope rtyName)
  21025                    {
  21026                             if ((t his.Proper tyChanging  != null))
  21027                             {
  21028                                      this.Pro pertyChang ing(this,  new System .Component Model.Prop ertyChangi ngEventArg s(property Name));
  21029                             }
  21030                    }
  21031                    
  21032                    ///  <summary>
  21033                    ///  Unique ide ntifier of  the user  who create d the reco rd.
  21034                    ///  </summary>
  21035                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedby")]
  21036                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedBy
  21037                    {
  21038                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21039                             get
  21040                             {
  21041                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedby");
  21042                             }
  21043                    }
  21044                    
  21045                    ///  <summary>
  21046                    ///  Date and t ime when t he record  was create d.
  21047                    ///  </summary>
  21048                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedon")]
  21049                    publ ic System. Nullable<S ystem.Date Time> Crea tedOn
  21050                    {
  21051                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21052                             get
  21053                             {
  21054                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("cre atedon");
  21055                             }
  21056                    }
  21057                    
  21058                    ///  <summary>
  21059                    ///  Unique ide ntifier of  the deleg ate user w ho created  the recor d.
  21060                    ///  </summary>
  21061                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedonbehal fby")]
  21062                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedOnBeha lfBy
  21063                    {
  21064                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21065                             get
  21066                             {
  21067                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedonbeh alfby");
  21068                             }
  21069                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21070                             set
  21071                             {
  21072                                      this.OnP ropertyCha nging("Cre atedOnBeha lfBy");
  21073                                      this.Set AttributeV alue("crea tedonbehal fby", valu e);
  21074                                      this.OnP ropertyCha nged("Crea tedOnBehal fBy");
  21075                             }
  21076                    }
  21077                    
  21078                    ///  <summary>
  21079                    ///  Sequence n umber of t he import  that creat ed this re cord.
  21080                    ///  </summary>
  21081                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("impo rtsequence number")]
  21082                    publ ic System. Nullable<i nt> Import SequenceNu mber
  21083                    {
  21084                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21085                             get
  21086                             {
  21087                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("impor tsequencen umber");
  21088                             }
  21089                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21090                             set
  21091                             {
  21092                                      this.OnP ropertyCha nging("Imp ortSequenc eNumber");
  21093                                      this.Set AttributeV alue("impo rtsequence number", v alue);
  21094                                      this.OnP ropertyCha nged("Impo rtSequence Number");
  21095                             }
  21096                    }
  21097                    
  21098                    ///  <summary>
  21099                    ///  Unique ide ntifier of  the user  who modifi ed the rec ord.
  21100                    ///  </summary>
  21101                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedby")]
  21102                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedBy
  21103                    {
  21104                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21105                             get
  21106                             {
  21107                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedby") ;
  21108                             }
  21109                    }
  21110                    
  21111                    ///  <summary>
  21112                    ///  Date and t ime when t he record  was modifi ed.
  21113                    ///  </summary>
  21114                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedon")]
  21115                    publ ic System. Nullable<S ystem.Date Time> Modi fiedOn
  21116                    {
  21117                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21118                             get
  21119                             {
  21120                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("mod ifiedon");
  21121                             }
  21122                    }
  21123                    
  21124                    ///  <summary>
  21125                    ///  Unique ide ntifier of  the deleg ate user w ho modifie d the reco rd.
  21126                    ///  </summary>
  21127                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedonbeha lfby")]
  21128                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedOnBeh alfBy
  21129                    {
  21130                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21131                             get
  21132                             {
  21133                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedonbe halfby");
  21134                             }
  21135                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21136                             set
  21137                             {
  21138                                      this.OnP ropertyCha nging("Mod ifiedOnBeh alfBy");
  21139                                      this.Set AttributeV alue("modi fiedonbeha lfby", val ue);
  21140                                      this.OnP ropertyCha nged("Modi fiedOnBeha lfBy");
  21141                             }
  21142                    }
  21143                    
  21144                    ///  <summary>
  21145                    ///  Date and t ime that t he record  was migrat ed.
  21146                    ///  </summary>
  21147                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("over riddencrea tedon")]
  21148                    publ ic System. Nullable<S ystem.Date Time> Over riddenCrea tedOn
  21149                    {
  21150                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21151                             get
  21152                             {
  21153                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ove rriddencre atedon");
  21154                             }
  21155                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21156                             set
  21157                             {
  21158                                      this.OnP ropertyCha nging("Ove rriddenCre atedOn");
  21159                                      this.Set AttributeV alue("over riddencrea tedon", va lue);
  21160                                      this.OnP ropertyCha nged("Over riddenCrea tedOn");
  21161                             }
  21162                    }
  21163                    
  21164                    ///  <summary>
  21165                    ///  Owner Id
  21166                    ///  </summary>
  21167                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owne rid")]
  21168                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own erId
  21169                    {
  21170                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21171                             get
  21172                             {
  21173                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow nerid");
  21174                             }
  21175                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21176                             set
  21177                             {
  21178                                      this.OnP ropertyCha nging("Own erId");
  21179                                      this.Set AttributeV alue("owne rid", valu e);
  21180                                      this.OnP ropertyCha nged("Owne rId");
  21181                             }
  21182                    }
  21183                    
  21184                    ///  <summary>
  21185                    ///  Unique ide ntifier fo r the busi ness unit  that owns  the record
  21186                    ///  </summary>
  21187                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngbusiness unit")]
  21188                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingBusines sUnit
  21189                    {
  21190                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21191                             get
  21192                             {
  21193                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningbusine ssunit");
  21194                             }
  21195                    }
  21196                    
  21197                    ///  <summary>
  21198                    ///  Unique ide ntifier fo r the team  that owns  the recor d.
  21199                    ///  </summary>
  21200                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngteam")]
  21201                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingTeam
  21202                    {
  21203                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21204                             get
  21205                             {
  21206                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningteam") ;
  21207                             }
  21208                    }
  21209                    
  21210                    ///  <summary>
  21211                    ///  Unique ide ntifier fo r the user  that owns  the recor d.
  21212                    ///  </summary>
  21213                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni nguser")]
  21214                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingUser
  21215                    {
  21216                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21217                             get
  21218                             {
  21219                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ninguser") ;
  21220                             }
  21221                    }
  21222                    
  21223                    ///  <summary>
  21224                    /// 
  21225                    ///  </summary>
  21226                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _calculate dfield")]
  21227                    publ ic string  ppms_Calcu latedField
  21228                    {
  21229                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21230                             get
  21231                             {
  21232                                      return t his.GetAtt ributeValu e<string>( "ppms_calc ulatedfiel d");
  21233                             }
  21234                    }
  21235                    
  21236                    ///  <summary>
  21237                    /// 
  21238                    ///  </summary>
  21239                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _codedspec ialty")]
  21240                    publ ic string  ppms_coded specialty
  21241                    {
  21242                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21243                             get
  21244                             {
  21245                                      return t his.GetAtt ributeValu e<string>( "ppms_code dspecialty ");
  21246                             }
  21247                    }
  21248                    
  21249                    ///  <summary>
  21250                    ///  The name o f the cust om entity.
  21251                    ///  </summary>
  21252                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _name")]
  21253                    publ ic string  ppms_name
  21254                    {
  21255                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21256                             get
  21257                             {
  21258                                      return t his.GetAtt ributeValu e<string>( "ppms_name ");
  21259                             }
  21260                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21261                             set
  21262                             {
  21263                                      this.OnP ropertyCha nging("ppm s_name");
  21264                                      this.Set AttributeV alue("ppms _name", va lue);
  21265                                      this.OnP ropertyCha nged("ppms _name");
  21266                             }
  21267                    }
  21268                    
  21269                    ///  <summary>
  21270                    /// 
  21271                    ///  </summary>
  21272                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _primaryta xonomy")]
  21273                    publ ic System. Nullable<b ool> ppms_ PrimaryTax onomy
  21274                    {
  21275                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21276                             get
  21277                             {
  21278                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("ppms _primaryta xonomy");
  21279                             }
  21280                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21281                             set
  21282                             {
  21283                                      this.OnP ropertyCha nging("ppm s_PrimaryT axonomy");
  21284                                      this.Set AttributeV alue("ppms _primaryta xonomy", v alue);
  21285                                      this.OnP ropertyCha nged("ppms _PrimaryTa xonomy");
  21286                             }
  21287                    }
  21288                    
  21289                    ///  <summary>
  21290                    ///  Unique ide ntifier fo r Provider  associate d with Pro vider Taxo nomy.
  21291                    ///  </summary>
  21292                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _provideri d")]
  21293                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_Provider Id
  21294                    {
  21295                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21296                             get
  21297                             {
  21298                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_provide rid");
  21299                             }
  21300                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21301                             set
  21302                             {
  21303                                      this.OnP ropertyCha nging("ppm s_Provider Id");
  21304                                      this.Set AttributeV alue("ppms _provideri d", value) ;
  21305                                      this.OnP ropertyCha nged("ppms _ProviderI d");
  21306                             }
  21307                    }
  21308                    
  21309                    ///  <summary>
  21310                    ///  Unique ide ntifier fo r entity i nstances
  21311                    ///  </summary>
  21312                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providert axonomyid" )]
  21313                    publ ic System. Nullable<S ystem.Guid > ppms_pro vidertaxon omyId
  21314                    {
  21315                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21316                             get
  21317                             {
  21318                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("ppms_pr ovidertaxo nomyid");
  21319                             }
  21320                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21321                             set
  21322                             {
  21323                                      this.OnP ropertyCha nging("ppm s_provider taxonomyId ");
  21324                                      this.Set AttributeV alue("ppms _providert axonomyid" , value);
  21325                                      if (valu e.HasValue )
  21326                                      {
  21327                                               base.Id =  value.Valu e;
  21328                                      }
  21329                                      else
  21330                                      {
  21331                                               base.Id =  System.Gui d.Empty;
  21332                                      }
  21333                                      this.OnP ropertyCha nged("ppms _providert axonomyId" );
  21334                             }
  21335                    }
  21336                    
  21337                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providert axonomyid" )]
  21338                    publ ic overrid e System.G uid Id
  21339                    {
  21340                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21341                             get
  21342                             {
  21343                                      return b ase.Id;
  21344                             }
  21345                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21346                             set
  21347                             {
  21348                                      this.ppm s_provider taxonomyId  = value;
  21349                             }
  21350                    }
  21351                    
  21352                    ///  <summary>
  21353                    ///  Unique ide ntifier fo r Taxonomy  associate d with Pro vider Taxo nomy.
  21354                    ///  </summary>
  21355                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _taxonomyi d")]
  21356                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_Taxonomy Id
  21357                    {
  21358                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21359                             get
  21360                             {
  21361                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_taxonom yid");
  21362                             }
  21363                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21364                             set
  21365                             {
  21366                                      this.OnP ropertyCha nging("ppm s_Taxonomy Id");
  21367                                      this.Set AttributeV alue("ppms _taxonomyi d", value) ;
  21368                                      this.OnP ropertyCha nged("ppms _TaxonomyI d");
  21369                             }
  21370                    }
  21371                    
  21372                    ///  <summary>
  21373                    ///  Contains t he id of t he process  associate d with the  entity.
  21374                    ///  </summary>
  21375                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("proc essid")]
  21376                    publ ic System. Nullable<S ystem.Guid > processi d
  21377                    {
  21378                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21379                             get
  21380                             {
  21381                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("process id");
  21382                             }
  21383                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21384                             set
  21385                             {
  21386                                      this.OnP ropertyCha nging("pro cessid");
  21387                                      this.Set AttributeV alue("proc essid", va lue);
  21388                                      this.OnP ropertyCha nged("proc essid");
  21389                             }
  21390                    }
  21391                    
  21392                    ///  <summary>
  21393                    ///  Contains t he id of t he stage w here the e ntity is l ocated.
  21394                    ///  </summary>
  21395                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stag eid")]
  21396                    publ ic System. Nullable<S ystem.Guid > stageid
  21397                    {
  21398                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21399                             get
  21400                             {
  21401                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("stageid ");
  21402                             }
  21403                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21404                             set
  21405                             {
  21406                                      this.OnP ropertyCha nging("sta geid");
  21407                                      this.Set AttributeV alue("stag eid", valu e);
  21408                                      this.OnP ropertyCha nged("stag eid");
  21409                             }
  21410                    }
  21411                    
  21412                    ///  <summary>
  21413                    ///  Status of  the Provid er Taxonom y
  21414                    ///  </summary>
  21415                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat ecode")]
  21416                    publ ic System. Nullable<V A.PPMS.Con text.ppms_ providerta xonomyStat e> stateco de
  21417                    {
  21418                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21419                             get
  21420                             {
  21421                                      Microsof t.Xrm.Sdk. OptionSetV alue optio nSet = thi s.GetAttri buteValue< Microsoft. Xrm.Sdk.Op tionSetVal ue>("state code");
  21422                                      if ((opt ionSet !=  null))
  21423                                      {
  21424                                               return ((V A.PPMS.Con text.ppms_ providerta xonomyStat e)(System. Enum.ToObj ect(typeof (VA.PPMS.C ontext.ppm s_provider taxonomySt ate), opti onSet.Valu e)));
  21425                                      }
  21426                                      else
  21427                                      {
  21428                                               return nul l;
  21429                                      }
  21430                             }
  21431                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21432                             set
  21433                             {
  21434                                      this.OnP ropertyCha nging("sta tecode");
  21435                                      if ((val ue == null ))
  21436                                      {
  21437                                               this.SetAt tributeVal ue("statec ode", null );
  21438                                      }
  21439                                      else
  21440                                      {
  21441                                               this.SetAt tributeVal ue("statec ode", new  Microsoft. Xrm.Sdk.Op tionSetVal ue(((int)( value))));
  21442                                      }
  21443                                      this.OnP ropertyCha nged("stat ecode");
  21444                             }
  21445                    }
  21446                    
  21447                    ///  <summary>
  21448                    ///  Reason for  the statu s of the P rovider Ta xonomy
  21449                    ///  </summary>
  21450                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  21451                    publ ic Microso ft.Xrm.Sdk .OptionSet Value stat uscode
  21452                    {
  21453                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21454                             get
  21455                             {
  21456                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("sta tuscode");
  21457                             }
  21458                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21459                             set
  21460                             {
  21461                                      this.OnP ropertyCha nging("sta tuscode");
  21462                                      this.Set AttributeV alue("stat uscode", v alue);
  21463                                      this.OnP ropertyCha nged("stat uscode");
  21464                             }
  21465                    }
  21466                    
  21467                    ///  <summary>
  21468                    ///  For intern al use onl y.
  21469                    ///  </summary>
  21470                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("time zoneruleve rsionnumbe r")]
  21471                    publ ic System. Nullable<i nt> TimeZo neRuleVers ionNumber
  21472                    {
  21473                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21474                             get
  21475                             {
  21476                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("timez onerulever sionnumber ");
  21477                             }
  21478                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21479                             set
  21480                             {
  21481                                      this.OnP ropertyCha nging("Tim eZoneRuleV ersionNumb er");
  21482                                      this.Set AttributeV alue("time zoneruleve rsionnumbe r", value) ;
  21483                                      this.OnP ropertyCha nged("Time ZoneRuleVe rsionNumbe r");
  21484                             }
  21485                    }
  21486                    
  21487                    ///  <summary>
  21488                    ///  A comma se parated li st of stri ng values  representi ng the uni que identi fiers of s tages in a  Business  Process Fl ow Instanc e in the o rder that  they occur .
  21489                    ///  </summary>
  21490                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("trav ersedpath" )]
  21491                    publ ic string  traversedp ath
  21492                    {
  21493                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21494                             get
  21495                             {
  21496                                      return t his.GetAtt ributeValu e<string>( "traversed path");
  21497                             }
  21498                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21499                             set
  21500                             {
  21501                                      this.OnP ropertyCha nging("tra versedpath ");
  21502                                      this.Set AttributeV alue("trav ersedpath" , value);
  21503                                      this.OnP ropertyCha nged("trav ersedpath" );
  21504                             }
  21505                    }
  21506                    
  21507                    ///  <summary>
  21508                    ///  Time zone  code that  was in use  when the  record was  created.
  21509                    ///  </summary>
  21510                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("utcc onversiont imezonecod e")]
  21511                    publ ic System. Nullable<i nt> UTCCon versionTim eZoneCode
  21512                    {
  21513                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21514                             get
  21515                             {
  21516                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("utcco nversionti mezonecode ");
  21517                             }
  21518                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21519                             set
  21520                             {
  21521                                      this.OnP ropertyCha nging("UTC Conversion TimeZoneCo de");
  21522                                      this.Set AttributeV alue("utcc onversiont imezonecod e", value) ;
  21523                                      this.OnP ropertyCha nged("UTCC onversionT imeZoneCod e");
  21524                             }
  21525                    }
  21526                    
  21527                    ///  <summary>
  21528                    ///  Version Nu mber
  21529                    ///  </summary>
  21530                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("vers ionnumber" )]
  21531                    publ ic System. Nullable<l ong> Versi onNumber
  21532                    {
  21533                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21534                             get
  21535                             {
  21536                                      return t his.GetAtt ributeValu e<System.N ullable<lo ng>>("vers ionnumber" );
  21537                             }
  21538                    }
  21539                    
  21540                    ///  <summary>
  21541                    ///  1:N ppms_p rovidertax onomy_ppms _providera greement_C ategoryofC are
  21542                    ///  </summary>
  21543                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_provide rtaxonomy_ ppms_provi deragreeme nt_Categor yofCare")]
  21544                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_provide ragreement > ppms_pro vidertaxon omy_ppms_p rovideragr eement_Cat egoryofCar e
  21545                    {
  21546                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21547                             get
  21548                             {
  21549                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_provid eragreemen t>("ppms_p rovidertax onomy_ppms _providera greement_C ategoryofC are", null );
  21550                             }
  21551                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21552                             set
  21553                             {
  21554                                      this.OnP ropertyCha nging("ppm s_provider taxonomy_p pms_provid eragreemen t_Category ofCare");
  21555                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_pro videragree ment>("ppm s_provider taxonomy_p pms_provid eragreemen t_Category ofCare", n ull, value );
  21556                                      this.OnP ropertyCha nged("ppms _providert axonomy_pp ms_provide ragreement _Categoryo fCare");
  21557                             }
  21558                    }
  21559                    
  21560                    ///  <summary>
  21561                    ///  N:1 ppms_a ccount_ppm s_provider taxonomy
  21562                    ///  </summary>
  21563                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _provideri d")]
  21564                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_account _ppms_prov idertaxono my")]
  21565                    publ ic VA.PPMS .Context.A ccount ppm s_account_ ppms_provi dertaxonom y
  21566                    {
  21567                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21568                             get
  21569                             {
  21570                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.Acc ount>("ppm s_account_ ppms_provi dertaxonom y", null);
  21571                             }
  21572                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21573                             set
  21574                             {
  21575                                      this.OnP ropertyCha nging("ppm s_account_ ppms_provi dertaxonom y");
  21576                                      this.Set RelatedEnt ity<VA.PPM S.Context. Account>(" ppms_accou nt_ppms_pr ovidertaxo nomy", nul l, value);
  21577                                      this.OnP ropertyCha nged("ppms _account_p pms_provid ertaxonomy ");
  21578                             }
  21579                    }
  21580                    
  21581                    ///  <summary>
  21582                    ///  N:1 ppms_p pms_taxono my_ppms_pr ovidertaxo nomy
  21583                    ///  </summary>
  21584                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _taxonomyi d")]
  21585                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_ppms_ta xonomy_ppm s_provider taxonomy") ]
  21586                    publ ic VA.PPMS .Context.p pms_taxono my ppms_pp ms_taxonom y_ppms_pro vidertaxon omy
  21587                    {
  21588                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21589                             get
  21590                             {
  21591                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.ppm s_taxonomy >("ppms_pp ms_taxonom y_ppms_pro vidertaxon omy", null );
  21592                             }
  21593                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21594                             set
  21595                             {
  21596                                      this.OnP ropertyCha nging("ppm s_ppms_tax onomy_ppms _providert axonomy");
  21597                                      this.Set RelatedEnt ity<VA.PPM S.Context. ppms_taxon omy>("ppms _ppms_taxo nomy_ppms_ providerta xonomy", n ull, value );
  21598                                      this.OnP ropertyCha nged("ppms _ppms_taxo nomy_ppms_ providerta xonomy");
  21599                             }
  21600                    }
  21601                    
  21602                    ///  <summary>
  21603                    ///  Constructo r for popu lating via  LINQ quer ies given  a LINQ ano nymous typ e
  21604                    ///  <param nam e="anonymo usType">LI NQ anonymo us type.</ param>
  21605                    ///  </summary>
  21606                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  21607                    publ ic ppms_pr ovidertaxo nomy(objec t anonymou sType) : 
  21608                                      this()
  21609                    {
  21610                foreach  (var p in  anonymousT ype.GetTyp e().GetPro perties())
  21611                {
  21612                    var  value = p. GetValue(a nonymousTy pe, null);
  21613                    var  name = p.N ame.ToLowe r();
  21614                
  21615                    if ( name.EndsW ith("enum" ) && value .GetType() .BaseType  == typeof( System.Enu m))
  21616                    {
  21617                         value = ne w Microsof t.Xrm.Sdk. OptionSetV alue((int)  value);
  21618                         name = nam e.Remove(n ame.Length  - "enum". Length);
  21619                    }
  21620                
  21621                    swit ch (name)
  21622                    {
  21623                         case "id":
  21624                             base.I d = (Syste m.Guid)val ue;
  21625                             Attrib utes["ppms _providert axonomyid" ] = base.I d;
  21626                             break;
  21627                         case "ppms _providert axonomyid" :
  21628                             var id  = (System .Nullable< System.Gui d>) value;
  21629                             if(id  == null){  continue;  }
  21630                             base.I d = id.Val ue;
  21631                             Attrib utes[name]  = base.Id ;
  21632                             break;
  21633                         case "form attedvalue s":
  21634                             // Add  Support f or Formatt edValues
  21635                             Format tedValues. AddRange(( Microsoft. Xrm.Sdk.Fo rmattedVal ueCollecti on)value);
  21636                             break;
  21637                         default:
  21638                             Attrib utes[name]  = value;
  21639                             break;
  21640                    }
  21641                }
  21642                    }
  21643                    
  21644                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  21645                    publ ic virtual  ppms_prov idertaxono my_StatusC ode? statu scodeEnum
  21646                    {
  21647                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21648                             get
  21649                             {
  21650                                      return ( (ppms_prov idertaxono my_StatusC ode?)(Enti tyOptionSe tEnum.GetE num(this,  "statuscod e")));
  21651                             }
  21652                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21653                             set
  21654                             {
  21655                                      statusco de = value .HasValue  ? new Micr osoft.Xrm. Sdk.Option SetValue(( int)value)  : null;
  21656                             }
  21657                    }
  21658           }
  21659           
  21660           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  21661           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  21662           pu blic enum  ppms_servi ceavailabi lityState
  21663           {
  21664                    
  21665                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  21666                    Acti ve = 0,
  21667                    
  21668                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  21669                    Inac tive = 1,
  21670           }
  21671           
  21672           // / <summary >
  21673           // / Service  Availabili ty
  21674           // / </summar y>
  21675           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  21676           [M icrosoft.X rm.Sdk.Cli ent.Entity LogicalNam eAttribute ("ppms_ser viceavaila bility")]
  21677           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  21678           pu blic parti al class p pms_servic eavailabil ity : Micr osoft.Xrm. Sdk.Entity , System.C omponentMo del.INotif yPropertyC hanging, S ystem.Comp onentModel .INotifyPr opertyChan ged
  21679           {
  21680                    
  21681                    ///  <summary>
  21682                    ///  Default Co nstructor.
  21683                    ///  </summary>
  21684                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  21685                    publ ic ppms_se rviceavail ability() 
  21686                                      base(Ent ityLogical Name)
  21687                    {
  21688                    }
  21689                    
  21690                    publ ic const s tring Enti tyLogicalN ame = "ppm s_servicea vailabilit y";
  21691                    
  21692                    publ ic const i nt EntityT ypeCode =  10042;
  21693                    
  21694                    publ ic event S ystem.Comp onentModel .PropertyC hangedEven tHandler P ropertyCha nged;
  21695                    
  21696                    publ ic event S ystem.Comp onentModel .PropertyC hangingEve ntHandler  PropertyCh anging;
  21697                    
  21698                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  21699                    priv ate void O nPropertyC hanged(str ing proper tyName)
  21700                    {
  21701                             if ((t his.Proper tyChanged  != null))
  21702                             {
  21703                                      this.Pro pertyChang ed(this, n ew System. ComponentM odel.Prope rtyChanged EventArgs( propertyNa me));
  21704                             }
  21705                    }
  21706                    
  21707                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  21708                    priv ate void O nPropertyC hanging(st ring prope rtyName)
  21709                    {
  21710                             if ((t his.Proper tyChanging  != null))
  21711                             {
  21712                                      this.Pro pertyChang ing(this,  new System .Component Model.Prop ertyChangi ngEventArg s(property Name));
  21713                             }
  21714                    }
  21715                    
  21716                    ///  <summary>
  21717                    ///  Unique ide ntifier of  the user  who create d the reco rd.
  21718                    ///  </summary>
  21719                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedby")]
  21720                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedBy
  21721                    {
  21722                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21723                             get
  21724                             {
  21725                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedby");
  21726                             }
  21727                    }
  21728                    
  21729                    ///  <summary>
  21730                    ///  Date and t ime when t he record  was create d.
  21731                    ///  </summary>
  21732                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedon")]
  21733                    publ ic System. Nullable<S ystem.Date Time> Crea tedOn
  21734                    {
  21735                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21736                             get
  21737                             {
  21738                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("cre atedon");
  21739                             }
  21740                    }
  21741                    
  21742                    ///  <summary>
  21743                    ///  Unique ide ntifier of  the deleg ate user w ho created  the recor d.
  21744                    ///  </summary>
  21745                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedonbehal fby")]
  21746                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedOnBeha lfBy
  21747                    {
  21748                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21749                             get
  21750                             {
  21751                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedonbeh alfby");
  21752                             }
  21753                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21754                             set
  21755                             {
  21756                                      this.OnP ropertyCha nging("Cre atedOnBeha lfBy");
  21757                                      this.Set AttributeV alue("crea tedonbehal fby", valu e);
  21758                                      this.OnP ropertyCha nged("Crea tedOnBehal fBy");
  21759                             }
  21760                    }
  21761                    
  21762                    ///  <summary>
  21763                    ///  Sequence n umber of t he import  that creat ed this re cord.
  21764                    ///  </summary>
  21765                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("impo rtsequence number")]
  21766                    publ ic System. Nullable<i nt> Import SequenceNu mber
  21767                    {
  21768                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21769                             get
  21770                             {
  21771                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("impor tsequencen umber");
  21772                             }
  21773                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21774                             set
  21775                             {
  21776                                      this.OnP ropertyCha nging("Imp ortSequenc eNumber");
  21777                                      this.Set AttributeV alue("impo rtsequence number", v alue);
  21778                                      this.OnP ropertyCha nged("Impo rtSequence Number");
  21779                             }
  21780                    }
  21781                    
  21782                    ///  <summary>
  21783                    ///  Unique ide ntifier of  the user  who modifi ed the rec ord.
  21784                    ///  </summary>
  21785                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedby")]
  21786                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedBy
  21787                    {
  21788                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21789                             get
  21790                             {
  21791                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedby") ;
  21792                             }
  21793                    }
  21794                    
  21795                    ///  <summary>
  21796                    ///  Date and t ime when t he record  was modifi ed.
  21797                    ///  </summary>
  21798                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedon")]
  21799                    publ ic System. Nullable<S ystem.Date Time> Modi fiedOn
  21800                    {
  21801                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21802                             get
  21803                             {
  21804                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("mod ifiedon");
  21805                             }
  21806                    }
  21807                    
  21808                    ///  <summary>
  21809                    ///  Unique ide ntifier of  the deleg ate user w ho modifie d the reco rd.
  21810                    ///  </summary>
  21811                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedonbeha lfby")]
  21812                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedOnBeh alfBy
  21813                    {
  21814                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21815                             get
  21816                             {
  21817                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedonbe halfby");
  21818                             }
  21819                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21820                             set
  21821                             {
  21822                                      this.OnP ropertyCha nging("Mod ifiedOnBeh alfBy");
  21823                                      this.Set AttributeV alue("modi fiedonbeha lfby", val ue);
  21824                                      this.OnP ropertyCha nged("Modi fiedOnBeha lfBy");
  21825                             }
  21826                    }
  21827                    
  21828                    ///  <summary>
  21829                    ///  Unique ide ntifier fo r the orga nization
  21830                    ///  </summary>
  21831                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("orga nizationid ")]
  21832                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Org anizationI d
  21833                    {
  21834                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21835                             get
  21836                             {
  21837                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("or ganization id");
  21838                             }
  21839                    }
  21840                    
  21841                    ///  <summary>
  21842                    ///  Date and t ime that t he record  was migrat ed.
  21843                    ///  </summary>
  21844                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("over riddencrea tedon")]
  21845                    publ ic System. Nullable<S ystem.Date Time> Over riddenCrea tedOn
  21846                    {
  21847                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21848                             get
  21849                             {
  21850                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ove rriddencre atedon");
  21851                             }
  21852                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21853                             set
  21854                             {
  21855                                      this.OnP ropertyCha nging("Ove rriddenCre atedOn");
  21856                                      this.Set AttributeV alue("over riddencrea tedon", va lue);
  21857                                      this.OnP ropertyCha nged("Over riddenCrea tedOn");
  21858                             }
  21859                    }
  21860                    
  21861                    ///  <summary>
  21862                    ///  Day of the  Week
  21863                    ///  </summary>
  21864                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _dayofweek ")]
  21865                    publ ic Microso ft.Xrm.Sdk .OptionSet Value ppms _dayofweek
  21866                    {
  21867                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21868                             get
  21869                             {
  21870                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("ppm s_dayofwee k");
  21871                             }
  21872                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21873                             set
  21874                             {
  21875                                      this.OnP ropertyCha nging("ppm s_dayofwee k");
  21876                                      this.Set AttributeV alue("ppms _dayofweek ", value);
  21877                                      this.OnP ropertyCha nged("ppms _dayofweek ");
  21878                             }
  21879                    }
  21880                    
  21881                    ///  <summary>
  21882                    ///  End Time
  21883                    ///  </summary>
  21884                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _endtime") ]
  21885                    publ ic string  ppms_endti me
  21886                    {
  21887                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21888                             get
  21889                             {
  21890                                      return t his.GetAtt ributeValu e<string>( "ppms_endt ime");
  21891                             }
  21892                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21893                             set
  21894                             {
  21895                                      this.OnP ropertyCha nging("ppm s_endtime" );
  21896                                      this.Set AttributeV alue("ppms _endtime",  value);
  21897                                      this.OnP ropertyCha nged("ppms _endtime") ;
  21898                             }
  21899                    }
  21900                    
  21901                    ///  <summary>
  21902                    ///  Hours Of O peration
  21903                    ///  </summary>
  21904                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _hoursofop erationid" )]
  21905                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_HoursOfO perationId
  21906                    {
  21907                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21908                             get
  21909                             {
  21910                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_hoursof operationi d");
  21911                             }
  21912                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21913                             set
  21914                             {
  21915                                      this.OnP ropertyCha nging("ppm s_HoursOfO perationId ");
  21916                                      this.Set AttributeV alue("ppms _hoursofop erationid" , value);
  21917                                      this.OnP ropertyCha nged("ppms _HoursOfOp erationId" );
  21918                             }
  21919                    }
  21920                    
  21921                    ///  <summary>
  21922                    ///  The name o f the cust om entity.
  21923                    ///  </summary>
  21924                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _name")]
  21925                    publ ic string  ppms_name
  21926                    {
  21927                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21928                             get
  21929                             {
  21930                                      return t his.GetAtt ributeValu e<string>( "ppms_name ");
  21931                             }
  21932                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21933                             set
  21934                             {
  21935                                      this.OnP ropertyCha nging("ppm s_name");
  21936                                      this.Set AttributeV alue("ppms _name", va lue);
  21937                                      this.OnP ropertyCha nged("ppms _name");
  21938                             }
  21939                    }
  21940                    
  21941                    ///  <summary>
  21942                    ///  Patient Se rvice
  21943                    ///  </summary>
  21944                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _patientse rviceid")]
  21945                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_PatientS erviceId
  21946                    {
  21947                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21948                             get
  21949                             {
  21950                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_patient serviceid" );
  21951                             }
  21952                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21953                             set
  21954                             {
  21955                                      this.OnP ropertyCha nging("ppm s_PatientS erviceId") ;
  21956                                      this.Set AttributeV alue("ppms _patientse rviceid",  value);
  21957                                      this.OnP ropertyCha nged("ppms _PatientSe rviceId");
  21958                             }
  21959                    }
  21960                    
  21961                    ///  <summary>
  21962                    ///  Provider S ervice
  21963                    ///  </summary>
  21964                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providers erviceid") ]
  21965                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_Provider ServiceId
  21966                    {
  21967                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21968                             get
  21969                             {
  21970                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_provide rserviceid ");
  21971                             }
  21972                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21973                             set
  21974                             {
  21975                                      this.OnP ropertyCha nging("ppm s_Provider ServiceId" );
  21976                                      this.Set AttributeV alue("ppms _providers erviceid",  value);
  21977                                      this.OnP ropertyCha nged("ppms _ProviderS erviceId") ;
  21978                             }
  21979                    }
  21980                    
  21981                    ///  <summary>
  21982                    ///  Unique ide ntifier fo r entity i nstances
  21983                    ///  </summary>
  21984                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _serviceav ailability id")]
  21985                    publ ic System. Nullable<S ystem.Guid > ppms_ser viceavaila bilityId
  21986                    {
  21987                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21988                             get
  21989                             {
  21990                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("ppms_se rviceavail abilityid" );
  21991                             }
  21992                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  21993                             set
  21994                             {
  21995                                      this.OnP ropertyCha nging("ppm s_servicea vailabilit yId");
  21996                                      this.Set AttributeV alue("ppms _serviceav ailability id", value );
  21997                                      if (valu e.HasValue )
  21998                                      {
  21999                                               base.Id =  value.Valu e;
  22000                                      }
  22001                                      else
  22002                                      {
  22003                                               base.Id =  System.Gui d.Empty;
  22004                                      }
  22005                                      this.OnP ropertyCha nged("ppms _serviceav ailability Id");
  22006                             }
  22007                    }
  22008                    
  22009                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _serviceav ailability id")]
  22010                    publ ic overrid e System.G uid Id
  22011                    {
  22012                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22013                             get
  22014                             {
  22015                                      return b ase.Id;
  22016                             }
  22017                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22018                             set
  22019                             {
  22020                                      this.ppm s_servicea vailabilit yId = valu e;
  22021                             }
  22022                    }
  22023                    
  22024                    ///  <summary>
  22025                    ///  Start Time
  22026                    ///  </summary>
  22027                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _starttime ")]
  22028                    publ ic string  ppms_start time
  22029                    {
  22030                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22031                             get
  22032                             {
  22033                                      return t his.GetAtt ributeValu e<string>( "ppms_star ttime");
  22034                             }
  22035                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22036                             set
  22037                             {
  22038                                      this.OnP ropertyCha nging("ppm s_starttim e");
  22039                                      this.Set AttributeV alue("ppms _starttime ", value);
  22040                                      this.OnP ropertyCha nged("ppms _starttime ");
  22041                             }
  22042                    }
  22043                    
  22044                    ///  <summary>
  22045                    ///  Status of  the Servic e Availabi lity
  22046                    ///  </summary>
  22047                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat ecode")]
  22048                    publ ic System. Nullable<V A.PPMS.Con text.ppms_ serviceava ilabilityS tate> stat ecode
  22049                    {
  22050                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22051                             get
  22052                             {
  22053                                      Microsof t.Xrm.Sdk. OptionSetV alue optio nSet = thi s.GetAttri buteValue< Microsoft. Xrm.Sdk.Op tionSetVal ue>("state code");
  22054                                      if ((opt ionSet !=  null))
  22055                                      {
  22056                                               return ((V A.PPMS.Con text.ppms_ serviceava ilabilityS tate)(Syst em.Enum.To Object(typ eof(VA.PPM S.Context. ppms_servi ceavailabi lityState) , optionSe t.Value))) ;
  22057                                      }
  22058                                      else
  22059                                      {
  22060                                               return nul l;
  22061                                      }
  22062                             }
  22063                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22064                             set
  22065                             {
  22066                                      this.OnP ropertyCha nging("sta tecode");
  22067                                      if ((val ue == null ))
  22068                                      {
  22069                                               this.SetAt tributeVal ue("statec ode", null );
  22070                                      }
  22071                                      else
  22072                                      {
  22073                                               this.SetAt tributeVal ue("statec ode", new  Microsoft. Xrm.Sdk.Op tionSetVal ue(((int)( value))));
  22074                                      }
  22075                                      this.OnP ropertyCha nged("stat ecode");
  22076                             }
  22077                    }
  22078                    
  22079                    ///  <summary>
  22080                    ///  Reason for  the statu s of the S ervice Ava ilability
  22081                    ///  </summary>
  22082                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  22083                    publ ic Microso ft.Xrm.Sdk .OptionSet Value stat uscode
  22084                    {
  22085                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22086                             get
  22087                             {
  22088                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("sta tuscode");
  22089                             }
  22090                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22091                             set
  22092                             {
  22093                                      this.OnP ropertyCha nging("sta tuscode");
  22094                                      this.Set AttributeV alue("stat uscode", v alue);
  22095                                      this.OnP ropertyCha nged("stat uscode");
  22096                             }
  22097                    }
  22098                    
  22099                    ///  <summary>
  22100                    ///  For intern al use onl y.
  22101                    ///  </summary>
  22102                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("time zoneruleve rsionnumbe r")]
  22103                    publ ic System. Nullable<i nt> TimeZo neRuleVers ionNumber
  22104                    {
  22105                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22106                             get
  22107                             {
  22108                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("timez onerulever sionnumber ");
  22109                             }
  22110                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22111                             set
  22112                             {
  22113                                      this.OnP ropertyCha nging("Tim eZoneRuleV ersionNumb er");
  22114                                      this.Set AttributeV alue("time zoneruleve rsionnumbe r", value) ;
  22115                                      this.OnP ropertyCha nged("Time ZoneRuleVe rsionNumbe r");
  22116                             }
  22117                    }
  22118                    
  22119                    ///  <summary>
  22120                    ///  Time zone  code that  was in use  when the  record was  created.
  22121                    ///  </summary>
  22122                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("utcc onversiont imezonecod e")]
  22123                    publ ic System. Nullable<i nt> UTCCon versionTim eZoneCode
  22124                    {
  22125                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22126                             get
  22127                             {
  22128                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("utcco nversionti mezonecode ");
  22129                             }
  22130                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22131                             set
  22132                             {
  22133                                      this.OnP ropertyCha nging("UTC Conversion TimeZoneCo de");
  22134                                      this.Set AttributeV alue("utcc onversiont imezonecod e", value) ;
  22135                                      this.OnP ropertyCha nged("UTCC onversionT imeZoneCod e");
  22136                             }
  22137                    }
  22138                    
  22139                    ///  <summary>
  22140                    /// 
  22141                    ///  </summary>
  22142                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("vers ionnumber" )]
  22143                    publ ic System. Nullable<l ong> Versi onNumber
  22144                    {
  22145                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22146                             get
  22147                             {
  22148                                      return t his.GetAtt ributeValu e<System.N ullable<lo ng>>("vers ionnumber" );
  22149                             }
  22150                    }
  22151                    
  22152                    ///  <summary>
  22153                    ///  N:1 ppms_p atientserv ice_servic eavailabil ity
  22154                    ///  </summary>
  22155                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _patientse rviceid")]
  22156                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_patient service_se rviceavail ability")]
  22157                    publ ic VA.PPMS .Context.p pms_patien tservice p pms_patien tservice_s erviceavai lability
  22158                    {
  22159                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22160                             get
  22161                             {
  22162                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.ppm s_patients ervice>("p pms_patien tservice_s erviceavai lability",  null);
  22163                             }
  22164                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22165                             set
  22166                             {
  22167                                      this.OnP ropertyCha nging("ppm s_patients ervice_ser viceavaila bility");
  22168                                      this.Set RelatedEnt ity<VA.PPM S.Context. ppms_patie ntservice> ("ppms_pat ientservic e_servicea vailabilit y", null,  value);
  22169                                      this.OnP ropertyCha nged("ppms _patientse rvice_serv iceavailab ility");
  22170                             }
  22171                    }
  22172                    
  22173                    ///  <summary>
  22174                    ///  N:1 ppms_p roviderser vice_servi ceavailabi lity
  22175                    ///  </summary>
  22176                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providers erviceid") ]
  22177                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_provide rservice_s erviceavai lability") ]
  22178                    publ ic VA.PPMS .Context.p pms_provid erservice  ppms_provi derservice _serviceav ailability
  22179                    {
  22180                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22181                             get
  22182                             {
  22183                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.ppm s_provider service>(" ppms_provi derservice _serviceav ailability ", null);
  22184                             }
  22185                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22186                             set
  22187                             {
  22188                                      this.OnP ropertyCha nging("ppm s_provider service_se rviceavail ability");
  22189                                      this.Set RelatedEnt ity<VA.PPM S.Context. ppms_provi derservice >("ppms_pr oviderserv ice_servic eavailabil ity", null , value);
  22190                                      this.OnP ropertyCha nged("ppms _providers ervice_ser viceavaila bility");
  22191                             }
  22192                    }
  22193                    
  22194                    ///  <summary>
  22195                    ///  Constructo r for popu lating via  LINQ quer ies given  a LINQ ano nymous typ e
  22196                    ///  <param nam e="anonymo usType">LI NQ anonymo us type.</ param>
  22197                    ///  </summary>
  22198                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  22199                    publ ic ppms_se rviceavail ability(ob ject anony mousType) 
  22200                                      this()
  22201                    {
  22202                foreach  (var p in  anonymousT ype.GetTyp e().GetPro perties())
  22203                {
  22204                    var  value = p. GetValue(a nonymousTy pe, null);
  22205                    var  name = p.N ame.ToLowe r();
  22206                
  22207                    if ( name.EndsW ith("enum" ) && value .GetType() .BaseType  == typeof( System.Enu m))
  22208                    {
  22209                         value = ne w Microsof t.Xrm.Sdk. OptionSetV alue((int)  value);
  22210                         name = nam e.Remove(n ame.Length  - "enum". Length);
  22211                    }
  22212                
  22213                    swit ch (name)
  22214                    {
  22215                         case "id":
  22216                             base.I d = (Syste m.Guid)val ue;
  22217                             Attrib utes["ppms _serviceav ailability id"] = bas e.Id;
  22218                             break;
  22219                         case "ppms _serviceav ailability id":
  22220                             var id  = (System .Nullable< System.Gui d>) value;
  22221                             if(id  == null){  continue;  }
  22222                             base.I d = id.Val ue;
  22223                             Attrib utes[name]  = base.Id ;
  22224                             break;
  22225                         case "form attedvalue s":
  22226                             // Add  Support f or Formatt edValues
  22227                             Format tedValues. AddRange(( Microsoft. Xrm.Sdk.Fo rmattedVal ueCollecti on)value);
  22228                             break;
  22229                         default:
  22230                             Attrib utes[name]  = value;
  22231                             break;
  22232                    }
  22233                }
  22234                    }
  22235                    
  22236                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _dayofweek ")]
  22237                    publ ic virtual  new_DayOf Week? ppms _dayofweek Enum
  22238                    {
  22239                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22240                             get
  22241                             {
  22242                                      return ( (new_DayOf Week?)(Ent ityOptionS etEnum.Get Enum(this,  "ppms_day ofweek"))) ;
  22243                             }
  22244                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22245                             set
  22246                             {
  22247                                      ppms_day ofweek = v alue.HasVa lue ? new  Microsoft. Xrm.Sdk.Op tionSetVal ue((int)va lue) : nul l;
  22248                             }
  22249                    }
  22250                    
  22251                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  22252                    publ ic virtual  ppms_serv iceavailab ility_Stat usCode? st atuscodeEn um
  22253                    {
  22254                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22255                             get
  22256                             {
  22257                                      return ( (ppms_serv iceavailab ility_Stat usCode?)(E ntityOptio nSetEnum.G etEnum(thi s, "status code")));
  22258                             }
  22259                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22260                             set
  22261                             {
  22262                                      statusco de = value .HasValue  ? new Micr osoft.Xrm. Sdk.Option SetValue(( int)value)  : null;
  22263                             }
  22264                    }
  22265           }
  22266           
  22267           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  22268           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  22269           pu blic enum  ppms_taxon omyState
  22270           {
  22271                    
  22272                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  22273                    Acti ve = 0,
  22274                    
  22275                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  22276                    Inac tive = 1,
  22277           }
  22278           
  22279           // / <summary >
  22280           // / Taxonomi es
  22281           // / </summar y>
  22282           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  22283           [M icrosoft.X rm.Sdk.Cli ent.Entity LogicalNam eAttribute ("ppms_tax onomy")]
  22284           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  22285           pu blic parti al class p pms_taxono my : Micro soft.Xrm.S dk.Entity,  System.Co mponentMod el.INotify PropertyCh anging, Sy stem.Compo nentModel. INotifyPro pertyChang ed
  22286           {
  22287                    
  22288                    ///  <summary>
  22289                    ///  Default Co nstructor.
  22290                    ///  </summary>
  22291                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  22292                    publ ic ppms_ta xonomy() :  
  22293                                      base(Ent ityLogical Name)
  22294                    {
  22295                    }
  22296                    
  22297                    publ ic const s tring Enti tyLogicalN ame = "ppm s_taxonomy ";
  22298                    
  22299                    publ ic const i nt EntityT ypeCode =  10015;
  22300                    
  22301                    publ ic event S ystem.Comp onentModel .PropertyC hangedEven tHandler P ropertyCha nged;
  22302                    
  22303                    publ ic event S ystem.Comp onentModel .PropertyC hangingEve ntHandler  PropertyCh anging;
  22304                    
  22305                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  22306                    priv ate void O nPropertyC hanged(str ing proper tyName)
  22307                    {
  22308                             if ((t his.Proper tyChanged  != null))
  22309                             {
  22310                                      this.Pro pertyChang ed(this, n ew System. ComponentM odel.Prope rtyChanged EventArgs( propertyNa me));
  22311                             }
  22312                    }
  22313                    
  22314                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  22315                    priv ate void O nPropertyC hanging(st ring prope rtyName)
  22316                    {
  22317                             if ((t his.Proper tyChanging  != null))
  22318                             {
  22319                                      this.Pro pertyChang ing(this,  new System .Component Model.Prop ertyChangi ngEventArg s(property Name));
  22320                             }
  22321                    }
  22322                    
  22323                    ///  <summary>
  22324                    ///  Unique ide ntifier of  the user  who create d the reco rd.
  22325                    ///  </summary>
  22326                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedby")]
  22327                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedBy
  22328                    {
  22329                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22330                             get
  22331                             {
  22332                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedby");
  22333                             }
  22334                    }
  22335                    
  22336                    ///  <summary>
  22337                    ///  Date and t ime when t he record  was create d.
  22338                    ///  </summary>
  22339                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedon")]
  22340                    publ ic System. Nullable<S ystem.Date Time> Crea tedOn
  22341                    {
  22342                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22343                             get
  22344                             {
  22345                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("cre atedon");
  22346                             }
  22347                    }
  22348                    
  22349                    ///  <summary>
  22350                    ///  Unique ide ntifier of  the deleg ate user w ho created  the recor d.
  22351                    ///  </summary>
  22352                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedonbehal fby")]
  22353                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedOnBeha lfBy
  22354                    {
  22355                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22356                             get
  22357                             {
  22358                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedonbeh alfby");
  22359                             }
  22360                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22361                             set
  22362                             {
  22363                                      this.OnP ropertyCha nging("Cre atedOnBeha lfBy");
  22364                                      this.Set AttributeV alue("crea tedonbehal fby", valu e);
  22365                                      this.OnP ropertyCha nged("Crea tedOnBehal fBy");
  22366                             }
  22367                    }
  22368                    
  22369                    ///  <summary>
  22370                    ///  Sequence n umber of t he import  that creat ed this re cord.
  22371                    ///  </summary>
  22372                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("impo rtsequence number")]
  22373                    publ ic System. Nullable<i nt> Import SequenceNu mber
  22374                    {
  22375                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22376                             get
  22377                             {
  22378                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("impor tsequencen umber");
  22379                             }
  22380                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22381                             set
  22382                             {
  22383                                      this.OnP ropertyCha nging("Imp ortSequenc eNumber");
  22384                                      this.Set AttributeV alue("impo rtsequence number", v alue);
  22385                                      this.OnP ropertyCha nged("Impo rtSequence Number");
  22386                             }
  22387                    }
  22388                    
  22389                    ///  <summary>
  22390                    ///  Unique ide ntifier of  the user  who modifi ed the rec ord.
  22391                    ///  </summary>
  22392                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedby")]
  22393                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedBy
  22394                    {
  22395                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22396                             get
  22397                             {
  22398                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedby") ;
  22399                             }
  22400                    }
  22401                    
  22402                    ///  <summary>
  22403                    ///  Date and t ime when t he record  was modifi ed.
  22404                    ///  </summary>
  22405                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedon")]
  22406                    publ ic System. Nullable<S ystem.Date Time> Modi fiedOn
  22407                    {
  22408                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22409                             get
  22410                             {
  22411                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("mod ifiedon");
  22412                             }
  22413                    }
  22414                    
  22415                    ///  <summary>
  22416                    ///  Unique ide ntifier of  the deleg ate user w ho modifie d the reco rd.
  22417                    ///  </summary>
  22418                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedonbeha lfby")]
  22419                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedOnBeh alfBy
  22420                    {
  22421                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22422                             get
  22423                             {
  22424                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedonbe halfby");
  22425                             }
  22426                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22427                             set
  22428                             {
  22429                                      this.OnP ropertyCha nging("Mod ifiedOnBeh alfBy");
  22430                                      this.Set AttributeV alue("modi fiedonbeha lfby", val ue);
  22431                                      this.OnP ropertyCha nged("Modi fiedOnBeha lfBy");
  22432                             }
  22433                    }
  22434                    
  22435                    ///  <summary>
  22436                    ///  Date and t ime that t he record  was migrat ed.
  22437                    ///  </summary>
  22438                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("over riddencrea tedon")]
  22439                    publ ic System. Nullable<S ystem.Date Time> Over riddenCrea tedOn
  22440                    {
  22441                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22442                             get
  22443                             {
  22444                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ove rriddencre atedon");
  22445                             }
  22446                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22447                             set
  22448                             {
  22449                                      this.OnP ropertyCha nging("Ove rriddenCre atedOn");
  22450                                      this.Set AttributeV alue("over riddencrea tedon", va lue);
  22451                                      this.OnP ropertyCha nged("Over riddenCrea tedOn");
  22452                             }
  22453                    }
  22454                    
  22455                    ///  <summary>
  22456                    ///  Owner Id
  22457                    ///  </summary>
  22458                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owne rid")]
  22459                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own erId
  22460                    {
  22461                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22462                             get
  22463                             {
  22464                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow nerid");
  22465                             }
  22466                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22467                             set
  22468                             {
  22469                                      this.OnP ropertyCha nging("Own erId");
  22470                                      this.Set AttributeV alue("owne rid", valu e);
  22471                                      this.OnP ropertyCha nged("Owne rId");
  22472                             }
  22473                    }
  22474                    
  22475                    ///  <summary>
  22476                    ///  Unique ide ntifier fo r the busi ness unit  that owns  the record
  22477                    ///  </summary>
  22478                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngbusiness unit")]
  22479                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingBusines sUnit
  22480                    {
  22481                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22482                             get
  22483                             {
  22484                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningbusine ssunit");
  22485                             }
  22486                    }
  22487                    
  22488                    ///  <summary>
  22489                    ///  Unique ide ntifier fo r the team  that owns  the recor d.
  22490                    ///  </summary>
  22491                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngteam")]
  22492                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingTeam
  22493                    {
  22494                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22495                             get
  22496                             {
  22497                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningteam") ;
  22498                             }
  22499                    }
  22500                    
  22501                    ///  <summary>
  22502                    ///  Unique ide ntifier fo r the user  that owns  the recor d.
  22503                    ///  </summary>
  22504                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni nguser")]
  22505                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingUser
  22506                    {
  22507                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22508                             get
  22509                             {
  22510                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ninguser") ;
  22511                             }
  22512                    }
  22513                    
  22514                    ///  <summary>
  22515                    ///  Classifica tion
  22516                    ///  </summary>
  22517                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _classific ation")]
  22518                    publ ic string  ppms_class ification
  22519                    {
  22520                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22521                             get
  22522                             {
  22523                                      return t his.GetAtt ributeValu e<string>( "ppms_clas sification ");
  22524                             }
  22525                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22526                             set
  22527                             {
  22528                                      this.OnP ropertyCha nging("ppm s_classifi cation");
  22529                                      this.Set AttributeV alue("ppms _classific ation", va lue);
  22530                                      this.OnP ropertyCha nged("ppms _classific ation");
  22531                             }
  22532                    }
  22533                    
  22534                    ///  <summary>
  22535                    ///  Coded Spec ialty
  22536                    ///  </summary>
  22537                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _codedspec ialty")]
  22538                    publ ic string  ppms_coded specialty
  22539                    {
  22540                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22541                             get
  22542                             {
  22543                                      return t his.GetAtt ributeValu e<string>( "ppms_code dspecialty ");
  22544                             }
  22545                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22546                             set
  22547                             {
  22548                                      this.OnP ropertyCha nging("ppm s_codedspe cialty");
  22549                                      this.Set AttributeV alue("ppms _codedspec ialty", va lue);
  22550                                      this.OnP ropertyCha nged("ppms _codedspec ialty");
  22551                             }
  22552                    }
  22553                    
  22554                    ///  <summary>
  22555                    ///  Grouping
  22556                    ///  </summary>
  22557                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _grouping" )]
  22558                    publ ic string  ppms_group ing
  22559                    {
  22560                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22561                             get
  22562                             {
  22563                                      return t his.GetAtt ributeValu e<string>( "ppms_grou ping");
  22564                             }
  22565                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22566                             set
  22567                             {
  22568                                      this.OnP ropertyCha nging("ppm s_grouping ");
  22569                                      this.Set AttributeV alue("ppms _grouping" , value);
  22570                                      this.OnP ropertyCha nged("ppms _grouping" );
  22571                             }
  22572                    }
  22573                    
  22574                    ///  <summary>
  22575                    ///  Is Primary  Taxonomy
  22576                    ///  </summary>
  22577                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _isprimary taxonomy") ]
  22578                    publ ic System. Nullable<b ool> ppms_ isprimaryt axonomy
  22579                    {
  22580                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22581                             get
  22582                             {
  22583                                      return t his.GetAtt ributeValu e<System.N ullable<bo ol>>("ppms _isprimary taxonomy") ;
  22584                             }
  22585                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22586                             set
  22587                             {
  22588                                      this.OnP ropertyCha nging("ppm s_isprimar ytaxonomy" );
  22589                                      this.Set AttributeV alue("ppms _isprimary taxonomy",  value);
  22590                                      this.OnP ropertyCha nged("ppms _isprimary taxonomy") ;
  22591                             }
  22592                    }
  22593                    
  22594                    ///  <summary>
  22595                    /// 
  22596                    ///  </summary>
  22597                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _notes")]
  22598                    publ ic string  ppms_notes
  22599                    {
  22600                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22601                             get
  22602                             {
  22603                                      return t his.GetAtt ributeValu e<string>( "ppms_note s");
  22604                             }
  22605                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22606                             set
  22607                             {
  22608                                      this.OnP ropertyCha nging("ppm s_notes");
  22609                                      this.Set AttributeV alue("ppms _notes", v alue);
  22610                                      this.OnP ropertyCha nged("ppms _notes");
  22611                             }
  22612                    }
  22613                    
  22614                    ///  <summary>
  22615                    ///  Provider
  22616                    ///  </summary>
  22617                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _provideri did")]
  22618                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_Provider IdId
  22619                    {
  22620                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22621                             get
  22622                             {
  22623                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_provide ridid");
  22624                             }
  22625                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22626                             set
  22627                             {
  22628                                      this.OnP ropertyCha nging("ppm s_Provider IdId");
  22629                                      this.Set AttributeV alue("ppms _provideri did", valu e);
  22630                                      this.OnP ropertyCha nged("ppms _ProviderI dId");
  22631                             }
  22632                    }
  22633                    
  22634                    ///  <summary>
  22635                    ///  Specializa tion
  22636                    ///  </summary>
  22637                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _specializ ation")]
  22638                    publ ic string  ppms_speci alization
  22639                    {
  22640                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22641                             get
  22642                             {
  22643                                      return t his.GetAtt ributeValu e<string>( "ppms_spec ialization ");
  22644                             }
  22645                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22646                             set
  22647                             {
  22648                                      this.OnP ropertyCha nging("ppm s_speciali zation");
  22649                                      this.Set AttributeV alue("ppms _specializ ation", va lue);
  22650                                      this.OnP ropertyCha nged("ppms _specializ ation");
  22651                             }
  22652                    }
  22653                    
  22654                    ///  <summary>
  22655                    /// 
  22656                    ///  </summary>
  22657                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _specialty code")]
  22658                    publ ic string  ppms_Speci altyCode
  22659                    {
  22660                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22661                             get
  22662                             {
  22663                                      return t his.GetAtt ributeValu e<string>( "ppms_spec ialtycode" );
  22664                             }
  22665                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22666                             set
  22667                             {
  22668                                      this.OnP ropertyCha nging("ppm s_Specialt yCode");
  22669                                      this.Set AttributeV alue("ppms _specialty code", val ue);
  22670                                      this.OnP ropertyCha nged("ppms _Specialty Code");
  22671                             }
  22672                    }
  22673                    
  22674                    ///  <summary>
  22675                    ///  Specialty  Descriptio n
  22676                    ///  </summary>
  22677                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _specialty descriptio n")]
  22678                    publ ic string  ppms_speci altydescri ption
  22679                    {
  22680                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22681                             get
  22682                             {
  22683                                      return t his.GetAtt ributeValu e<string>( "ppms_spec ialtydescr iption");
  22684                             }
  22685                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22686                             set
  22687                             {
  22688                                      this.OnP ropertyCha nging("ppm s_specialt ydescripti on");
  22689                                      this.Set AttributeV alue("ppms _specialty descriptio n", value) ;
  22690                                      this.OnP ropertyCha nged("ppms _specialty descriptio n");
  22691                             }
  22692                    }
  22693                    
  22694                    ///  <summary>
  22695                    ///  Unique ide ntifier fo r entity i nstances
  22696                    ///  </summary>
  22697                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _taxonomyi d")]
  22698                    publ ic System. Nullable<S ystem.Guid > ppms_tax onomyId
  22699                    {
  22700                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22701                             get
  22702                             {
  22703                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("ppms_ta xonomyid") ;
  22704                             }
  22705                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22706                             set
  22707                             {
  22708                                      this.OnP ropertyCha nging("ppm s_taxonomy Id");
  22709                                      this.Set AttributeV alue("ppms _taxonomyi d", value) ;
  22710                                      if (valu e.HasValue )
  22711                                      {
  22712                                               base.Id =  value.Valu e;
  22713                                      }
  22714                                      else
  22715                                      {
  22716                                               base.Id =  System.Gui d.Empty;
  22717                                      }
  22718                                      this.OnP ropertyCha nged("ppms _taxonomyI d");
  22719                             }
  22720                    }
  22721                    
  22722                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _taxonomyi d")]
  22723                    publ ic overrid e System.G uid Id
  22724                    {
  22725                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22726                             get
  22727                             {
  22728                                      return b ase.Id;
  22729                             }
  22730                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22731                             set
  22732                             {
  22733                                      this.ppm s_taxonomy Id = value ;
  22734                             }
  22735                    }
  22736                    
  22737                    ///  <summary>
  22738                    ///  Status of  the Taxono my
  22739                    ///  </summary>
  22740                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat ecode")]
  22741                    publ ic System. Nullable<V A.PPMS.Con text.ppms_ taxonomySt ate> state code
  22742                    {
  22743                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22744                             get
  22745                             {
  22746                                      Microsof t.Xrm.Sdk. OptionSetV alue optio nSet = thi s.GetAttri buteValue< Microsoft. Xrm.Sdk.Op tionSetVal ue>("state code");
  22747                                      if ((opt ionSet !=  null))
  22748                                      {
  22749                                               return ((V A.PPMS.Con text.ppms_ taxonomySt ate)(Syste m.Enum.ToO bject(type of(VA.PPMS .Context.p pms_taxono myState),  optionSet. Value)));
  22750                                      }
  22751                                      else
  22752                                      {
  22753                                               return nul l;
  22754                                      }
  22755                             }
  22756                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22757                             set
  22758                             {
  22759                                      this.OnP ropertyCha nging("sta tecode");
  22760                                      if ((val ue == null ))
  22761                                      {
  22762                                               this.SetAt tributeVal ue("statec ode", null );
  22763                                      }
  22764                                      else
  22765                                      {
  22766                                               this.SetAt tributeVal ue("statec ode", new  Microsoft. Xrm.Sdk.Op tionSetVal ue(((int)( value))));
  22767                                      }
  22768                                      this.OnP ropertyCha nged("stat ecode");
  22769                             }
  22770                    }
  22771                    
  22772                    ///  <summary>
  22773                    ///  Reason for  the statu s of the T axonomy
  22774                    ///  </summary>
  22775                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  22776                    publ ic Microso ft.Xrm.Sdk .OptionSet Value stat uscode
  22777                    {
  22778                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22779                             get
  22780                             {
  22781                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("sta tuscode");
  22782                             }
  22783                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22784                             set
  22785                             {
  22786                                      this.OnP ropertyCha nging("sta tuscode");
  22787                                      this.Set AttributeV alue("stat uscode", v alue);
  22788                                      this.OnP ropertyCha nged("stat uscode");
  22789                             }
  22790                    }
  22791                    
  22792                    ///  <summary>
  22793                    ///  For intern al use onl y.
  22794                    ///  </summary>
  22795                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("time zoneruleve rsionnumbe r")]
  22796                    publ ic System. Nullable<i nt> TimeZo neRuleVers ionNumber
  22797                    {
  22798                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22799                             get
  22800                             {
  22801                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("timez onerulever sionnumber ");
  22802                             }
  22803                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22804                             set
  22805                             {
  22806                                      this.OnP ropertyCha nging("Tim eZoneRuleV ersionNumb er");
  22807                                      this.Set AttributeV alue("time zoneruleve rsionnumbe r", value) ;
  22808                                      this.OnP ropertyCha nged("Time ZoneRuleVe rsionNumbe r");
  22809                             }
  22810                    }
  22811                    
  22812                    ///  <summary>
  22813                    ///  Time zone  code that  was in use  when the  record was  created.
  22814                    ///  </summary>
  22815                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("utcc onversiont imezonecod e")]
  22816                    publ ic System. Nullable<i nt> UTCCon versionTim eZoneCode
  22817                    {
  22818                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22819                             get
  22820                             {
  22821                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("utcco nversionti mezonecode ");
  22822                             }
  22823                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22824                             set
  22825                             {
  22826                                      this.OnP ropertyCha nging("UTC Conversion TimeZoneCo de");
  22827                                      this.Set AttributeV alue("utcc onversiont imezonecod e", value) ;
  22828                                      this.OnP ropertyCha nged("UTCC onversionT imeZoneCod e");
  22829                             }
  22830                    }
  22831                    
  22832                    ///  <summary>
  22833                    /// 
  22834                    ///  </summary>
  22835                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("vers ionnumber" )]
  22836                    publ ic System. Nullable<l ong> Versi onNumber
  22837                    {
  22838                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22839                             get
  22840                             {
  22841                                      return t his.GetAtt ributeValu e<System.N ullable<lo ng>>("vers ionnumber" );
  22842                             }
  22843                    }
  22844                    
  22845                    ///  <summary>
  22846                    ///  1:N ppms_p pms_taxono my_ppms_pr ovidertaxo nomy
  22847                    ///  </summary>
  22848                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_ppms_ta xonomy_ppm s_provider taxonomy") ]
  22849                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_provide rtaxonomy>  ppms_ppms _taxonomy_ ppms_provi dertaxonom y
  22850                    {
  22851                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22852                             get
  22853                             {
  22854                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_provid ertaxonomy >("ppms_pp ms_taxonom y_ppms_pro vidertaxon omy", null );
  22855                             }
  22856                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22857                             set
  22858                             {
  22859                                      this.OnP ropertyCha nging("ppm s_ppms_tax onomy_ppms _providert axonomy");
  22860                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_pro vidertaxon omy>("ppms _ppms_taxo nomy_ppms_ providerta xonomy", n ull, value );
  22861                                      this.OnP ropertyCha nged("ppms _ppms_taxo nomy_ppms_ providerta xonomy");
  22862                             }
  22863                    }
  22864                    
  22865                    ///  <summary>
  22866                    ///  1:N ppms_t axonomy_pr oviderserv ice_specia lty
  22867                    ///  </summary>
  22868                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_taxonom y_provider service_sp ecialty")]
  22869                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_provide rservice>  ppms_taxon omy_provid erservice_ specialty
  22870                    {
  22871                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22872                             get
  22873                             {
  22874                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_provid erservice> ("ppms_tax onomy_prov iderservic e_specialt y", null);
  22875                             }
  22876                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22877                             set
  22878                             {
  22879                                      this.OnP ropertyCha nging("ppm s_taxonomy _providers ervice_spe cialty");
  22880                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_pro viderservi ce>("ppms_ taxonomy_p roviderser vice_speci alty", nul l, value);
  22881                                      this.OnP ropertyCha nged("ppms _taxonomy_ providerse rvice_spec ialty");
  22882                             }
  22883                    }
  22884                    
  22885                    ///  <summary>
  22886                    ///  N:1 ppms_a ccount_tax onomy
  22887                    ///  </summary>
  22888                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _provideri did")]
  22889                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_account _taxonomy" )]
  22890                    publ ic VA.PPMS .Context.A ccount ppm s_account_ taxonomy
  22891                    {
  22892                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22893                             get
  22894                             {
  22895                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.Acc ount>("ppm s_account_ taxonomy",  null);
  22896                             }
  22897                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22898                             set
  22899                             {
  22900                                      this.OnP ropertyCha nging("ppm s_account_ taxonomy") ;
  22901                                      this.Set RelatedEnt ity<VA.PPM S.Context. Account>(" ppms_accou nt_taxonom y", null,  value);
  22902                                      this.OnP ropertyCha nged("ppms _account_t axonomy");
  22903                             }
  22904                    }
  22905                    
  22906                    ///  <summary>
  22907                    ///  Constructo r for popu lating via  LINQ quer ies given  a LINQ ano nymous typ e
  22908                    ///  <param nam e="anonymo usType">LI NQ anonymo us type.</ param>
  22909                    ///  </summary>
  22910                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  22911                    publ ic ppms_ta xonomy(obj ect anonym ousType) :  
  22912                                      this()
  22913                    {
  22914                foreach  (var p in  anonymousT ype.GetTyp e().GetPro perties())
  22915                {
  22916                    var  value = p. GetValue(a nonymousTy pe, null);
  22917                    var  name = p.N ame.ToLowe r();
  22918                
  22919                    if ( name.EndsW ith("enum" ) && value .GetType() .BaseType  == typeof( System.Enu m))
  22920                    {
  22921                         value = ne w Microsof t.Xrm.Sdk. OptionSetV alue((int)  value);
  22922                         name = nam e.Remove(n ame.Length  - "enum". Length);
  22923                    }
  22924                
  22925                    swit ch (name)
  22926                    {
  22927                         case "id":
  22928                             base.I d = (Syste m.Guid)val ue;
  22929                             Attrib utes["ppms _taxonomyi d"] = base .Id;
  22930                             break;
  22931                         case "ppms _taxonomyi d":
  22932                             var id  = (System .Nullable< System.Gui d>) value;
  22933                             if(id  == null){  continue;  }
  22934                             base.I d = id.Val ue;
  22935                             Attrib utes[name]  = base.Id ;
  22936                             break;
  22937                         case "form attedvalue s":
  22938                             // Add  Support f or Formatt edValues
  22939                             Format tedValues. AddRange(( Microsoft. Xrm.Sdk.Fo rmattedVal ueCollecti on)value);
  22940                             break;
  22941                         default:
  22942                             Attrib utes[name]  = value;
  22943                             break;
  22944                    }
  22945                }
  22946                    }
  22947                    
  22948                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  22949                    publ ic virtual  ppms_taxo nomy_Statu sCode? sta tuscodeEnu m
  22950                    {
  22951                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22952                             get
  22953                             {
  22954                                      return ( (ppms_taxo nomy_Statu sCode?)(En tityOption SetEnum.Ge tEnum(this , "statusc ode")));
  22955                             }
  22956                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  22957                             set
  22958                             {
  22959                                      statusco de = value .HasValue  ? new Micr osoft.Xrm. Sdk.Option SetValue(( int)value)  : null;
  22960                             }
  22961                    }
  22962           }
  22963           
  22964           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  22965           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  22966           pu blic enum  ppms_vains titutionaf filiationS tate
  22967           {
  22968                    
  22969                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  22970                    Acti ve = 0,
  22971                    
  22972                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  22973                    Inac tive = 1,
  22974           }
  22975           
  22976           // / <summary >
  22977           // / VA Insti tution Aff iliation
  22978           // / </summar y>
  22979           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  22980           [M icrosoft.X rm.Sdk.Cli ent.Entity LogicalNam eAttribute ("ppms_vai nstitution affiliatio n")]
  22981           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  22982           pu blic parti al class p pms_vainst itutionaff iliation :  Microsoft .Xrm.Sdk.E ntity, Sys tem.Compon entModel.I NotifyProp ertyChangi ng, System .Component Model.INot ifyPropert yChanged
  22983           {
  22984                    
  22985                    ///  <summary>
  22986                    ///  Default Co nstructor.
  22987                    ///  </summary>
  22988                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  22989                    publ ic ppms_va institutio naffiliati on() : 
  22990                                      base(Ent ityLogical Name)
  22991                    {
  22992                    }
  22993                    
  22994                    publ ic const s tring Enti tyLogicalN ame = "ppm s_vainstit utionaffil iation";
  22995                    
  22996                    publ ic const i nt EntityT ypeCode =  10039;
  22997                    
  22998                    publ ic event S ystem.Comp onentModel .PropertyC hangedEven tHandler P ropertyCha nged;
  22999                    
  23000                    publ ic event S ystem.Comp onentModel .PropertyC hangingEve ntHandler  PropertyCh anging;
  23001                    
  23002                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  23003                    priv ate void O nPropertyC hanged(str ing proper tyName)
  23004                    {
  23005                             if ((t his.Proper tyChanged  != null))
  23006                             {
  23007                                      this.Pro pertyChang ed(this, n ew System. ComponentM odel.Prope rtyChanged EventArgs( propertyNa me));
  23008                             }
  23009                    }
  23010                    
  23011                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  23012                    priv ate void O nPropertyC hanging(st ring prope rtyName)
  23013                    {
  23014                             if ((t his.Proper tyChanging  != null))
  23015                             {
  23016                                      this.Pro pertyChang ing(this,  new System .Component Model.Prop ertyChangi ngEventArg s(property Name));
  23017                             }
  23018                    }
  23019                    
  23020                    ///  <summary>
  23021                    ///  Unique ide ntifier of  the user  who create d the reco rd.
  23022                    ///  </summary>
  23023                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedby")]
  23024                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedBy
  23025                    {
  23026                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23027                             get
  23028                             {
  23029                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedby");
  23030                             }
  23031                    }
  23032                    
  23033                    ///  <summary>
  23034                    ///  Date and t ime when t he record  was create d.
  23035                    ///  </summary>
  23036                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedon")]
  23037                    publ ic System. Nullable<S ystem.Date Time> Crea tedOn
  23038                    {
  23039                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23040                             get
  23041                             {
  23042                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("cre atedon");
  23043                             }
  23044                    }
  23045                    
  23046                    ///  <summary>
  23047                    ///  Unique ide ntifier of  the deleg ate user w ho created  the recor d.
  23048                    ///  </summary>
  23049                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedonbehal fby")]
  23050                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedOnBeha lfBy
  23051                    {
  23052                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23053                             get
  23054                             {
  23055                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedonbeh alfby");
  23056                             }
  23057                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23058                             set
  23059                             {
  23060                                      this.OnP ropertyCha nging("Cre atedOnBeha lfBy");
  23061                                      this.Set AttributeV alue("crea tedonbehal fby", valu e);
  23062                                      this.OnP ropertyCha nged("Crea tedOnBehal fBy");
  23063                             }
  23064                    }
  23065                    
  23066                    ///  <summary>
  23067                    ///  Sequence n umber of t he import  that creat ed this re cord.
  23068                    ///  </summary>
  23069                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("impo rtsequence number")]
  23070                    publ ic System. Nullable<i nt> Import SequenceNu mber
  23071                    {
  23072                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23073                             get
  23074                             {
  23075                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("impor tsequencen umber");
  23076                             }
  23077                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23078                             set
  23079                             {
  23080                                      this.OnP ropertyCha nging("Imp ortSequenc eNumber");
  23081                                      this.Set AttributeV alue("impo rtsequence number", v alue);
  23082                                      this.OnP ropertyCha nged("Impo rtSequence Number");
  23083                             }
  23084                    }
  23085                    
  23086                    ///  <summary>
  23087                    ///  Unique ide ntifier of  the user  who modifi ed the rec ord.
  23088                    ///  </summary>
  23089                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedby")]
  23090                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedBy
  23091                    {
  23092                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23093                             get
  23094                             {
  23095                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedby") ;
  23096                             }
  23097                    }
  23098                    
  23099                    ///  <summary>
  23100                    ///  Date and t ime when t he record  was modifi ed.
  23101                    ///  </summary>
  23102                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedon")]
  23103                    publ ic System. Nullable<S ystem.Date Time> Modi fiedOn
  23104                    {
  23105                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23106                             get
  23107                             {
  23108                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("mod ifiedon");
  23109                             }
  23110                    }
  23111                    
  23112                    ///  <summary>
  23113                    ///  Unique ide ntifier of  the deleg ate user w ho modifie d the reco rd.
  23114                    ///  </summary>
  23115                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedonbeha lfby")]
  23116                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedOnBeh alfBy
  23117                    {
  23118                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23119                             get
  23120                             {
  23121                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedonbe halfby");
  23122                             }
  23123                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23124                             set
  23125                             {
  23126                                      this.OnP ropertyCha nging("Mod ifiedOnBeh alfBy");
  23127                                      this.Set AttributeV alue("modi fiedonbeha lfby", val ue);
  23128                                      this.OnP ropertyCha nged("Modi fiedOnBeha lfBy");
  23129                             }
  23130                    }
  23131                    
  23132                    ///  <summary>
  23133                    ///  Unique ide ntifier fo r the orga nization
  23134                    ///  </summary>
  23135                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("orga nizationid ")]
  23136                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Org anizationI d
  23137                    {
  23138                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23139                             get
  23140                             {
  23141                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("or ganization id");
  23142                             }
  23143                    }
  23144                    
  23145                    ///  <summary>
  23146                    ///  Date and t ime that t he record  was migrat ed.
  23147                    ///  </summary>
  23148                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("over riddencrea tedon")]
  23149                    publ ic System. Nullable<S ystem.Date Time> Over riddenCrea tedOn
  23150                    {
  23151                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23152                             get
  23153                             {
  23154                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ove rriddencre atedon");
  23155                             }
  23156                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23157                             set
  23158                             {
  23159                                      this.OnP ropertyCha nging("Ove rriddenCre atedOn");
  23160                                      this.Set AttributeV alue("over riddencrea tedon", va lue);
  23161                                      this.OnP ropertyCha nged("Over riddenCrea tedOn");
  23162                             }
  23163                    }
  23164                    
  23165                    ///  <summary>
  23166                    ///  Unique ide ntifier fo r Care Sit e associat ed with VA  Instituti on Affilia tion.
  23167                    ///  </summary>
  23168                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _caresitei d")]
  23169                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_CareSite Id
  23170                    {
  23171                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23172                             get
  23173                             {
  23174                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_caresit eid");
  23175                             }
  23176                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23177                             set
  23178                             {
  23179                                      this.OnP ropertyCha nging("ppm s_CareSite Id");
  23180                                      this.Set AttributeV alue("ppms _caresitei d", value) ;
  23181                                      this.OnP ropertyCha nged("ppms _CareSiteI d");
  23182                             }
  23183                    }
  23184                    
  23185                    ///  <summary>
  23186                    ///  Institutio n
  23187                    ///  </summary>
  23188                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _instituti on")]
  23189                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_Institut ion
  23190                    {
  23191                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23192                             get
  23193                             {
  23194                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_institu tion");
  23195                             }
  23196                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23197                             set
  23198                             {
  23199                                      this.OnP ropertyCha nging("ppm s_Institut ion");
  23200                                      this.Set AttributeV alue("ppms _instituti on", value );
  23201                                      this.OnP ropertyCha nged("ppms _Instituti on");
  23202                             }
  23203                    }
  23204                    
  23205                    ///  <summary>
  23206                    ///  The name o f the cust om entity.
  23207                    ///  </summary>
  23208                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _name")]
  23209                    publ ic string  ppms_name
  23210                    {
  23211                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23212                             get
  23213                             {
  23214                                      return t his.GetAtt ributeValu e<string>( "ppms_name ");
  23215                             }
  23216                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23217                             set
  23218                             {
  23219                                      this.OnP ropertyCha nging("ppm s_name");
  23220                                      this.Set AttributeV alue("ppms _name", va lue);
  23221                                      this.OnP ropertyCha nged("ppms _name");
  23222                             }
  23223                    }
  23224                    
  23225                    ///  <summary>
  23226                    ///  Provider
  23227                    ///  </summary>
  23228                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _provideri d")]
  23229                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_Provider Id
  23230                    {
  23231                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23232                             get
  23233                             {
  23234                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_provide rid");
  23235                             }
  23236                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23237                             set
  23238                             {
  23239                                      this.OnP ropertyCha nging("ppm s_Provider Id");
  23240                                      this.Set AttributeV alue("ppms _provideri d", value) ;
  23241                                      this.OnP ropertyCha nged("ppms _ProviderI d");
  23242                             }
  23243                    }
  23244                    
  23245                    ///  <summary>
  23246                    ///  Unique ide ntifier fo r entity i nstances
  23247                    ///  </summary>
  23248                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _vainstitu tionaffili ationid")]
  23249                    publ ic System. Nullable<S ystem.Guid > ppms_vai nstitution affiliatio nId
  23250                    {
  23251                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23252                             get
  23253                             {
  23254                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("ppms_va institutio naffiliati onid");
  23255                             }
  23256                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23257                             set
  23258                             {
  23259                                      this.OnP ropertyCha nging("ppm s_vainstit utionaffil iationId") ;
  23260                                      this.Set AttributeV alue("ppms _vainstitu tionaffili ationid",  value);
  23261                                      if (valu e.HasValue )
  23262                                      {
  23263                                               base.Id =  value.Valu e;
  23264                                      }
  23265                                      else
  23266                                      {
  23267                                               base.Id =  System.Gui d.Empty;
  23268                                      }
  23269                                      this.OnP ropertyCha nged("ppms _vainstitu tionaffili ationId");
  23270                             }
  23271                    }
  23272                    
  23273                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _vainstitu tionaffili ationid")]
  23274                    publ ic overrid e System.G uid Id
  23275                    {
  23276                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23277                             get
  23278                             {
  23279                                      return b ase.Id;
  23280                             }
  23281                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23282                             set
  23283                             {
  23284                                      this.ppm s_vainstit utionaffil iationId =  value;
  23285                             }
  23286                    }
  23287                    
  23288                    ///  <summary>
  23289                    ///  Status of  the VA Ins titution A ffiliation
  23290                    ///  </summary>
  23291                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat ecode")]
  23292                    publ ic System. Nullable<V A.PPMS.Con text.ppms_ vainstitut ionaffilia tionState>  statecode
  23293                    {
  23294                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23295                             get
  23296                             {
  23297                                      Microsof t.Xrm.Sdk. OptionSetV alue optio nSet = thi s.GetAttri buteValue< Microsoft. Xrm.Sdk.Op tionSetVal ue>("state code");
  23298                                      if ((opt ionSet !=  null))
  23299                                      {
  23300                                               return ((V A.PPMS.Con text.ppms_ vainstitut ionaffilia tionState) (System.En um.ToObjec t(typeof(V A.PPMS.Con text.ppms_ vainstitut ionaffilia tionState) , optionSe t.Value))) ;
  23301                                      }
  23302                                      else
  23303                                      {
  23304                                               return nul l;
  23305                                      }
  23306                             }
  23307                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23308                             set
  23309                             {
  23310                                      this.OnP ropertyCha nging("sta tecode");
  23311                                      if ((val ue == null ))
  23312                                      {
  23313                                               this.SetAt tributeVal ue("statec ode", null );
  23314                                      }
  23315                                      else
  23316                                      {
  23317                                               this.SetAt tributeVal ue("statec ode", new  Microsoft. Xrm.Sdk.Op tionSetVal ue(((int)( value))));
  23318                                      }
  23319                                      this.OnP ropertyCha nged("stat ecode");
  23320                             }
  23321                    }
  23322                    
  23323                    ///  <summary>
  23324                    ///  Reason for  the statu s of the V A Institut ion Affili ation
  23325                    ///  </summary>
  23326                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  23327                    publ ic Microso ft.Xrm.Sdk .OptionSet Value stat uscode
  23328                    {
  23329                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23330                             get
  23331                             {
  23332                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("sta tuscode");
  23333                             }
  23334                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23335                             set
  23336                             {
  23337                                      this.OnP ropertyCha nging("sta tuscode");
  23338                                      this.Set AttributeV alue("stat uscode", v alue);
  23339                                      this.OnP ropertyCha nged("stat uscode");
  23340                             }
  23341                    }
  23342                    
  23343                    ///  <summary>
  23344                    ///  For intern al use onl y.
  23345                    ///  </summary>
  23346                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("time zoneruleve rsionnumbe r")]
  23347                    publ ic System. Nullable<i nt> TimeZo neRuleVers ionNumber
  23348                    {
  23349                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23350                             get
  23351                             {
  23352                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("timez onerulever sionnumber ");
  23353                             }
  23354                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23355                             set
  23356                             {
  23357                                      this.OnP ropertyCha nging("Tim eZoneRuleV ersionNumb er");
  23358                                      this.Set AttributeV alue("time zoneruleve rsionnumbe r", value) ;
  23359                                      this.OnP ropertyCha nged("Time ZoneRuleVe rsionNumbe r");
  23360                             }
  23361                    }
  23362                    
  23363                    ///  <summary>
  23364                    ///  Time zone  code that  was in use  when the  record was  created.
  23365                    ///  </summary>
  23366                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("utcc onversiont imezonecod e")]
  23367                    publ ic System. Nullable<i nt> UTCCon versionTim eZoneCode
  23368                    {
  23369                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23370                             get
  23371                             {
  23372                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("utcco nversionti mezonecode ");
  23373                             }
  23374                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23375                             set
  23376                             {
  23377                                      this.OnP ropertyCha nging("UTC Conversion TimeZoneCo de");
  23378                                      this.Set AttributeV alue("utcc onversiont imezonecod e", value) ;
  23379                                      this.OnP ropertyCha nged("UTCC onversionT imeZoneCod e");
  23380                             }
  23381                    }
  23382                    
  23383                    ///  <summary>
  23384                    /// 
  23385                    ///  </summary>
  23386                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("vers ionnumber" )]
  23387                    publ ic System. Nullable<l ong> Versi onNumber
  23388                    {
  23389                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23390                             get
  23391                             {
  23392                                      return t his.GetAtt ributeValu e<System.N ullable<lo ng>>("vers ionnumber" );
  23393                             }
  23394                    }
  23395                    
  23396                    ///  <summary>
  23397                    ///  N:1 ppms_a ccount_ppm s_vainstit utionaffil iation
  23398                    ///  </summary>
  23399                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _provideri d")]
  23400                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_account _ppms_vain stitutiona ffiliation ")]
  23401                    publ ic VA.PPMS .Context.A ccount ppm s_account_ ppms_vains titutionaf filiation
  23402                    {
  23403                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23404                             get
  23405                             {
  23406                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.Acc ount>("ppm s_account_ ppms_vains titutionaf filiation" , null);
  23407                             }
  23408                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23409                             set
  23410                             {
  23411                                      this.OnP ropertyCha nging("ppm s_account_ ppms_vains titutionaf filiation" );
  23412                                      this.Set RelatedEnt ity<VA.PPM S.Context. Account>(" ppms_accou nt_ppms_va institutio naffiliati on", null,  value);
  23413                                      this.OnP ropertyCha nged("ppms _account_p pms_vainst itutionaff iliation") ;
  23414                             }
  23415                    }
  23416                    
  23417                    ///  <summary>
  23418                    ///  N:1 ppms_c aresite_pp ms_vainsti tutionaffi liati
  23419                    ///  </summary>
  23420                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _caresitei d")]
  23421                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_caresit e_ppms_vai nstitution affiliati" )]
  23422                    publ ic VA.PPMS .Context.p pms_caresi te ppms_ca resite_ppm s_vainstit utionaffil iati
  23423                    {
  23424                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23425                             get
  23426                             {
  23427                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.ppm s_caresite >("ppms_ca resite_ppm s_vainstit utionaffil iati", nul l);
  23428                             }
  23429                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23430                             set
  23431                             {
  23432                                      this.OnP ropertyCha nging("ppm s_caresite _ppms_vain stitutiona ffiliati") ;
  23433                                      this.Set RelatedEnt ity<VA.PPM S.Context. ppms_cares ite>("ppms _caresite_ ppms_vains titutionaf filiati",  null, valu e);
  23434                                      this.OnP ropertyCha nged("ppms _caresite_ ppms_vains titutionaf filiati");
  23435                             }
  23436                    }
  23437                    
  23438                    ///  <summary>
  23439                    ///  N:1 ppms_i nstitution _vainstitu tionaffili ation_Inst itution
  23440                    ///  </summary>
  23441                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _instituti on")]
  23442                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_institu tion_vains titutionaf filiation_ Institutio n")]
  23443                    publ ic VA.PPMS .Context.p pms_instit ution ppms _instituti on_vainsti tutionaffi liation_In stitution
  23444                    {
  23445                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23446                             get
  23447                             {
  23448                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.ppm s_institut ion>("ppms _instituti on_vainsti tutionaffi liation_In stitution" , null);
  23449                             }
  23450                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23451                             set
  23452                             {
  23453                                      this.OnP ropertyCha nging("ppm s_institut ion_vainst itutionaff iliation_I nstitution ");
  23454                                      this.Set RelatedEnt ity<VA.PPM S.Context. ppms_insti tution>("p pms_instit ution_vain stitutiona ffiliation _Instituti on", null,  value);
  23455                                      this.OnP ropertyCha nged("ppms _instituti on_vainsti tutionaffi liation_In stitution" );
  23456                             }
  23457                    }
  23458                    
  23459                    ///  <summary>
  23460                    ///  Constructo r for popu lating via  LINQ quer ies given  a LINQ ano nymous typ e
  23461                    ///  <param nam e="anonymo usType">LI NQ anonymo us type.</ param>
  23462                    ///  </summary>
  23463                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  23464                    publ ic ppms_va institutio naffiliati on(object  anonymousT ype) : 
  23465                                      this()
  23466                    {
  23467                foreach  (var p in  anonymousT ype.GetTyp e().GetPro perties())
  23468                {
  23469                    var  value = p. GetValue(a nonymousTy pe, null);
  23470                    var  name = p.N ame.ToLowe r();
  23471                
  23472                    if ( name.EndsW ith("enum" ) && value .GetType() .BaseType  == typeof( System.Enu m))
  23473                    {
  23474                         value = ne w Microsof t.Xrm.Sdk. OptionSetV alue((int)  value);
  23475                         name = nam e.Remove(n ame.Length  - "enum". Length);
  23476                    }
  23477                
  23478                    swit ch (name)
  23479                    {
  23480                         case "id":
  23481                             base.I d = (Syste m.Guid)val ue;
  23482                             Attrib utes["ppms _vainstitu tionaffili ationid"]  = base.Id;
  23483                             break;
  23484                         case "ppms _vainstitu tionaffili ationid":
  23485                             var id  = (System .Nullable< System.Gui d>) value;
  23486                             if(id  == null){  continue;  }
  23487                             base.I d = id.Val ue;
  23488                             Attrib utes[name]  = base.Id ;
  23489                             break;
  23490                         case "form attedvalue s":
  23491                             // Add  Support f or Formatt edValues
  23492                             Format tedValues. AddRange(( Microsoft. Xrm.Sdk.Fo rmattedVal ueCollecti on)value);
  23493                             break;
  23494                         default:
  23495                             Attrib utes[name]  = value;
  23496                             break;
  23497                    }
  23498                }
  23499                    }
  23500                    
  23501                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  23502                    publ ic virtual  ppms_vain stitutiona ffiliation _StatusCod e? statusc odeEnum
  23503                    {
  23504                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23505                             get
  23506                             {
  23507                                      return ( (ppms_vain stitutiona ffiliation _StatusCod e?)(Entity OptionSetE num.GetEnu m(this, "s tatuscode" )));
  23508                             }
  23509                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23510                             set
  23511                             {
  23512                                      statusco de = value .HasValue  ? new Micr osoft.Xrm. Sdk.Option SetValue(( int)value)  : null;
  23513                             }
  23514                    }
  23515           }
  23516           
  23517           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  23518           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  23519           pu blic enum  ppms_vapro vidernetwo rkState
  23520           {
  23521                    
  23522                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  23523                    Acti ve = 0,
  23524                    
  23525                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  23526                    Inac tive = 1,
  23527           }
  23528           
  23529           // / <summary >
  23530           // / VA Provi der Networ ks
  23531           // / </summar y>
  23532           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  23533           [M icrosoft.X rm.Sdk.Cli ent.Entity LogicalNam eAttribute ("ppms_vap rovidernet work")]
  23534           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  23535           pu blic parti al class p pms_vaprov idernetwor k : Micros oft.Xrm.Sd k.Entity,  System.Com ponentMode l.INotifyP ropertyCha nging, Sys tem.Compon entModel.I NotifyProp ertyChange d
  23536           {
  23537                    
  23538                    ///  <summary>
  23539                    ///  Default Co nstructor.
  23540                    ///  </summary>
  23541                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  23542                    publ ic ppms_va providerne twork() : 
  23543                                      base(Ent ityLogical Name)
  23544                    {
  23545                    }
  23546                    
  23547                    publ ic const s tring Enti tyLogicalN ame = "ppm s_vaprovid ernetwork" ;
  23548                    
  23549                    publ ic const i nt EntityT ypeCode =  10018;
  23550                    
  23551                    publ ic event S ystem.Comp onentModel .PropertyC hangedEven tHandler P ropertyCha nged;
  23552                    
  23553                    publ ic event S ystem.Comp onentModel .PropertyC hangingEve ntHandler  PropertyCh anging;
  23554                    
  23555                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  23556                    priv ate void O nPropertyC hanged(str ing proper tyName)
  23557                    {
  23558                             if ((t his.Proper tyChanged  != null))
  23559                             {
  23560                                      this.Pro pertyChang ed(this, n ew System. ComponentM odel.Prope rtyChanged EventArgs( propertyNa me));
  23561                             }
  23562                    }
  23563                    
  23564                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  23565                    priv ate void O nPropertyC hanging(st ring prope rtyName)
  23566                    {
  23567                             if ((t his.Proper tyChanging  != null))
  23568                             {
  23569                                      this.Pro pertyChang ing(this,  new System .Component Model.Prop ertyChangi ngEventArg s(property Name));
  23570                             }
  23571                    }
  23572                    
  23573                    ///  <summary>
  23574                    ///  Unique ide ntifier of  the user  who create d the reco rd.
  23575                    ///  </summary>
  23576                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedby")]
  23577                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedBy
  23578                    {
  23579                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23580                             get
  23581                             {
  23582                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedby");
  23583                             }
  23584                    }
  23585                    
  23586                    ///  <summary>
  23587                    ///  Date and t ime when t he record  was create d.
  23588                    ///  </summary>
  23589                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedon")]
  23590                    publ ic System. Nullable<S ystem.Date Time> Crea tedOn
  23591                    {
  23592                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23593                             get
  23594                             {
  23595                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("cre atedon");
  23596                             }
  23597                    }
  23598                    
  23599                    ///  <summary>
  23600                    ///  Unique ide ntifier of  the deleg ate user w ho created  the recor d.
  23601                    ///  </summary>
  23602                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedonbehal fby")]
  23603                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedOnBeha lfBy
  23604                    {
  23605                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23606                             get
  23607                             {
  23608                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedonbeh alfby");
  23609                             }
  23610                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23611                             set
  23612                             {
  23613                                      this.OnP ropertyCha nging("Cre atedOnBeha lfBy");
  23614                                      this.Set AttributeV alue("crea tedonbehal fby", valu e);
  23615                                      this.OnP ropertyCha nged("Crea tedOnBehal fBy");
  23616                             }
  23617                    }
  23618                    
  23619                    ///  <summary>
  23620                    ///  Sequence n umber of t he import  that creat ed this re cord.
  23621                    ///  </summary>
  23622                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("impo rtsequence number")]
  23623                    publ ic System. Nullable<i nt> Import SequenceNu mber
  23624                    {
  23625                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23626                             get
  23627                             {
  23628                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("impor tsequencen umber");
  23629                             }
  23630                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23631                             set
  23632                             {
  23633                                      this.OnP ropertyCha nging("Imp ortSequenc eNumber");
  23634                                      this.Set AttributeV alue("impo rtsequence number", v alue);
  23635                                      this.OnP ropertyCha nged("Impo rtSequence Number");
  23636                             }
  23637                    }
  23638                    
  23639                    ///  <summary>
  23640                    ///  Unique ide ntifier of  the user  who modifi ed the rec ord.
  23641                    ///  </summary>
  23642                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedby")]
  23643                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedBy
  23644                    {
  23645                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23646                             get
  23647                             {
  23648                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedby") ;
  23649                             }
  23650                    }
  23651                    
  23652                    ///  <summary>
  23653                    ///  Date and t ime when t he record  was modifi ed.
  23654                    ///  </summary>
  23655                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedon")]
  23656                    publ ic System. Nullable<S ystem.Date Time> Modi fiedOn
  23657                    {
  23658                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23659                             get
  23660                             {
  23661                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("mod ifiedon");
  23662                             }
  23663                    }
  23664                    
  23665                    ///  <summary>
  23666                    ///  Unique ide ntifier of  the deleg ate user w ho modifie d the reco rd.
  23667                    ///  </summary>
  23668                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedonbeha lfby")]
  23669                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedOnBeh alfBy
  23670                    {
  23671                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23672                             get
  23673                             {
  23674                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedonbe halfby");
  23675                             }
  23676                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23677                             set
  23678                             {
  23679                                      this.OnP ropertyCha nging("Mod ifiedOnBeh alfBy");
  23680                                      this.Set AttributeV alue("modi fiedonbeha lfby", val ue);
  23681                                      this.OnP ropertyCha nged("Modi fiedOnBeha lfBy");
  23682                             }
  23683                    }
  23684                    
  23685                    ///  <summary>
  23686                    ///  Date and t ime that t he record  was migrat ed.
  23687                    ///  </summary>
  23688                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("over riddencrea tedon")]
  23689                    publ ic System. Nullable<S ystem.Date Time> Over riddenCrea tedOn
  23690                    {
  23691                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23692                             get
  23693                             {
  23694                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ove rriddencre atedon");
  23695                             }
  23696                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23697                             set
  23698                             {
  23699                                      this.OnP ropertyCha nging("Ove rriddenCre atedOn");
  23700                                      this.Set AttributeV alue("over riddencrea tedon", va lue);
  23701                                      this.OnP ropertyCha nged("Over riddenCrea tedOn");
  23702                             }
  23703                    }
  23704                    
  23705                    ///  <summary>
  23706                    ///  Owner Id
  23707                    ///  </summary>
  23708                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owne rid")]
  23709                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own erId
  23710                    {
  23711                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23712                             get
  23713                             {
  23714                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow nerid");
  23715                             }
  23716                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23717                             set
  23718                             {
  23719                                      this.OnP ropertyCha nging("Own erId");
  23720                                      this.Set AttributeV alue("owne rid", valu e);
  23721                                      this.OnP ropertyCha nged("Owne rId");
  23722                             }
  23723                    }
  23724                    
  23725                    ///  <summary>
  23726                    ///  Unique ide ntifier fo r the busi ness unit  that owns  the record
  23727                    ///  </summary>
  23728                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngbusiness unit")]
  23729                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingBusines sUnit
  23730                    {
  23731                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23732                             get
  23733                             {
  23734                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningbusine ssunit");
  23735                             }
  23736                    }
  23737                    
  23738                    ///  <summary>
  23739                    ///  Unique ide ntifier fo r the team  that owns  the recor d.
  23740                    ///  </summary>
  23741                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngteam")]
  23742                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingTeam
  23743                    {
  23744                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23745                             get
  23746                             {
  23747                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningteam") ;
  23748                             }
  23749                    }
  23750                    
  23751                    ///  <summary>
  23752                    ///  Unique ide ntifier fo r the user  that owns  the recor d.
  23753                    ///  </summary>
  23754                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni nguser")]
  23755                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingUser
  23756                    {
  23757                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23758                             get
  23759                             {
  23760                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ninguser") ;
  23761                             }
  23762                    }
  23763                    
  23764                    ///  <summary>
  23765                    ///  Unique ide ntifier fo r Care Sit e associat ed with VA  Provider  Network.
  23766                    ///  </summary>
  23767                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _caresitei d")]
  23768                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_CareSite Id
  23769                    {
  23770                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23771                             get
  23772                             {
  23773                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_caresit eid");
  23774                             }
  23775                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23776                             set
  23777                             {
  23778                                      this.OnP ropertyCha nging("ppm s_CareSite Id");
  23779                                      this.Set AttributeV alue("ppms _caresitei d", value) ;
  23780                                      this.OnP ropertyCha nged("ppms _CareSiteI d");
  23781                             }
  23782                    }
  23783                    
  23784                    ///  <summary>
  23785                    /// 
  23786                    ///  </summary>
  23787                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _name")]
  23788                    publ ic string  ppms_name
  23789                    {
  23790                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23791                             get
  23792                             {
  23793                                      return t his.GetAtt ributeValu e<string>( "ppms_name ");
  23794                             }
  23795                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23796                             set
  23797                             {
  23798                                      this.OnP ropertyCha nging("ppm s_name");
  23799                                      this.Set AttributeV alue("ppms _name", va lue);
  23800                                      this.OnP ropertyCha nged("ppms _name");
  23801                             }
  23802                    }
  23803                    
  23804                    ///  <summary>
  23805                    ///  Network Re gion
  23806                    ///  </summary>
  23807                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _networkre gion")]
  23808                    publ ic Microso ft.Xrm.Sdk .OptionSet Value ppms _NetworkRe gion
  23809                    {
  23810                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23811                             get
  23812                             {
  23813                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("ppm s_networkr egion");
  23814                             }
  23815                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23816                             set
  23817                             {
  23818                                      this.OnP ropertyCha nging("ppm s_NetworkR egion");
  23819                                      this.Set AttributeV alue("ppms _networkre gion", val ue);
  23820                                      this.OnP ropertyCha nged("ppms _NetworkRe gion");
  23821                             }
  23822                    }
  23823                    
  23824                    ///  <summary>
  23825                    ///  Network Ty pe
  23826                    ///  </summary>
  23827                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _networkty pe")]
  23828                    publ ic Microso ft.Xrm.Sdk .OptionSet Value ppms _networkty pe
  23829                    {
  23830                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23831                             get
  23832                             {
  23833                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("ppm s_networkt ype");
  23834                             }
  23835                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23836                             set
  23837                             {
  23838                                      this.OnP ropertyCha nging("ppm s_networkt ype");
  23839                                      this.Set AttributeV alue("ppms _networkty pe", value );
  23840                                      this.OnP ropertyCha nged("ppms _networkty pe");
  23841                             }
  23842                    }
  23843                    
  23844                    ///  <summary>
  23845                    ///  Operating  Organizati on
  23846                    ///  </summary>
  23847                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _operating organizati on")]
  23848                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_operatin gorganizat ion
  23849                    {
  23850                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23851                             get
  23852                             {
  23853                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_operati ngorganiza tion");
  23854                             }
  23855                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23856                             set
  23857                             {
  23858                                      this.OnP ropertyCha nging("ppm s_operatin gorganizat ion");
  23859                                      this.Set AttributeV alue("ppms _operating organizati on", value );
  23860                                      this.OnP ropertyCha nged("ppms _operating organizati on");
  23861                             }
  23862                    }
  23863                    
  23864                    ///  <summary>
  23865                    ///  Shorthand
  23866                    ///  </summary>
  23867                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _shorthand ")]
  23868                    publ ic string  ppms_short hand
  23869                    {
  23870                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23871                             get
  23872                             {
  23873                                      return t his.GetAtt ributeValu e<string>( "ppms_shor thand");
  23874                             }
  23875                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23876                             set
  23877                             {
  23878                                      this.OnP ropertyCha nging("ppm s_shorthan d");
  23879                                      this.Set AttributeV alue("ppms _shorthand ", value);
  23880                                      this.OnP ropertyCha nged("ppms _shorthand ");
  23881                             }
  23882                    }
  23883                    
  23884                    ///  <summary>
  23885                    ///  Unique ide ntifier fo r entity i nstances
  23886                    ///  </summary>
  23887                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _vaprovide rnetworkid ")]
  23888                    publ ic System. Nullable<S ystem.Guid > ppms_vap rovidernet workId
  23889                    {
  23890                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23891                             get
  23892                             {
  23893                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("ppms_va providerne tworkid");
  23894                             }
  23895                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23896                             set
  23897                             {
  23898                                      this.OnP ropertyCha nging("ppm s_vaprovid ernetworkI d");
  23899                                      this.Set AttributeV alue("ppms _vaprovide rnetworkid ", value);
  23900                                      if (valu e.HasValue )
  23901                                      {
  23902                                               base.Id =  value.Valu e;
  23903                                      }
  23904                                      else
  23905                                      {
  23906                                               base.Id =  System.Gui d.Empty;
  23907                                      }
  23908                                      this.OnP ropertyCha nged("ppms _vaprovide rnetworkId ");
  23909                             }
  23910                    }
  23911                    
  23912                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _vaprovide rnetworkid ")]
  23913                    publ ic overrid e System.G uid Id
  23914                    {
  23915                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23916                             get
  23917                             {
  23918                                      return b ase.Id;
  23919                             }
  23920                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23921                             set
  23922                             {
  23923                                      this.ppm s_vaprovid ernetworkI d = value;
  23924                             }
  23925                    }
  23926                    
  23927                    ///  <summary>
  23928                    ///  Status of  the VA Pro vider Netw ork
  23929                    ///  </summary>
  23930                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat ecode")]
  23931                    publ ic System. Nullable<V A.PPMS.Con text.ppms_ vaprovider networkSta te> statec ode
  23932                    {
  23933                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23934                             get
  23935                             {
  23936                                      Microsof t.Xrm.Sdk. OptionSetV alue optio nSet = thi s.GetAttri buteValue< Microsoft. Xrm.Sdk.Op tionSetVal ue>("state code");
  23937                                      if ((opt ionSet !=  null))
  23938                                      {
  23939                                               return ((V A.PPMS.Con text.ppms_ vaprovider networkSta te)(System .Enum.ToOb ject(typeo f(VA.PPMS. Context.pp ms_vaprovi dernetwork State), op tionSet.Va lue)));
  23940                                      }
  23941                                      else
  23942                                      {
  23943                                               return nul l;
  23944                                      }
  23945                             }
  23946                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23947                             set
  23948                             {
  23949                                      this.OnP ropertyCha nging("sta tecode");
  23950                                      if ((val ue == null ))
  23951                                      {
  23952                                               this.SetAt tributeVal ue("statec ode", null );
  23953                                      }
  23954                                      else
  23955                                      {
  23956                                               this.SetAt tributeVal ue("statec ode", new  Microsoft. Xrm.Sdk.Op tionSetVal ue(((int)( value))));
  23957                                      }
  23958                                      this.OnP ropertyCha nged("stat ecode");
  23959                             }
  23960                    }
  23961                    
  23962                    ///  <summary>
  23963                    ///  Reason for  the statu s of the V A Provider  Network
  23964                    ///  </summary>
  23965                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  23966                    publ ic Microso ft.Xrm.Sdk .OptionSet Value stat uscode
  23967                    {
  23968                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23969                             get
  23970                             {
  23971                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("sta tuscode");
  23972                             }
  23973                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23974                             set
  23975                             {
  23976                                      this.OnP ropertyCha nging("sta tuscode");
  23977                                      this.Set AttributeV alue("stat uscode", v alue);
  23978                                      this.OnP ropertyCha nged("stat uscode");
  23979                             }
  23980                    }
  23981                    
  23982                    ///  <summary>
  23983                    ///  For intern al use onl y.
  23984                    ///  </summary>
  23985                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("time zoneruleve rsionnumbe r")]
  23986                    publ ic System. Nullable<i nt> TimeZo neRuleVers ionNumber
  23987                    {
  23988                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23989                             get
  23990                             {
  23991                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("timez onerulever sionnumber ");
  23992                             }
  23993                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  23994                             set
  23995                             {
  23996                                      this.OnP ropertyCha nging("Tim eZoneRuleV ersionNumb er");
  23997                                      this.Set AttributeV alue("time zoneruleve rsionnumbe r", value) ;
  23998                                      this.OnP ropertyCha nged("Time ZoneRuleVe rsionNumbe r");
  23999                             }
  24000                    }
  24001                    
  24002                    ///  <summary>
  24003                    ///  Time zone  code that  was in use  when the  record was  created.
  24004                    ///  </summary>
  24005                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("utcc onversiont imezonecod e")]
  24006                    publ ic System. Nullable<i nt> UTCCon versionTim eZoneCode
  24007                    {
  24008                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24009                             get
  24010                             {
  24011                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("utcco nversionti mezonecode ");
  24012                             }
  24013                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24014                             set
  24015                             {
  24016                                      this.OnP ropertyCha nging("UTC Conversion TimeZoneCo de");
  24017                                      this.Set AttributeV alue("utcc onversiont imezonecod e", value) ;
  24018                                      this.OnP ropertyCha nged("UTCC onversionT imeZoneCod e");
  24019                             }
  24020                    }
  24021                    
  24022                    ///  <summary>
  24023                    /// 
  24024                    ///  </summary>
  24025                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("vers ionnumber" )]
  24026                    publ ic System. Nullable<l ong> Versi onNumber
  24027                    {
  24028                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24029                             get
  24030                             {
  24031                                      return t his.GetAtt ributeValu e<System.N ullable<lo ng>>("vers ionnumber" );
  24032                             }
  24033                    }
  24034                    
  24035                    ///  <summary>
  24036                    ///  1:N ppms_p pms_vaprov idernetwor k_ppms_vap roviderrel ationship_ ProviderNe twork
  24037                    ///  </summary>
  24038                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_ppms_va providerne twork_ppms _vaprovide rrelations hip_Provid erNetwork" )]
  24039                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_vaprovi derrelatio nship> ppm s_ppms_vap rovidernet work_ppms_ vaprovider relationsh ip_Provide rNetwork
  24040                    {
  24041                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24042                             get
  24043                             {
  24044                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_vaprov iderrelati onship>("p pms_ppms_v aprovidern etwork_ppm s_vaprovid errelation ship_Provi derNetwork ", null);
  24045                             }
  24046                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24047                             set
  24048                             {
  24049                                      this.OnP ropertyCha nging("ppm s_ppms_vap rovidernet work_ppms_ vaprovider relationsh ip_Provide rNetwork") ;
  24050                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_vap roviderrel ationship> ("ppms_ppm s_vaprovid ernetwork_ ppms_vapro viderrelat ionship_Pr oviderNetw ork", null , value);
  24051                                      this.OnP ropertyCha nged("ppms _ppms_vapr ovidernetw ork_ppms_v aproviderr elationshi p_Provider Network");
  24052                             }
  24053                    }
  24054                    
  24055                    ///  <summary>
  24056                    ///  1:N ppms_v aprovidern etwork_pro viderservi ce_network
  24057                    ///  </summary>
  24058                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_vaprovi dernetwork _providers ervice_net work")]
  24059                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_provide rservice>  ppms_vapro vidernetwo rk_provide rservice_n etwork
  24060                    {
  24061                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24062                             get
  24063                             {
  24064                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_provid erservice> ("ppms_vap rovidernet work_provi derservice _network",  null);
  24065                             }
  24066                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24067                             set
  24068                             {
  24069                                      this.OnP ropertyCha nging("ppm s_vaprovid ernetwork_ providerse rvice_netw ork");
  24070                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_pro viderservi ce>("ppms_ vaprovider network_pr oviderserv ice_networ k", null,  value);
  24071                                      this.OnP ropertyCha nged("ppms _vaprovide rnetwork_p roviderser vice_netwo rk");
  24072                             }
  24073                    }
  24074                    
  24075                    ///  <summary>
  24076                    ///  N:1 ppms_a ccount_vap rovidernet work_opera tingorgani zation
  24077                    ///  </summary>
  24078                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _operating organizati on")]
  24079                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_account _vaprovide rnetwork_o peratingor ganization ")]
  24080                    publ ic VA.PPMS .Context.A ccount ppm s_account_ vaprovider network_op eratingorg anization
  24081                    {
  24082                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24083                             get
  24084                             {
  24085                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.Acc ount>("ppm s_account_ vaprovider network_op eratingorg anization" , null);
  24086                             }
  24087                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24088                             set
  24089                             {
  24090                                      this.OnP ropertyCha nging("ppm s_account_ vaprovider network_op eratingorg anization" );
  24091                                      this.Set RelatedEnt ity<VA.PPM S.Context. Account>(" ppms_accou nt_vaprovi dernetwork _operating organizati on", null,  value);
  24092                                      this.OnP ropertyCha nged("ppms _account_v aprovidern etwork_ope ratingorga nization") ;
  24093                             }
  24094                    }
  24095                    
  24096                    ///  <summary>
  24097                    ///  N:1 ppms_p pms_caresi te_ppms_va providerne twork
  24098                    ///  </summary>
  24099                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _caresitei d")]
  24100                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_ppms_ca resite_ppm s_vaprovid ernetwork" )]
  24101                    publ ic VA.PPMS .Context.p pms_caresi te ppms_pp ms_caresit e_ppms_vap rovidernet work
  24102                    {
  24103                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24104                             get
  24105                             {
  24106                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.ppm s_caresite >("ppms_pp ms_caresit e_ppms_vap rovidernet work", nul l);
  24107                             }
  24108                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24109                             set
  24110                             {
  24111                                      this.OnP ropertyCha nging("ppm s_ppms_car esite_ppms _vaprovide rnetwork") ;
  24112                                      this.Set RelatedEnt ity<VA.PPM S.Context. ppms_cares ite>("ppms _ppms_care site_ppms_ vaprovider network",  null, valu e);
  24113                                      this.OnP ropertyCha nged("ppms _ppms_care site_ppms_ vaprovider network");
  24114                             }
  24115                    }
  24116                    
  24117                    ///  <summary>
  24118                    ///  Constructo r for popu lating via  LINQ quer ies given  a LINQ ano nymous typ e
  24119                    ///  <param nam e="anonymo usType">LI NQ anonymo us type.</ param>
  24120                    ///  </summary>
  24121                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  24122                    publ ic ppms_va providerne twork(obje ct anonymo usType) : 
  24123                                      this()
  24124                    {
  24125                foreach  (var p in  anonymousT ype.GetTyp e().GetPro perties())
  24126                {
  24127                    var  value = p. GetValue(a nonymousTy pe, null);
  24128                    var  name = p.N ame.ToLowe r();
  24129                
  24130                    if ( name.EndsW ith("enum" ) && value .GetType() .BaseType  == typeof( System.Enu m))
  24131                    {
  24132                         value = ne w Microsof t.Xrm.Sdk. OptionSetV alue((int)  value);
  24133                         name = nam e.Remove(n ame.Length  - "enum". Length);
  24134                    }
  24135                
  24136                    swit ch (name)
  24137                    {
  24138                         case "id":
  24139                             base.I d = (Syste m.Guid)val ue;
  24140                             Attrib utes["ppms _vaprovide rnetworkid "] = base. Id;
  24141                             break;
  24142                         case "ppms _vaprovide rnetworkid ":
  24143                             var id  = (System .Nullable< System.Gui d>) value;
  24144                             if(id  == null){  continue;  }
  24145                             base.I d = id.Val ue;
  24146                             Attrib utes[name]  = base.Id ;
  24147                             break;
  24148                         case "form attedvalue s":
  24149                             // Add  Support f or Formatt edValues
  24150                             Format tedValues. AddRange(( Microsoft. Xrm.Sdk.Fo rmattedVal ueCollecti on)value);
  24151                             break;
  24152                         default:
  24153                             Attrib utes[name]  = value;
  24154                             break;
  24155                    }
  24156                }
  24157                    }
  24158                    
  24159                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _networkre gion")]
  24160                    publ ic virtual  ppms_vapr ovidernetw ork_ppms_N etworkRegi on? ppms_N etworkRegi onEnum
  24161                    {
  24162                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24163                             get
  24164                             {
  24165                                      return ( (ppms_vapr ovidernetw ork_ppms_N etworkRegi on?)(Entit yOptionSet Enum.GetEn um(this, " ppms_netwo rkregion") ));
  24166                             }
  24167                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24168                             set
  24169                             {
  24170                                      ppms_Net workRegion  = value.H asValue ?  new Micros oft.Xrm.Sd k.OptionSe tValue((in t)value) :  null;
  24171                             }
  24172                    }
  24173                    
  24174                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _networkty pe")]
  24175                    publ ic virtual  ppms_vapr ovidernetw ork_ppms_n etworktype ? ppms_net worktypeEn um
  24176                    {
  24177                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24178                             get
  24179                             {
  24180                                      return ( (ppms_vapr ovidernetw ork_ppms_n etworktype ?)(EntityO ptionSetEn um.GetEnum (this, "pp ms_network type")));
  24181                             }
  24182                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24183                             set
  24184                             {
  24185                                      ppms_net worktype =  value.Has Value ? ne w Microsof t.Xrm.Sdk. OptionSetV alue((int) value) : n ull;
  24186                             }
  24187                    }
  24188                    
  24189                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  24190                    publ ic virtual  ppms_vapr ovidernetw ork_Status Code? stat uscodeEnum
  24191                    {
  24192                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24193                             get
  24194                             {
  24195                                      return ( (ppms_vapr ovidernetw ork_Status Code?)(Ent ityOptionS etEnum.Get Enum(this,  "statusco de")));
  24196                             }
  24197                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24198                             set
  24199                             {
  24200                                      statusco de = value .HasValue  ? new Micr osoft.Xrm. Sdk.Option SetValue(( int)value)  : null;
  24201                             }
  24202                    }
  24203           }
  24204           
  24205           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  24206           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  24207           pu blic enum  ppms_vapro viderrelat ionshipSta te
  24208           {
  24209                    
  24210                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  24211                    Acti ve = 0,
  24212                    
  24213                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  24214                    Inac tive = 1,
  24215           }
  24216           
  24217           // / <summary >
  24218           // / VA Provi der Relati onships
  24219           // / </summar y>
  24220           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  24221           [M icrosoft.X rm.Sdk.Cli ent.Entity LogicalNam eAttribute ("ppms_vap roviderrel ationship" )]
  24222           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  24223           pu blic parti al class p pms_vaprov iderrelati onship : M icrosoft.X rm.Sdk.Ent ity, Syste m.Componen tModel.INo tifyProper tyChanging , System.C omponentMo del.INotif yPropertyC hanged
  24224           {
  24225                    
  24226                    ///  <summary>
  24227                    ///  Default Co nstructor.
  24228                    ///  </summary>
  24229                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  24230                    publ ic ppms_va providerre lationship () : 
  24231                                      base(Ent ityLogical Name)
  24232                    {
  24233                    }
  24234                    
  24235                    publ ic const s tring Enti tyLogicalN ame = "ppm s_vaprovid errelation ship";
  24236                    
  24237                    publ ic const i nt EntityT ypeCode =  10017;
  24238                    
  24239                    publ ic event S ystem.Comp onentModel .PropertyC hangedEven tHandler P ropertyCha nged;
  24240                    
  24241                    publ ic event S ystem.Comp onentModel .PropertyC hangingEve ntHandler  PropertyCh anging;
  24242                    
  24243                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  24244                    priv ate void O nPropertyC hanged(str ing proper tyName)
  24245                    {
  24246                             if ((t his.Proper tyChanged  != null))
  24247                             {
  24248                                      this.Pro pertyChang ed(this, n ew System. ComponentM odel.Prope rtyChanged EventArgs( propertyNa me));
  24249                             }
  24250                    }
  24251                    
  24252                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  24253                    priv ate void O nPropertyC hanging(st ring prope rtyName)
  24254                    {
  24255                             if ((t his.Proper tyChanging  != null))
  24256                             {
  24257                                      this.Pro pertyChang ing(this,  new System .Component Model.Prop ertyChangi ngEventArg s(property Name));
  24258                             }
  24259                    }
  24260                    
  24261                    ///  <summary>
  24262                    ///  Unique ide ntifier of  the user  who create d the reco rd.
  24263                    ///  </summary>
  24264                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedby")]
  24265                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedBy
  24266                    {
  24267                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24268                             get
  24269                             {
  24270                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedby");
  24271                             }
  24272                    }
  24273                    
  24274                    ///  <summary>
  24275                    ///  Date and t ime when t he record  was create d.
  24276                    ///  </summary>
  24277                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedon")]
  24278                    publ ic System. Nullable<S ystem.Date Time> Crea tedOn
  24279                    {
  24280                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24281                             get
  24282                             {
  24283                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("cre atedon");
  24284                             }
  24285                    }
  24286                    
  24287                    ///  <summary>
  24288                    ///  Unique ide ntifier of  the deleg ate user w ho created  the recor d.
  24289                    ///  </summary>
  24290                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedonbehal fby")]
  24291                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedOnBeha lfBy
  24292                    {
  24293                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24294                             get
  24295                             {
  24296                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedonbeh alfby");
  24297                             }
  24298                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24299                             set
  24300                             {
  24301                                      this.OnP ropertyCha nging("Cre atedOnBeha lfBy");
  24302                                      this.Set AttributeV alue("crea tedonbehal fby", valu e);
  24303                                      this.OnP ropertyCha nged("Crea tedOnBehal fBy");
  24304                             }
  24305                    }
  24306                    
  24307                    ///  <summary>
  24308                    ///  Sequence n umber of t he import  that creat ed this re cord.
  24309                    ///  </summary>
  24310                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("impo rtsequence number")]
  24311                    publ ic System. Nullable<i nt> Import SequenceNu mber
  24312                    {
  24313                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24314                             get
  24315                             {
  24316                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("impor tsequencen umber");
  24317                             }
  24318                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24319                             set
  24320                             {
  24321                                      this.OnP ropertyCha nging("Imp ortSequenc eNumber");
  24322                                      this.Set AttributeV alue("impo rtsequence number", v alue);
  24323                                      this.OnP ropertyCha nged("Impo rtSequence Number");
  24324                             }
  24325                    }
  24326                    
  24327                    ///  <summary>
  24328                    ///  Unique ide ntifier of  the user  who modifi ed the rec ord.
  24329                    ///  </summary>
  24330                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedby")]
  24331                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedBy
  24332                    {
  24333                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24334                             get
  24335                             {
  24336                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedby") ;
  24337                             }
  24338                    }
  24339                    
  24340                    ///  <summary>
  24341                    ///  Date and t ime when t he record  was modifi ed.
  24342                    ///  </summary>
  24343                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedon")]
  24344                    publ ic System. Nullable<S ystem.Date Time> Modi fiedOn
  24345                    {
  24346                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24347                             get
  24348                             {
  24349                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("mod ifiedon");
  24350                             }
  24351                    }
  24352                    
  24353                    ///  <summary>
  24354                    ///  Unique ide ntifier of  the deleg ate user w ho modifie d the reco rd.
  24355                    ///  </summary>
  24356                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedonbeha lfby")]
  24357                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedOnBeh alfBy
  24358                    {
  24359                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24360                             get
  24361                             {
  24362                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedonbe halfby");
  24363                             }
  24364                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24365                             set
  24366                             {
  24367                                      this.OnP ropertyCha nging("Mod ifiedOnBeh alfBy");
  24368                                      this.Set AttributeV alue("modi fiedonbeha lfby", val ue);
  24369                                      this.OnP ropertyCha nged("Modi fiedOnBeha lfBy");
  24370                             }
  24371                    }
  24372                    
  24373                    ///  <summary>
  24374                    ///  Date and t ime that t he record  was migrat ed.
  24375                    ///  </summary>
  24376                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("over riddencrea tedon")]
  24377                    publ ic System. Nullable<S ystem.Date Time> Over riddenCrea tedOn
  24378                    {
  24379                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24380                             get
  24381                             {
  24382                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ove rriddencre atedon");
  24383                             }
  24384                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24385                             set
  24386                             {
  24387                                      this.OnP ropertyCha nging("Ove rriddenCre atedOn");
  24388                                      this.Set AttributeV alue("over riddencrea tedon", va lue);
  24389                                      this.OnP ropertyCha nged("Over riddenCrea tedOn");
  24390                             }
  24391                    }
  24392                    
  24393                    ///  <summary>
  24394                    ///  Owner Id
  24395                    ///  </summary>
  24396                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owne rid")]
  24397                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own erId
  24398                    {
  24399                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24400                             get
  24401                             {
  24402                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow nerid");
  24403                             }
  24404                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24405                             set
  24406                             {
  24407                                      this.OnP ropertyCha nging("Own erId");
  24408                                      this.Set AttributeV alue("owne rid", valu e);
  24409                                      this.OnP ropertyCha nged("Owne rId");
  24410                             }
  24411                    }
  24412                    
  24413                    ///  <summary>
  24414                    ///  Unique ide ntifier fo r the busi ness unit  that owns  the record
  24415                    ///  </summary>
  24416                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngbusiness unit")]
  24417                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingBusines sUnit
  24418                    {
  24419                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24420                             get
  24421                             {
  24422                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningbusine ssunit");
  24423                             }
  24424                    }
  24425                    
  24426                    ///  <summary>
  24427                    ///  Unique ide ntifier fo r the team  that owns  the recor d.
  24428                    ///  </summary>
  24429                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngteam")]
  24430                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingTeam
  24431                    {
  24432                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24433                             get
  24434                             {
  24435                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningteam") ;
  24436                             }
  24437                    }
  24438                    
  24439                    ///  <summary>
  24440                    ///  Unique ide ntifier fo r the user  that owns  the recor d.
  24441                    ///  </summary>
  24442                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni nguser")]
  24443                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingUser
  24444                    {
  24445                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24446                             get
  24447                             {
  24448                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ninguser") ;
  24449                             }
  24450                    }
  24451                    
  24452                    ///  <summary>
  24453                    ///  Unique ide ntifier fo r Care Sit e associat ed with VA  Provider  Relationsh ip.
  24454                    ///  </summary>
  24455                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _caresitei d")]
  24456                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_CareSite Id
  24457                    {
  24458                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24459                             get
  24460                             {
  24461                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_caresit eid");
  24462                             }
  24463                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24464                             set
  24465                             {
  24466                                      this.OnP ropertyCha nging("ppm s_CareSite Id");
  24467                                      this.Set AttributeV alue("ppms _caresitei d", value) ;
  24468                                      this.OnP ropertyCha nged("ppms _CareSiteI d");
  24469                             }
  24470                    }
  24471                    
  24472                    ///  <summary>
  24473                    ///  Credential ing
  24474                    ///  </summary>
  24475                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _credentia ling")]
  24476                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_Credenti aling
  24477                    {
  24478                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24479                             get
  24480                             {
  24481                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_credent ialing");
  24482                             }
  24483                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24484                             set
  24485                             {
  24486                                      this.OnP ropertyCha nging("ppm s_Credenti aling");
  24487                                      this.Set AttributeV alue("ppms _credentia ling", val ue);
  24488                                      this.OnP ropertyCha nged("ppms _Credentia ling");
  24489                             }
  24490                    }
  24491                    
  24492                    ///  <summary>
  24493                    /// 
  24494                    ///  </summary>
  24495                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _name")]
  24496                    publ ic string  ppms_name
  24497                    {
  24498                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24499                             get
  24500                             {
  24501                                      return t his.GetAtt ributeValu e<string>( "ppms_name ");
  24502                             }
  24503                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24504                             set
  24505                             {
  24506                                      this.OnP ropertyCha nging("ppm s_name");
  24507                                      this.Set AttributeV alue("ppms _name", va lue);
  24508                                      this.OnP ropertyCha nged("ppms _name");
  24509                             }
  24510                    }
  24511                    
  24512                    ///  <summary>
  24513                    ///  Participat ion End Da te
  24514                    ///  </summary>
  24515                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _participa tionenddat e")]
  24516                    publ ic System. Nullable<S ystem.Date Time> ppms _participa tionenddat e
  24517                    {
  24518                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24519                             get
  24520                             {
  24521                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ppm s_particip ationendda te");
  24522                             }
  24523                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24524                             set
  24525                             {
  24526                                      this.OnP ropertyCha nging("ppm s_particip ationendda te");
  24527                                      this.Set AttributeV alue("ppms _participa tionenddat e", value) ;
  24528                                      this.OnP ropertyCha nged("ppms _participa tionenddat e");
  24529                             }
  24530                    }
  24531                    
  24532                    ///  <summary>
  24533                    ///  Participat ion Start  Date
  24534                    ///  </summary>
  24535                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _participa tionstartd ate")]
  24536                    publ ic System. Nullable<S ystem.Date Time> ppms _participa tionstartd ate
  24537                    {
  24538                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24539                             get
  24540                             {
  24541                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ppm s_particip ationstart date");
  24542                             }
  24543                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24544                             set
  24545                             {
  24546                                      this.OnP ropertyCha nging("ppm s_particip ationstart date");
  24547                                      this.Set AttributeV alue("ppms _participa tionstartd ate", valu e);
  24548                                      this.OnP ropertyCha nged("ppms _participa tionstartd ate");
  24549                             }
  24550                    }
  24551                    
  24552                    ///  <summary>
  24553                    ///  Provider
  24554                    ///  </summary>
  24555                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _provideri d")]
  24556                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_Provider Id
  24557                    {
  24558                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24559                             get
  24560                             {
  24561                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_provide rid");
  24562                             }
  24563                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24564                             set
  24565                             {
  24566                                      this.OnP ropertyCha nging("ppm s_Provider Id");
  24567                                      this.Set AttributeV alue("ppms _provideri d", value) ;
  24568                                      this.OnP ropertyCha nged("ppms _ProviderI d");
  24569                             }
  24570                    }
  24571                    
  24572                    ///  <summary>
  24573                    ///  Provider N etwork
  24574                    ///  </summary>
  24575                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providern etwork")]
  24576                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_Provider Network
  24577                    {
  24578                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24579                             get
  24580                             {
  24581                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_provide rnetwork") ;
  24582                             }
  24583                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24584                             set
  24585                             {
  24586                                      this.OnP ropertyCha nging("ppm s_Provider Network");
  24587                                      this.Set AttributeV alue("ppms _providern etwork", v alue);
  24588                                      this.OnP ropertyCha nged("ppms _ProviderN etwork");
  24589                             }
  24590                    }
  24591                    
  24592                    ///  <summary>
  24593                    ///  Unique ide ntifier fo r Provider  Service a ssociated  with VA Pr ovider Rel ationship.
  24594                    ///  </summary>
  24595                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providers erviceid") ]
  24596                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_Provider ServiceId
  24597                    {
  24598                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24599                             get
  24600                             {
  24601                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_provide rserviceid ");
  24602                             }
  24603                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24604                             set
  24605                             {
  24606                                      this.OnP ropertyCha nging("ppm s_Provider ServiceId" );
  24607                                      this.Set AttributeV alue("ppms _providers erviceid",  value);
  24608                                      this.OnP ropertyCha nged("ppms _ProviderS erviceId") ;
  24609                             }
  24610                    }
  24611                    
  24612                    ///  <summary>
  24613                    ///  Relationsh ip Type
  24614                    ///  </summary>
  24615                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _relations hip")]
  24616                    publ ic Microso ft.Xrm.Sdk .OptionSet Value ppms _relations hip
  24617                    {
  24618                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24619                             get
  24620                             {
  24621                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("ppm s_relation ship");
  24622                             }
  24623                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24624                             set
  24625                             {
  24626                                      this.OnP ropertyCha nging("ppm s_relation ship");
  24627                                      this.Set AttributeV alue("ppms _relations hip", valu e);
  24628                                      this.OnP ropertyCha nged("ppms _relations hip");
  24629                             }
  24630                    }
  24631                    
  24632                    ///  <summary>
  24633                    ///  Unique ide ntifier fo r entity i nstances
  24634                    ///  </summary>
  24635                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _vaprovide rrelations hipid")]
  24636                    publ ic System. Nullable<S ystem.Guid > ppms_vap roviderrel ationshipI d
  24637                    {
  24638                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24639                             get
  24640                             {
  24641                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("ppms_va providerre lationship id");
  24642                             }
  24643                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24644                             set
  24645                             {
  24646                                      this.OnP ropertyCha nging("ppm s_vaprovid errelation shipId");
  24647                                      this.Set AttributeV alue("ppms _vaprovide rrelations hipid", va lue);
  24648                                      if (valu e.HasValue )
  24649                                      {
  24650                                               base.Id =  value.Valu e;
  24651                                      }
  24652                                      else
  24653                                      {
  24654                                               base.Id =  System.Gui d.Empty;
  24655                                      }
  24656                                      this.OnP ropertyCha nged("ppms _vaprovide rrelations hipId");
  24657                             }
  24658                    }
  24659                    
  24660                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _vaprovide rrelations hipid")]
  24661                    publ ic overrid e System.G uid Id
  24662                    {
  24663                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24664                             get
  24665                             {
  24666                                      return b ase.Id;
  24667                             }
  24668                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24669                             set
  24670                             {
  24671                                      this.ppm s_vaprovid errelation shipId = v alue;
  24672                             }
  24673                    }
  24674                    
  24675                    ///  <summary>
  24676                    ///  Status of  the VA Pro vider Rela tionship
  24677                    ///  </summary>
  24678                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat ecode")]
  24679                    publ ic System. Nullable<V A.PPMS.Con text.ppms_ vaprovider relationsh ipState> s tatecode
  24680                    {
  24681                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24682                             get
  24683                             {
  24684                                      Microsof t.Xrm.Sdk. OptionSetV alue optio nSet = thi s.GetAttri buteValue< Microsoft. Xrm.Sdk.Op tionSetVal ue>("state code");
  24685                                      if ((opt ionSet !=  null))
  24686                                      {
  24687                                               return ((V A.PPMS.Con text.ppms_ vaprovider relationsh ipState)(S ystem.Enum .ToObject( typeof(VA. PPMS.Conte xt.ppms_va providerre lationship State), op tionSet.Va lue)));
  24688                                      }
  24689                                      else
  24690                                      {
  24691                                               return nul l;
  24692                                      }
  24693                             }
  24694                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24695                             set
  24696                             {
  24697                                      this.OnP ropertyCha nging("sta tecode");
  24698                                      if ((val ue == null ))
  24699                                      {
  24700                                               this.SetAt tributeVal ue("statec ode", null );
  24701                                      }
  24702                                      else
  24703                                      {
  24704                                               this.SetAt tributeVal ue("statec ode", new  Microsoft. Xrm.Sdk.Op tionSetVal ue(((int)( value))));
  24705                                      }
  24706                                      this.OnP ropertyCha nged("stat ecode");
  24707                             }
  24708                    }
  24709                    
  24710                    ///  <summary>
  24711                    ///  Reason for  the statu s of the V A Provider  Relations hip
  24712                    ///  </summary>
  24713                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  24714                    publ ic Microso ft.Xrm.Sdk .OptionSet Value stat uscode
  24715                    {
  24716                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24717                             get
  24718                             {
  24719                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("sta tuscode");
  24720                             }
  24721                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24722                             set
  24723                             {
  24724                                      this.OnP ropertyCha nging("sta tuscode");
  24725                                      this.Set AttributeV alue("stat uscode", v alue);
  24726                                      this.OnP ropertyCha nged("stat uscode");
  24727                             }
  24728                    }
  24729                    
  24730                    ///  <summary>
  24731                    ///  For intern al use onl y.
  24732                    ///  </summary>
  24733                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("time zoneruleve rsionnumbe r")]
  24734                    publ ic System. Nullable<i nt> TimeZo neRuleVers ionNumber
  24735                    {
  24736                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24737                             get
  24738                             {
  24739                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("timez onerulever sionnumber ");
  24740                             }
  24741                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24742                             set
  24743                             {
  24744                                      this.OnP ropertyCha nging("Tim eZoneRuleV ersionNumb er");
  24745                                      this.Set AttributeV alue("time zoneruleve rsionnumbe r", value) ;
  24746                                      this.OnP ropertyCha nged("Time ZoneRuleVe rsionNumbe r");
  24747                             }
  24748                    }
  24749                    
  24750                    ///  <summary>
  24751                    ///  Time zone  code that  was in use  when the  record was  created.
  24752                    ///  </summary>
  24753                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("utcc onversiont imezonecod e")]
  24754                    publ ic System. Nullable<i nt> UTCCon versionTim eZoneCode
  24755                    {
  24756                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24757                             get
  24758                             {
  24759                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("utcco nversionti mezonecode ");
  24760                             }
  24761                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24762                             set
  24763                             {
  24764                                      this.OnP ropertyCha nging("UTC Conversion TimeZoneCo de");
  24765                                      this.Set AttributeV alue("utcc onversiont imezonecod e", value) ;
  24766                                      this.OnP ropertyCha nged("UTCC onversionT imeZoneCod e");
  24767                             }
  24768                    }
  24769                    
  24770                    ///  <summary>
  24771                    /// 
  24772                    ///  </summary>
  24773                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("vers ionnumber" )]
  24774                    publ ic System. Nullable<l ong> Versi onNumber
  24775                    {
  24776                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24777                             get
  24778                             {
  24779                                      return t his.GetAtt ributeValu e<System.N ullable<lo ng>>("vers ionnumber" );
  24780                             }
  24781                    }
  24782                    
  24783                    ///  <summary>
  24784                    ///  1:N ppms_p pms_vaprov iderrelati onship_ppm s_agreemen
  24785                    ///  </summary>
  24786                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_ppms_va providerre lationship _ppms_agre emen")]
  24787                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_agreeme ntprovider > ppms_ppm s_vaprovid errelation ship_ppms_ agreemen
  24788                    {
  24789                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24790                             get
  24791                             {
  24792                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_agreem entprovide r>("ppms_p pms_vaprov iderrelati onship_ppm s_agreemen ", null);
  24793                             }
  24794                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24795                             set
  24796                             {
  24797                                      this.OnP ropertyCha nging("ppm s_ppms_vap roviderrel ationship_ ppms_agree men");
  24798                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_agr eementprov ider>("ppm s_ppms_vap roviderrel ationship_ ppms_agree men", null , value);
  24799                                      this.OnP ropertyCha nged("ppms _ppms_vapr oviderrela tionship_p pms_agreem en");
  24800                             }
  24801                    }
  24802                    
  24803                    ///  <summary>
  24804                    ///  1:N ppms_p pms_vaprov iderrelati onship_ppm s_provider
  24805                    ///  </summary>
  24806                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_ppms_va providerre lationship _ppms_prov ider")]
  24807                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_provide rservice>  ppms_ppms_ vaprovider relationsh ip_ppms_pr ovider
  24808                    {
  24809                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24810                             get
  24811                             {
  24812                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_provid erservice> ("ppms_ppm s_vaprovid errelation ship_ppms_ provider",  null);
  24813                             }
  24814                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24815                             set
  24816                             {
  24817                                      this.OnP ropertyCha nging("ppm s_ppms_vap roviderrel ationship_ ppms_provi der");
  24818                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_pro viderservi ce>("ppms_ ppms_vapro viderrelat ionship_pp ms_provide r", null,  value);
  24819                                      this.OnP ropertyCha nged("ppms _ppms_vapr oviderrela tionship_p pms_provid er");
  24820                             }
  24821                    }
  24822                    
  24823                    ///  <summary>
  24824                    ///  N:1 ppms_a ccount_ppm s_vaprovid errelation ship
  24825                    ///  </summary>
  24826                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _provideri d")]
  24827                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_account _ppms_vapr oviderrela tionship") ]
  24828                    publ ic VA.PPMS .Context.A ccount ppm s_account_ ppms_vapro viderrelat ionship
  24829                    {
  24830                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24831                             get
  24832                             {
  24833                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.Acc ount>("ppm s_account_ ppms_vapro viderrelat ionship",  null);
  24834                             }
  24835                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24836                             set
  24837                             {
  24838                                      this.OnP ropertyCha nging("ppm s_account_ ppms_vapro viderrelat ionship");
  24839                                      this.Set RelatedEnt ity<VA.PPM S.Context. Account>(" ppms_accou nt_ppms_va providerre lationship ", null, v alue);
  24840                                      this.OnP ropertyCha nged("ppms _account_p pms_vaprov iderrelati onship");
  24841                             }
  24842                    }
  24843                    
  24844                    ///  <summary>
  24845                    ///  N:1 ppms_p pms_caresi te_ppms_va providerre lationship
  24846                    ///  </summary>
  24847                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _caresitei d")]
  24848                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_ppms_ca resite_ppm s_vaprovid errelation ship")]
  24849                    publ ic VA.PPMS .Context.p pms_caresi te ppms_pp ms_caresit e_ppms_vap roviderrel ationship
  24850                    {
  24851                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24852                             get
  24853                             {
  24854                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.ppm s_caresite >("ppms_pp ms_caresit e_ppms_vap roviderrel ationship" , null);
  24855                             }
  24856                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24857                             set
  24858                             {
  24859                                      this.OnP ropertyCha nging("ppm s_ppms_car esite_ppms _vaprovide rrelations hip");
  24860                                      this.Set RelatedEnt ity<VA.PPM S.Context. ppms_cares ite>("ppms _ppms_care site_ppms_ vaprovider relationsh ip", null,  value);
  24861                                      this.OnP ropertyCha nged("ppms _ppms_care site_ppms_ vaprovider relationsh ip");
  24862                             }
  24863                    }
  24864                    
  24865                    ///  <summary>
  24866                    ///  N:1 ppms_p pms_provid ercredenti al_ppms_va providerre lationship _Credentia ling
  24867                    ///  </summary>
  24868                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _credentia ling")]
  24869                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_ppms_pr ovidercred ential_ppm s_vaprovid errelation ship_Crede ntialing") ]
  24870                    publ ic VA.PPMS .Context.p pms_provid ercredenti al ppms_pp ms_provide rcredentia l_ppms_vap roviderrel ationship_ Credential ing
  24871                    {
  24872                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24873                             get
  24874                             {
  24875                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.ppm s_provider credential >("ppms_pp ms_provide rcredentia l_ppms_vap roviderrel ationship_ Credential ing", null );
  24876                             }
  24877                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24878                             set
  24879                             {
  24880                                      this.OnP ropertyCha nging("ppm s_ppms_pro vidercrede ntial_ppms _vaprovide rrelations hip_Creden tialing");
  24881                                      this.Set RelatedEnt ity<VA.PPM S.Context. ppms_provi dercredent ial>("ppms _ppms_prov idercreden tial_ppms_ vaprovider relationsh ip_Credent ialing", n ull, value );
  24882                                      this.OnP ropertyCha nged("ppms _ppms_prov idercreden tial_ppms_ vaprovider relationsh ip_Credent ialing");
  24883                             }
  24884                    }
  24885                    
  24886                    ///  <summary>
  24887                    ///  N:1 ppms_p pms_vaprov idernetwor k_ppms_vap roviderrel ationship_ ProviderNe twork
  24888                    ///  </summary>
  24889                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providern etwork")]
  24890                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_ppms_va providerne twork_ppms _vaprovide rrelations hip_Provid erNetwork" )]
  24891                    publ ic VA.PPMS .Context.p pms_vaprov idernetwor k ppms_ppm s_vaprovid ernetwork_ ppms_vapro viderrelat ionship_Pr oviderNetw ork
  24892                    {
  24893                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24894                             get
  24895                             {
  24896                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.ppm s_vaprovid ernetwork> ("ppms_ppm s_vaprovid ernetwork_ ppms_vapro viderrelat ionship_Pr oviderNetw ork", null );
  24897                             }
  24898                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24899                             set
  24900                             {
  24901                                      this.OnP ropertyCha nging("ppm s_ppms_vap rovidernet work_ppms_ vaprovider relationsh ip_Provide rNetwork") ;
  24902                                      this.Set RelatedEnt ity<VA.PPM S.Context. ppms_vapro vidernetwo rk>("ppms_ ppms_vapro vidernetwo rk_ppms_va providerre lationship _ProviderN etwork", n ull, value );
  24903                                      this.OnP ropertyCha nged("ppms _ppms_vapr ovidernetw ork_ppms_v aproviderr elationshi p_Provider Network");
  24904                             }
  24905                    }
  24906                    
  24907                    ///  <summary>
  24908                    ///  N:1 ppms_p roviderser vice_ppms_ vaprovider relat
  24909                    ///  </summary>
  24910                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _providers erviceid") ]
  24911                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_provide rservice_p pms_vaprov iderrelat" )]
  24912                    publ ic VA.PPMS .Context.p pms_provid erservice  ppms_provi derservice _ppms_vapr oviderrela t
  24913                    {
  24914                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24915                             get
  24916                             {
  24917                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.ppm s_provider service>(" ppms_provi derservice _ppms_vapr oviderrela t", null);
  24918                             }
  24919                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24920                             set
  24921                             {
  24922                                      this.OnP ropertyCha nging("ppm s_provider service_pp ms_vaprovi derrelat") ;
  24923                                      this.Set RelatedEnt ity<VA.PPM S.Context. ppms_provi derservice >("ppms_pr oviderserv ice_ppms_v aproviderr elat", nul l, value);
  24924                                      this.OnP ropertyCha nged("ppms _providers ervice_ppm s_vaprovid errelat");
  24925                             }
  24926                    }
  24927                    
  24928                    ///  <summary>
  24929                    ///  Constructo r for popu lating via  LINQ quer ies given  a LINQ ano nymous typ e
  24930                    ///  <param nam e="anonymo usType">LI NQ anonymo us type.</ param>
  24931                    ///  </summary>
  24932                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  24933                    publ ic ppms_va providerre lationship (object an onymousTyp e) : 
  24934                                      this()
  24935                    {
  24936                foreach  (var p in  anonymousT ype.GetTyp e().GetPro perties())
  24937                {
  24938                    var  value = p. GetValue(a nonymousTy pe, null);
  24939                    var  name = p.N ame.ToLowe r();
  24940                
  24941                    if ( name.EndsW ith("enum" ) && value .GetType() .BaseType  == typeof( System.Enu m))
  24942                    {
  24943                         value = ne w Microsof t.Xrm.Sdk. OptionSetV alue((int)  value);
  24944                         name = nam e.Remove(n ame.Length  - "enum". Length);
  24945                    }
  24946                
  24947                    swit ch (name)
  24948                    {
  24949                         case "id":
  24950                             base.I d = (Syste m.Guid)val ue;
  24951                             Attrib utes["ppms _vaprovide rrelations hipid"] =  base.Id;
  24952                             break;
  24953                         case "ppms _vaprovide rrelations hipid":
  24954                             var id  = (System .Nullable< System.Gui d>) value;
  24955                             if(id  == null){  continue;  }
  24956                             base.I d = id.Val ue;
  24957                             Attrib utes[name]  = base.Id ;
  24958                             break;
  24959                         case "form attedvalue s":
  24960                             // Add  Support f or Formatt edValues
  24961                             Format tedValues. AddRange(( Microsoft. Xrm.Sdk.Fo rmattedVal ueCollecti on)value);
  24962                             break;
  24963                         default:
  24964                             Attrib utes[name]  = value;
  24965                             break;
  24966                    }
  24967                }
  24968                    }
  24969                    
  24970                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _relations hip")]
  24971                    publ ic virtual  ppms_vapr oviderrela tionship_p pms_relati onship? pp ms_relatio nshipEnum
  24972                    {
  24973                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24974                             get
  24975                             {
  24976                                      return ( (ppms_vapr oviderrela tionship_p pms_relati onship?)(E ntityOptio nSetEnum.G etEnum(thi s, "ppms_r elationshi p")));
  24977                             }
  24978                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24979                             set
  24980                             {
  24981                                      ppms_rel ationship  = value.Ha sValue ? n ew Microso ft.Xrm.Sdk .OptionSet Value((int )value) :  null;
  24982                             }
  24983                    }
  24984                    
  24985                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  24986                    publ ic virtual  ppms_vapr oviderrela tionship_S tatusCode?  statuscod eEnum
  24987                    {
  24988                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24989                             get
  24990                             {
  24991                                      return ( (ppms_vapr oviderrela tionship_S tatusCode? )(EntityOp tionSetEnu m.GetEnum( this, "sta tuscode")) );
  24992                             }
  24993                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  24994                             set
  24995                             {
  24996                                      statusco de = value .HasValue  ? new Micr osoft.Xrm. Sdk.Option SetValue(( int)value)  : null;
  24997                             }
  24998                    }
  24999           }
  25000           
  25001           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  25002           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  25003           pu blic enum  va_facilit yState
  25004           {
  25005                    
  25006                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  25007                    Acti ve = 0,
  25008                    
  25009                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  25010                    Inac tive = 1,
  25011           }
  25012           
  25013           // / <summary >
  25014           // / Faciliti es
  25015           // / </summar y>
  25016           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  25017           [M icrosoft.X rm.Sdk.Cli ent.Entity LogicalNam eAttribute ("va_facil ity")]
  25018           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  25019           pu blic parti al class v a_facility  : Microso ft.Xrm.Sdk .Entity, S ystem.Comp onentModel .INotifyPr opertyChan ging, Syst em.Compone ntModel.IN otifyPrope rtyChanged
  25020           {
  25021                    
  25022                    ///  <summary>
  25023                    ///  Default Co nstructor.
  25024                    ///  </summary>
  25025                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  25026                    publ ic va_faci lity() : 
  25027                                      base(Ent ityLogical Name)
  25028                    {
  25029                    }
  25030                    
  25031                    publ ic const s tring Enti tyLogicalN ame = "va_ facility";
  25032                    
  25033                    publ ic const i nt EntityT ypeCode =  10049;
  25034                    
  25035                    publ ic event S ystem.Comp onentModel .PropertyC hangedEven tHandler P ropertyCha nged;
  25036                    
  25037                    publ ic event S ystem.Comp onentModel .PropertyC hangingEve ntHandler  PropertyCh anging;
  25038                    
  25039                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  25040                    priv ate void O nPropertyC hanged(str ing proper tyName)
  25041                    {
  25042                             if ((t his.Proper tyChanged  != null))
  25043                             {
  25044                                      this.Pro pertyChang ed(this, n ew System. ComponentM odel.Prope rtyChanged EventArgs( propertyNa me));
  25045                             }
  25046                    }
  25047                    
  25048                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  25049                    priv ate void O nPropertyC hanging(st ring prope rtyName)
  25050                    {
  25051                             if ((t his.Proper tyChanging  != null))
  25052                             {
  25053                                      this.Pro pertyChang ing(this,  new System .Component Model.Prop ertyChangi ngEventArg s(property Name));
  25054                             }
  25055                    }
  25056                    
  25057                    ///  <summary>
  25058                    ///  Unique ide ntifier of  the user  who create d the reco rd.
  25059                    ///  </summary>
  25060                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedby")]
  25061                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedBy
  25062                    {
  25063                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25064                             get
  25065                             {
  25066                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedby");
  25067                             }
  25068                    }
  25069                    
  25070                    ///  <summary>
  25071                    ///  Date and t ime when t he record  was create d.
  25072                    ///  </summary>
  25073                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedon")]
  25074                    publ ic System. Nullable<S ystem.Date Time> Crea tedOn
  25075                    {
  25076                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25077                             get
  25078                             {
  25079                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("cre atedon");
  25080                             }
  25081                    }
  25082                    
  25083                    ///  <summary>
  25084                    ///  Unique ide ntifier of  the deleg ate user w ho created  the recor d.
  25085                    ///  </summary>
  25086                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedonbehal fby")]
  25087                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedOnBeha lfBy
  25088                    {
  25089                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25090                             get
  25091                             {
  25092                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedonbeh alfby");
  25093                             }
  25094                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25095                             set
  25096                             {
  25097                                      this.OnP ropertyCha nging("Cre atedOnBeha lfBy");
  25098                                      this.Set AttributeV alue("crea tedonbehal fby", valu e);
  25099                                      this.OnP ropertyCha nged("Crea tedOnBehal fBy");
  25100                             }
  25101                    }
  25102                    
  25103                    ///  <summary>
  25104                    ///  Sequence n umber of t he import  that creat ed this re cord.
  25105                    ///  </summary>
  25106                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("impo rtsequence number")]
  25107                    publ ic System. Nullable<i nt> Import SequenceNu mber
  25108                    {
  25109                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25110                             get
  25111                             {
  25112                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("impor tsequencen umber");
  25113                             }
  25114                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25115                             set
  25116                             {
  25117                                      this.OnP ropertyCha nging("Imp ortSequenc eNumber");
  25118                                      this.Set AttributeV alue("impo rtsequence number", v alue);
  25119                                      this.OnP ropertyCha nged("Impo rtSequence Number");
  25120                             }
  25121                    }
  25122                    
  25123                    ///  <summary>
  25124                    ///  Unique ide ntifier of  the user  who modifi ed the rec ord.
  25125                    ///  </summary>
  25126                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedby")]
  25127                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedBy
  25128                    {
  25129                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25130                             get
  25131                             {
  25132                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedby") ;
  25133                             }
  25134                    }
  25135                    
  25136                    ///  <summary>
  25137                    ///  Date and t ime when t he record  was modifi ed.
  25138                    ///  </summary>
  25139                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedon")]
  25140                    publ ic System. Nullable<S ystem.Date Time> Modi fiedOn
  25141                    {
  25142                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25143                             get
  25144                             {
  25145                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("mod ifiedon");
  25146                             }
  25147                    }
  25148                    
  25149                    ///  <summary>
  25150                    ///  Unique ide ntifier of  the deleg ate user w ho modifie d the reco rd.
  25151                    ///  </summary>
  25152                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedonbeha lfby")]
  25153                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedOnBeh alfBy
  25154                    {
  25155                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25156                             get
  25157                             {
  25158                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedonbe halfby");
  25159                             }
  25160                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25161                             set
  25162                             {
  25163                                      this.OnP ropertyCha nging("Mod ifiedOnBeh alfBy");
  25164                                      this.Set AttributeV alue("modi fiedonbeha lfby", val ue);
  25165                                      this.OnP ropertyCha nged("Modi fiedOnBeha lfBy");
  25166                             }
  25167                    }
  25168                    
  25169                    ///  <summary>
  25170                    ///  Date and t ime that t he record  was migrat ed.
  25171                    ///  </summary>
  25172                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("over riddencrea tedon")]
  25173                    publ ic System. Nullable<S ystem.Date Time> Over riddenCrea tedOn
  25174                    {
  25175                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25176                             get
  25177                             {
  25178                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ove rriddencre atedon");
  25179                             }
  25180                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25181                             set
  25182                             {
  25183                                      this.OnP ropertyCha nging("Ove rriddenCre atedOn");
  25184                                      this.Set AttributeV alue("over riddencrea tedon", va lue);
  25185                                      this.OnP ropertyCha nged("Over riddenCrea tedOn");
  25186                             }
  25187                    }
  25188                    
  25189                    ///  <summary>
  25190                    ///  Owner Id
  25191                    ///  </summary>
  25192                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owne rid")]
  25193                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own erId
  25194                    {
  25195                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25196                             get
  25197                             {
  25198                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow nerid");
  25199                             }
  25200                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25201                             set
  25202                             {
  25203                                      this.OnP ropertyCha nging("Own erId");
  25204                                      this.Set AttributeV alue("owne rid", valu e);
  25205                                      this.OnP ropertyCha nged("Owne rId");
  25206                             }
  25207                    }
  25208                    
  25209                    ///  <summary>
  25210                    ///  Unique ide ntifier fo r the busi ness unit  that owns  the record
  25211                    ///  </summary>
  25212                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngbusiness unit")]
  25213                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingBusines sUnit
  25214                    {
  25215                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25216                             get
  25217                             {
  25218                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningbusine ssunit");
  25219                             }
  25220                    }
  25221                    
  25222                    ///  <summary>
  25223                    ///  Unique ide ntifier fo r the team  that owns  the recor d.
  25224                    ///  </summary>
  25225                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngteam")]
  25226                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingTeam
  25227                    {
  25228                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25229                             get
  25230                             {
  25231                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningteam") ;
  25232                             }
  25233                    }
  25234                    
  25235                    ///  <summary>
  25236                    ///  Unique ide ntifier fo r the user  that owns  the recor d.
  25237                    ///  </summary>
  25238                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni nguser")]
  25239                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingUser
  25240                    {
  25241                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25242                             get
  25243                             {
  25244                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ninguser") ;
  25245                             }
  25246                    }
  25247                    
  25248                    ///  <summary>
  25249                    /// 
  25250                    ///  </summary>
  25251                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _address1" )]
  25252                    publ ic string  ppms_Addre ss1
  25253                    {
  25254                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25255                             get
  25256                             {
  25257                                      return t his.GetAtt ributeValu e<string>( "ppms_addr ess1");
  25258                             }
  25259                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25260                             set
  25261                             {
  25262                                      this.OnP ropertyCha nging("ppm s_Address1 ");
  25263                                      this.Set AttributeV alue("ppms _address1" , value);
  25264                                      this.OnP ropertyCha nged("ppms _Address1" );
  25265                             }
  25266                    }
  25267                    
  25268                    ///  <summary>
  25269                    /// 
  25270                    ///  </summary>
  25271                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _address2" )]
  25272                    publ ic string  ppms_Addre ss2
  25273                    {
  25274                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25275                             get
  25276                             {
  25277                                      return t his.GetAtt ributeValu e<string>( "ppms_addr ess2");
  25278                             }
  25279                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25280                             set
  25281                             {
  25282                                      this.OnP ropertyCha nging("ppm s_Address2 ");
  25283                                      this.Set AttributeV alue("ppms _address2" , value);
  25284                                      this.OnP ropertyCha nged("ppms _Address2" );
  25285                             }
  25286                    }
  25287                    
  25288                    ///  <summary>
  25289                    /// 
  25290                    ///  </summary>
  25291                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _address3" )]
  25292                    publ ic string  ppms_Addre ss3
  25293                    {
  25294                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25295                             get
  25296                             {
  25297                                      return t his.GetAtt ributeValu e<string>( "ppms_addr ess3");
  25298                             }
  25299                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25300                             set
  25301                             {
  25302                                      this.OnP ropertyCha nging("ppm s_Address3 ");
  25303                                      this.Set AttributeV alue("ppms _address3" , value);
  25304                                      this.OnP ropertyCha nged("ppms _Address3" );
  25305                             }
  25306                    }
  25307                    
  25308                    ///  <summary>
  25309                    /// 
  25310                    ///  </summary>
  25311                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _facility" )]
  25312                    publ ic string  ppms_Facil ity
  25313                    {
  25314                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25315                             get
  25316                             {
  25317                                      return t his.GetAtt ributeValu e<string>( "ppms_faci lity");
  25318                             }
  25319                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25320                             set
  25321                             {
  25322                                      this.OnP ropertyCha nging("ppm s_Facility ");
  25323                                      this.Set AttributeV alue("ppms _facility" , value);
  25324                                      this.OnP ropertyCha nged("ppms _Facility" );
  25325                             }
  25326                    }
  25327                    
  25328                    ///  <summary>
  25329                    /// 
  25330                    ///  </summary>
  25331                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _mainsitep hone")]
  25332                    publ ic string  ppms_mains itephone
  25333                    {
  25334                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25335                             get
  25336                             {
  25337                                      return t his.GetAtt ributeValu e<string>( "ppms_main sitephone" );
  25338                             }
  25339                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25340                             set
  25341                             {
  25342                                      this.OnP ropertyCha nging("ppm s_mainsite phone");
  25343                                      this.Set AttributeV alue("ppms _mainsitep hone", val ue);
  25344                                      this.OnP ropertyCha nged("ppms _mainsitep hone");
  25345                             }
  25346                    }
  25347                    
  25348                    ///  <summary>
  25349                    /// 
  25350                    ///  </summary>
  25351                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _parentsta tion")]
  25352                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_ParentSt ation
  25353                    {
  25354                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25355                             get
  25356                             {
  25357                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_parents tation");
  25358                             }
  25359                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25360                             set
  25361                             {
  25362                                      this.OnP ropertyCha nging("ppm s_ParentSt ation");
  25363                                      this.Set AttributeV alue("ppms _parentsta tion", val ue);
  25364                                      this.OnP ropertyCha nged("ppms _ParentSta tion");
  25365                             }
  25366                    }
  25367                    
  25368                    ///  <summary>
  25369                    /// 
  25370                    ///  </summary>
  25371                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _regionnam e")]
  25372                    publ ic string  ppms_regio nname
  25373                    {
  25374                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25375                             get
  25376                             {
  25377                                      return t his.GetAtt ributeValu e<string>( "ppms_regi onname");
  25378                             }
  25379                    }
  25380                    
  25381                    ///  <summary>
  25382                    /// 
  25383                    ///  </summary>
  25384                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _stationna me")]
  25385                    publ ic string  ppms_Stati onName
  25386                    {
  25387                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25388                             get
  25389                             {
  25390                                      return t his.GetAtt ributeValu e<string>( "ppms_stat ionname");
  25391                             }
  25392                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25393                             set
  25394                             {
  25395                                      this.OnP ropertyCha nging("ppm s_StationN ame");
  25396                                      this.Set AttributeV alue("ppms _stationna me", value );
  25397                                      this.OnP ropertyCha nged("ppms _StationNa me");
  25398                             }
  25399                    }
  25400                    
  25401                    ///  <summary>
  25402                    ///  Status of  the Facili ty
  25403                    ///  </summary>
  25404                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat ecode")]
  25405                    publ ic System. Nullable<V A.PPMS.Con text.va_fa cilityStat e> stateco de
  25406                    {
  25407                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25408                             get
  25409                             {
  25410                                      Microsof t.Xrm.Sdk. OptionSetV alue optio nSet = thi s.GetAttri buteValue< Microsoft. Xrm.Sdk.Op tionSetVal ue>("state code");
  25411                                      if ((opt ionSet !=  null))
  25412                                      {
  25413                                               return ((V A.PPMS.Con text.va_fa cilityStat e)(System. Enum.ToObj ect(typeof (VA.PPMS.C ontext.va_ facilitySt ate), opti onSet.Valu e)));
  25414                                      }
  25415                                      else
  25416                                      {
  25417                                               return nul l;
  25418                                      }
  25419                             }
  25420                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25421                             set
  25422                             {
  25423                                      this.OnP ropertyCha nging("sta tecode");
  25424                                      if ((val ue == null ))
  25425                                      {
  25426                                               this.SetAt tributeVal ue("statec ode", null );
  25427                                      }
  25428                                      else
  25429                                      {
  25430                                               this.SetAt tributeVal ue("statec ode", new  Microsoft. Xrm.Sdk.Op tionSetVal ue(((int)( value))));
  25431                                      }
  25432                                      this.OnP ropertyCha nged("stat ecode");
  25433                             }
  25434                    }
  25435                    
  25436                    ///  <summary>
  25437                    ///  Reason for  the statu s of the F acility
  25438                    ///  </summary>
  25439                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  25440                    publ ic Microso ft.Xrm.Sdk .OptionSet Value stat uscode
  25441                    {
  25442                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25443                             get
  25444                             {
  25445                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("sta tuscode");
  25446                             }
  25447                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25448                             set
  25449                             {
  25450                                      this.OnP ropertyCha nging("sta tuscode");
  25451                                      this.Set AttributeV alue("stat uscode", v alue);
  25452                                      this.OnP ropertyCha nged("stat uscode");
  25453                             }
  25454                    }
  25455                    
  25456                    ///  <summary>
  25457                    ///  For intern al use onl y.
  25458                    ///  </summary>
  25459                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("time zoneruleve rsionnumbe r")]
  25460                    publ ic System. Nullable<i nt> TimeZo neRuleVers ionNumber
  25461                    {
  25462                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25463                             get
  25464                             {
  25465                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("timez onerulever sionnumber ");
  25466                             }
  25467                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25468                             set
  25469                             {
  25470                                      this.OnP ropertyCha nging("Tim eZoneRuleV ersionNumb er");
  25471                                      this.Set AttributeV alue("time zoneruleve rsionnumbe r", value) ;
  25472                                      this.OnP ropertyCha nged("Time ZoneRuleVe rsionNumbe r");
  25473                             }
  25474                    }
  25475                    
  25476                    ///  <summary>
  25477                    ///  Time zone  code that  was in use  when the  record was  created.
  25478                    ///  </summary>
  25479                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("utcc onversiont imezonecod e")]
  25480                    publ ic System. Nullable<i nt> UTCCon versionTim eZoneCode
  25481                    {
  25482                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25483                             get
  25484                             {
  25485                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("utcco nversionti mezonecode ");
  25486                             }
  25487                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25488                             set
  25489                             {
  25490                                      this.OnP ropertyCha nging("UTC Conversion TimeZoneCo de");
  25491                                      this.Set AttributeV alue("utcc onversiont imezonecod e", value) ;
  25492                                      this.OnP ropertyCha nged("UTCC onversionT imeZoneCod e");
  25493                             }
  25494                    }
  25495                    
  25496                    ///  <summary>
  25497                    /// 
  25498                    ///  </summary>
  25499                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("va_c ity")]
  25500                    publ ic string  va_city
  25501                    {
  25502                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25503                             get
  25504                             {
  25505                                      return t his.GetAtt ributeValu e<string>( "va_city") ;
  25506                             }
  25507                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25508                             set
  25509                             {
  25510                                      this.OnP ropertyCha nging("va_ city");
  25511                                      this.Set AttributeV alue("va_c ity", valu e);
  25512                                      this.OnP ropertyCha nged("va_c ity");
  25513                             }
  25514                    }
  25515                    
  25516                    ///  <summary>
  25517                    ///  Unique ide ntifier fo r entity i nstances
  25518                    ///  </summary>
  25519                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("va_f acilityid" )]
  25520                    publ ic System. Nullable<S ystem.Guid > va_facil ityId
  25521                    {
  25522                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25523                             get
  25524                             {
  25525                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("va_faci lityid");
  25526                             }
  25527                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25528                             set
  25529                             {
  25530                                      this.OnP ropertyCha nging("va_ facilityId ");
  25531                                      this.Set AttributeV alue("va_f acilityid" , value);
  25532                                      if (valu e.HasValue )
  25533                                      {
  25534                                               base.Id =  value.Valu e;
  25535                                      }
  25536                                      else
  25537                                      {
  25538                                               base.Id =  System.Gui d.Empty;
  25539                                      }
  25540                                      this.OnP ropertyCha nged("va_f acilityId" );
  25541                             }
  25542                    }
  25543                    
  25544                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("va_f acilityid" )]
  25545                    publ ic overrid e System.G uid Id
  25546                    {
  25547                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25548                             get
  25549                             {
  25550                                      return b ase.Id;
  25551                             }
  25552                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25553                             set
  25554                             {
  25555                                      this.va_ facilityId  = value;
  25556                             }
  25557                    }
  25558                    
  25559                    ///  <summary>
  25560                    /// 
  25561                    ///  </summary>
  25562                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("va_f acilitytyp e")]
  25563                    publ ic Microso ft.Xrm.Sdk .OptionSet Value va_f acilitytyp e
  25564                    {
  25565                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25566                             get
  25567                             {
  25568                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("va_ facilityty pe");
  25569                             }
  25570                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25571                             set
  25572                             {
  25573                                      this.OnP ropertyCha nging("va_ facilityty pe");
  25574                                      this.Set AttributeV alue("va_f acilitytyp e", value) ;
  25575                                      this.OnP ropertyCha nged("va_f acilitytyp e");
  25576                             }
  25577                    }
  25578                    
  25579                    ///  <summary>
  25580                    /// 
  25581                    ///  </summary>
  25582                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("va_n ame")]
  25583                    publ ic string  va_name
  25584                    {
  25585                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25586                             get
  25587                             {
  25588                                      return t his.GetAtt ributeValu e<string>( "va_name") ;
  25589                             }
  25590                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25591                             set
  25592                             {
  25593                                      this.OnP ropertyCha nging("va_ name");
  25594                                      this.Set AttributeV alue("va_n ame", valu e);
  25595                                      this.OnP ropertyCha nged("va_n ame");
  25596                             }
  25597                    }
  25598                    
  25599                    ///  <summary>
  25600                    /// 
  25601                    ///  </summary>
  25602                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("va_r egionid")]
  25603                    publ ic Microso ft.Xrm.Sdk .EntityRef erence va_ regionid
  25604                    {
  25605                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25606                             get
  25607                             {
  25608                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("va _regionid" );
  25609                             }
  25610                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25611                             set
  25612                             {
  25613                                      this.OnP ropertyCha nging("va_ regionid") ;
  25614                                      this.Set AttributeV alue("va_r egionid",  value);
  25615                                      this.OnP ropertyCha nged("va_r egionid");
  25616                             }
  25617                    }
  25618                    
  25619                    ///  <summary>
  25620                    /// 
  25621                    ///  </summary>
  25622                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("va_s tate")]
  25623                    publ ic string  va_state
  25624                    {
  25625                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25626                             get
  25627                             {
  25628                                      return t his.GetAtt ributeValu e<string>( "va_state" );
  25629                             }
  25630                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25631                             set
  25632                             {
  25633                                      this.OnP ropertyCha nging("va_ state");
  25634                                      this.Set AttributeV alue("va_s tate", val ue);
  25635                                      this.OnP ropertyCha nged("va_s tate");
  25636                             }
  25637                    }
  25638                    
  25639                    ///  <summary>
  25640                    /// 
  25641                    ///  </summary>
  25642                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("va_s tationnumb er")]
  25643                    publ ic string  va_station number
  25644                    {
  25645                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25646                             get
  25647                             {
  25648                                      return t his.GetAtt ributeValu e<string>( "va_statio nnumber");
  25649                             }
  25650                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25651                             set
  25652                             {
  25653                                      this.OnP ropertyCha nging("va_ stationnum ber");
  25654                                      this.Set AttributeV alue("va_s tationnumb er", value );
  25655                                      this.OnP ropertyCha nged("va_s tationnumb er");
  25656                             }
  25657                    }
  25658                    
  25659                    ///  <summary>
  25660                    /// 
  25661                    ///  </summary>
  25662                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("va_v isnid")]
  25663                    publ ic Microso ft.Xrm.Sdk .EntityRef erence va_ visnid
  25664                    {
  25665                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25666                             get
  25667                             {
  25668                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("va _visnid");
  25669                             }
  25670                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25671                             set
  25672                             {
  25673                                      this.OnP ropertyCha nging("va_ visnid");
  25674                                      this.Set AttributeV alue("va_v isnid", va lue);
  25675                                      this.OnP ropertyCha nged("va_v isnid");
  25676                             }
  25677                    }
  25678                    
  25679                    ///  <summary>
  25680                    /// 
  25681                    ///  </summary>
  25682                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("va_z ipcode")]
  25683                    publ ic string  va_zipcode
  25684                    {
  25685                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25686                             get
  25687                             {
  25688                                      return t his.GetAtt ributeValu e<string>( "va_zipcod e");
  25689                             }
  25690                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25691                             set
  25692                             {
  25693                                      this.OnP ropertyCha nging("va_ zipcode");
  25694                                      this.Set AttributeV alue("va_z ipcode", v alue);
  25695                                      this.OnP ropertyCha nged("va_z ipcode");
  25696                             }
  25697                    }
  25698                    
  25699                    ///  <summary>
  25700                    /// 
  25701                    ///  </summary>
  25702                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("vers ionnumber" )]
  25703                    publ ic System. Nullable<l ong> Versi onNumber
  25704                    {
  25705                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25706                             get
  25707                             {
  25708                                      return t his.GetAtt ributeValu e<System.N ullable<lo ng>>("vers ionnumber" );
  25709                             }
  25710                    }
  25711                    
  25712                    ///  <summary>
  25713                    ///  1:N ppms_v a_facility _account_f acilityid
  25714                    ///  </summary>
  25715                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_va_faci lity_accou nt_facilit yid")]
  25716                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.Ac count> ppm s_va_facil ity_accoun t_facility id
  25717                    {
  25718                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25719                             get
  25720                             {
  25721                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.A ccount>("p pms_va_fac ility_acco unt_facili tyid", nul l);
  25722                             }
  25723                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25724                             set
  25725                             {
  25726                                      this.OnP ropertyCha nging("ppm s_va_facil ity_accoun t_facility id");
  25727                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.Account> ("ppms_va_ facility_a ccount_fac ilityid",  null, valu e);
  25728                                      this.OnP ropertyCha nged("ppms _va_facili ty_account _facilityi d");
  25729                             }
  25730                    }
  25731                    
  25732                    ///  <summary>
  25733                    ///  1:N ppms_v a_facility _ParentSta tion
  25734                    ///  </summary>
  25735                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_va_faci lity_Paren tStation",  Microsoft .Xrm.Sdk.E ntityRole. Referenced )]
  25736                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.va _facility>  Reference dppms_va_f acility_Pa rentStatio n
  25737                    {
  25738                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25739                             get
  25740                             {
  25741                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.v a_facility >("ppms_va _facility_ ParentStat ion", Micr osoft.Xrm. Sdk.Entity Role.Refer enced);
  25742                             }
  25743                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25744                             set
  25745                             {
  25746                                      this.OnP ropertyCha nging("Ref erencedppm s_va_facil ity_Parent Station");
  25747                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.va_facil ity>("ppms _va_facili ty_ParentS tation", M icrosoft.X rm.Sdk.Ent ityRole.Re ferenced,  value);
  25748                                      this.OnP ropertyCha nged("Refe rencedppms _va_facili ty_ParentS tation");
  25749                             }
  25750                    }
  25751                    
  25752                    ///  <summary>
  25753                    ///  1:N ppms_v a_facility _ppms_care site_facil ityid
  25754                    ///  </summary>
  25755                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_va_faci lity_ppms_ caresite_f acilityid" )]
  25756                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_caresit e> ppms_va _facility_ ppms_cares ite_facili tyid
  25757                    {
  25758                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25759                             get
  25760                             {
  25761                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_caresi te>("ppms_ va_facilit y_ppms_car esite_faci lityid", n ull);
  25762                             }
  25763                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25764                             set
  25765                             {
  25766                                      this.OnP ropertyCha nging("ppm s_va_facil ity_ppms_c aresite_fa cilityid") ;
  25767                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_car esite>("pp ms_va_faci lity_ppms_ caresite_f acilityid" , null, va lue);
  25768                                      this.OnP ropertyCha nged("ppms _va_facili ty_ppms_ca resite_fac ilityid");
  25769                             }
  25770                    }
  25771                    
  25772                    ///  <summary>
  25773                    ///  1:N ppms_v a_facility _ppms_prov ideragreem ent_Assign edFacility
  25774                    ///  </summary>
  25775                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_va_faci lity_ppms_ providerag reement_As signedFaci lity")]
  25776                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_provide ragreement > ppms_va_ facility_p pms_provid eragreemen t_Assigned Facility
  25777                    {
  25778                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25779                             get
  25780                             {
  25781                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_provid eragreemen t>("ppms_v a_facility _ppms_prov ideragreem ent_Assign edFacility ", null);
  25782                             }
  25783                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25784                             set
  25785                             {
  25786                                      this.OnP ropertyCha nging("ppm s_va_facil ity_ppms_p rovideragr eement_Ass ignedFacil ity");
  25787                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_pro videragree ment>("ppm s_va_facil ity_ppms_p rovideragr eement_Ass ignedFacil ity", null , value);
  25788                                      this.OnP ropertyCha nged("ppms _va_facili ty_ppms_pr ovideragre ement_Assi gnedFacili ty");
  25789                             }
  25790                    }
  25791                    
  25792                    ///  <summary>
  25793                    ///  N:1 ppms_v a_facility _ParentSta tion
  25794                    ///  </summary>
  25795                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _parentsta tion")]
  25796                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_va_faci lity_Paren tStation",  Microsoft .Xrm.Sdk.E ntityRole. Referencin g)]
  25797                    publ ic VA.PPMS .Context.v a_facility  Referenci ngppms_va_ facility_P arentStati on
  25798                    {
  25799                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25800                             get
  25801                             {
  25802                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.va_ facility>( "ppms_va_f acility_Pa rentStatio n", Micros oft.Xrm.Sd k.EntityRo le.Referen cing);
  25803                             }
  25804                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25805                             set
  25806                             {
  25807                                      this.OnP ropertyCha nging("Ref erencingpp ms_va_faci lity_Paren tStation") ;
  25808                                      this.Set RelatedEnt ity<VA.PPM S.Context. va_facilit y>("ppms_v a_facility _ParentSta tion", Mic rosoft.Xrm .Sdk.Entit yRole.Refe rencing, v alue);
  25809                                      this.OnP ropertyCha nged("Refe rencingppm s_va_facil ity_Parent Station");
  25810                             }
  25811                    }
  25812                    
  25813                    ///  <summary>
  25814                    ///  N:1 va_va_ region_va_ facility_r egionid
  25815                    ///  </summary>
  25816                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("va_r egionid")]
  25817                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("va _va_region _va_facili ty_regioni d")]
  25818                    publ ic VA.PPMS .Context.v a_region v a_va_regio n_va_facil ity_region id
  25819                    {
  25820                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25821                             get
  25822                             {
  25823                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.va_ region>("v a_va_regio n_va_facil ity_region id", null) ;
  25824                             }
  25825                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25826                             set
  25827                             {
  25828                                      this.OnP ropertyCha nging("va_ va_region_ va_facilit y_regionid ");
  25829                                      this.Set RelatedEnt ity<VA.PPM S.Context. va_region> ("va_va_re gion_va_fa cility_reg ionid", nu ll, value) ;
  25830                                      this.OnP ropertyCha nged("va_v a_region_v a_facility _regionid" );
  25831                             }
  25832                    }
  25833                    
  25834                    ///  <summary>
  25835                    ///  N:1 va_va_ visn_va_fa cility_vis nid
  25836                    ///  </summary>
  25837                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("va_v isnid")]
  25838                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("va _va_visn_v a_facility _visnid")]
  25839                    publ ic VA.PPMS .Context.v a_visn va_ va_visn_va _facility_ visnid
  25840                    {
  25841                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25842                             get
  25843                             {
  25844                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.va_ visn>("va_ va_visn_va _facility_ visnid", n ull);
  25845                             }
  25846                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25847                             set
  25848                             {
  25849                                      this.OnP ropertyCha nging("va_ va_visn_va _facility_ visnid");
  25850                                      this.Set RelatedEnt ity<VA.PPM S.Context. va_visn>(" va_va_visn _va_facili ty_visnid" , null, va lue);
  25851                                      this.OnP ropertyCha nged("va_v a_visn_va_ facility_v isnid");
  25852                             }
  25853                    }
  25854                    
  25855                    ///  <summary>
  25856                    ///  Constructo r for popu lating via  LINQ quer ies given  a LINQ ano nymous typ e
  25857                    ///  <param nam e="anonymo usType">LI NQ anonymo us type.</ param>
  25858                    ///  </summary>
  25859                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  25860                    publ ic va_faci lity(objec t anonymou sType) : 
  25861                                      this()
  25862                    {
  25863                foreach  (var p in  anonymousT ype.GetTyp e().GetPro perties())
  25864                {
  25865                    var  value = p. GetValue(a nonymousTy pe, null);
  25866                    var  name = p.N ame.ToLowe r();
  25867                
  25868                    if ( name.EndsW ith("enum" ) && value .GetType() .BaseType  == typeof( System.Enu m))
  25869                    {
  25870                         value = ne w Microsof t.Xrm.Sdk. OptionSetV alue((int)  value);
  25871                         name = nam e.Remove(n ame.Length  - "enum". Length);
  25872                    }
  25873                
  25874                    swit ch (name)
  25875                    {
  25876                         case "id":
  25877                             base.I d = (Syste m.Guid)val ue;
  25878                             Attrib utes["va_f acilityid" ] = base.I d;
  25879                             break;
  25880                         case "va_f acilityid" :
  25881                             var id  = (System .Nullable< System.Gui d>) value;
  25882                             if(id  == null){  continue;  }
  25883                             base.I d = id.Val ue;
  25884                             Attrib utes[name]  = base.Id ;
  25885                             break;
  25886                         case "form attedvalue s":
  25887                             // Add  Support f or Formatt edValues
  25888                             Format tedValues. AddRange(( Microsoft. Xrm.Sdk.Fo rmattedVal ueCollecti on)value);
  25889                             break;
  25890                         default:
  25891                             Attrib utes[name]  = value;
  25892                             break;
  25893                    }
  25894                }
  25895                    }
  25896                    
  25897                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  25898                    publ ic virtual  va_facili ty_StatusC ode? statu scodeEnum
  25899                    {
  25900                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25901                             get
  25902                             {
  25903                                      return ( (va_facili ty_StatusC ode?)(Enti tyOptionSe tEnum.GetE num(this,  "statuscod e")));
  25904                             }
  25905                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25906                             set
  25907                             {
  25908                                      statusco de = value .HasValue  ? new Micr osoft.Xrm. Sdk.Option SetValue(( int)value)  : null;
  25909                             }
  25910                    }
  25911                    
  25912                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("va_f acilitytyp e")]
  25913                    publ ic virtual  va_facili ty_va_faci litytype?  va_facilit ytypeEnum
  25914                    {
  25915                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25916                             get
  25917                             {
  25918                                      return ( (va_facili ty_va_faci litytype?) (EntityOpt ionSetEnum .GetEnum(t his, "va_f acilitytyp e")));
  25919                             }
  25920                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25921                             set
  25922                             {
  25923                                      va_facil itytype =  value.HasV alue ? new  Microsoft .Xrm.Sdk.O ptionSetVa lue((int)v alue) : nu ll;
  25924                             }
  25925                    }
  25926           }
  25927           
  25928           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  25929           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  25930           pu blic enum  va_regionS tate
  25931           {
  25932                    
  25933                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  25934                    Acti ve = 0,
  25935                    
  25936                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  25937                    Inac tive = 1,
  25938           }
  25939           
  25940           // / <summary >
  25941           // / Regions
  25942           // / </summar y>
  25943           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  25944           [M icrosoft.X rm.Sdk.Cli ent.Entity LogicalNam eAttribute ("va_regio n")]
  25945           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  25946           pu blic parti al class v a_region :  Microsoft .Xrm.Sdk.E ntity, Sys tem.Compon entModel.I NotifyProp ertyChangi ng, System .Component Model.INot ifyPropert yChanged
  25947           {
  25948                    
  25949                    ///  <summary>
  25950                    ///  Default Co nstructor.
  25951                    ///  </summary>
  25952                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  25953                    publ ic va_regi on() : 
  25954                                      base(Ent ityLogical Name)
  25955                    {
  25956                    }
  25957                    
  25958                    publ ic const s tring Enti tyLogicalN ame = "va_ region";
  25959                    
  25960                    publ ic const i nt EntityT ypeCode =  10048;
  25961                    
  25962                    publ ic event S ystem.Comp onentModel .PropertyC hangedEven tHandler P ropertyCha nged;
  25963                    
  25964                    publ ic event S ystem.Comp onentModel .PropertyC hangingEve ntHandler  PropertyCh anging;
  25965                    
  25966                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  25967                    priv ate void O nPropertyC hanged(str ing proper tyName)
  25968                    {
  25969                             if ((t his.Proper tyChanged  != null))
  25970                             {
  25971                                      this.Pro pertyChang ed(this, n ew System. ComponentM odel.Prope rtyChanged EventArgs( propertyNa me));
  25972                             }
  25973                    }
  25974                    
  25975                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  25976                    priv ate void O nPropertyC hanging(st ring prope rtyName)
  25977                    {
  25978                             if ((t his.Proper tyChanging  != null))
  25979                             {
  25980                                      this.Pro pertyChang ing(this,  new System .Component Model.Prop ertyChangi ngEventArg s(property Name));
  25981                             }
  25982                    }
  25983                    
  25984                    ///  <summary>
  25985                    ///  Unique ide ntifier of  the user  who create d the reco rd.
  25986                    ///  </summary>
  25987                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedby")]
  25988                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedBy
  25989                    {
  25990                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  25991                             get
  25992                             {
  25993                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedby");
  25994                             }
  25995                    }
  25996                    
  25997                    ///  <summary>
  25998                    ///  Date and t ime when t he record  was create d.
  25999                    ///  </summary>
  26000                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedon")]
  26001                    publ ic System. Nullable<S ystem.Date Time> Crea tedOn
  26002                    {
  26003                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26004                             get
  26005                             {
  26006                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("cre atedon");
  26007                             }
  26008                    }
  26009                    
  26010                    ///  <summary>
  26011                    ///  Unique ide ntifier of  the deleg ate user w ho created  the recor d.
  26012                    ///  </summary>
  26013                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedonbehal fby")]
  26014                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedOnBeha lfBy
  26015                    {
  26016                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26017                             get
  26018                             {
  26019                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedonbeh alfby");
  26020                             }
  26021                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26022                             set
  26023                             {
  26024                                      this.OnP ropertyCha nging("Cre atedOnBeha lfBy");
  26025                                      this.Set AttributeV alue("crea tedonbehal fby", valu e);
  26026                                      this.OnP ropertyCha nged("Crea tedOnBehal fBy");
  26027                             }
  26028                    }
  26029                    
  26030                    ///  <summary>
  26031                    ///  Sequence n umber of t he import  that creat ed this re cord.
  26032                    ///  </summary>
  26033                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("impo rtsequence number")]
  26034                    publ ic System. Nullable<i nt> Import SequenceNu mber
  26035                    {
  26036                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26037                             get
  26038                             {
  26039                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("impor tsequencen umber");
  26040                             }
  26041                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26042                             set
  26043                             {
  26044                                      this.OnP ropertyCha nging("Imp ortSequenc eNumber");
  26045                                      this.Set AttributeV alue("impo rtsequence number", v alue);
  26046                                      this.OnP ropertyCha nged("Impo rtSequence Number");
  26047                             }
  26048                    }
  26049                    
  26050                    ///  <summary>
  26051                    ///  Unique ide ntifier of  the user  who modifi ed the rec ord.
  26052                    ///  </summary>
  26053                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedby")]
  26054                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedBy
  26055                    {
  26056                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26057                             get
  26058                             {
  26059                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedby") ;
  26060                             }
  26061                    }
  26062                    
  26063                    ///  <summary>
  26064                    ///  Date and t ime when t he record  was modifi ed.
  26065                    ///  </summary>
  26066                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedon")]
  26067                    publ ic System. Nullable<S ystem.Date Time> Modi fiedOn
  26068                    {
  26069                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26070                             get
  26071                             {
  26072                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("mod ifiedon");
  26073                             }
  26074                    }
  26075                    
  26076                    ///  <summary>
  26077                    ///  Unique ide ntifier of  the deleg ate user w ho modifie d the reco rd.
  26078                    ///  </summary>
  26079                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedonbeha lfby")]
  26080                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedOnBeh alfBy
  26081                    {
  26082                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26083                             get
  26084                             {
  26085                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedonbe halfby");
  26086                             }
  26087                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26088                             set
  26089                             {
  26090                                      this.OnP ropertyCha nging("Mod ifiedOnBeh alfBy");
  26091                                      this.Set AttributeV alue("modi fiedonbeha lfby", val ue);
  26092                                      this.OnP ropertyCha nged("Modi fiedOnBeha lfBy");
  26093                             }
  26094                    }
  26095                    
  26096                    ///  <summary>
  26097                    ///  Date and t ime that t he record  was migrat ed.
  26098                    ///  </summary>
  26099                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("over riddencrea tedon")]
  26100                    publ ic System. Nullable<S ystem.Date Time> Over riddenCrea tedOn
  26101                    {
  26102                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26103                             get
  26104                             {
  26105                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ove rriddencre atedon");
  26106                             }
  26107                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26108                             set
  26109                             {
  26110                                      this.OnP ropertyCha nging("Ove rriddenCre atedOn");
  26111                                      this.Set AttributeV alue("over riddencrea tedon", va lue);
  26112                                      this.OnP ropertyCha nged("Over riddenCrea tedOn");
  26113                             }
  26114                    }
  26115                    
  26116                    ///  <summary>
  26117                    ///  Owner Id
  26118                    ///  </summary>
  26119                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owne rid")]
  26120                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own erId
  26121                    {
  26122                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26123                             get
  26124                             {
  26125                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow nerid");
  26126                             }
  26127                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26128                             set
  26129                             {
  26130                                      this.OnP ropertyCha nging("Own erId");
  26131                                      this.Set AttributeV alue("owne rid", valu e);
  26132                                      this.OnP ropertyCha nged("Owne rId");
  26133                             }
  26134                    }
  26135                    
  26136                    ///  <summary>
  26137                    ///  Unique ide ntifier fo r the busi ness unit  that owns  the record
  26138                    ///  </summary>
  26139                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngbusiness unit")]
  26140                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingBusines sUnit
  26141                    {
  26142                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26143                             get
  26144                             {
  26145                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningbusine ssunit");
  26146                             }
  26147                    }
  26148                    
  26149                    ///  <summary>
  26150                    ///  Unique ide ntifier fo r the team  that owns  the recor d.
  26151                    ///  </summary>
  26152                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngteam")]
  26153                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingTeam
  26154                    {
  26155                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26156                             get
  26157                             {
  26158                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningteam") ;
  26159                             }
  26160                    }
  26161                    
  26162                    ///  <summary>
  26163                    ///  Unique ide ntifier fo r the user  that owns  the recor d.
  26164                    ///  </summary>
  26165                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni nguser")]
  26166                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingUser
  26167                    {
  26168                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26169                             get
  26170                             {
  26171                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ninguser") ;
  26172                             }
  26173                    }
  26174                    
  26175                    ///  <summary>
  26176                    /// 
  26177                    ///  </summary>
  26178                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _regionnum ber")]
  26179                    publ ic string  ppms_Regio nNumber
  26180                    {
  26181                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26182                             get
  26183                             {
  26184                                      return t his.GetAtt ributeValu e<string>( "ppms_regi onnumber") ;
  26185                             }
  26186                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26187                             set
  26188                             {
  26189                                      this.OnP ropertyCha nging("ppm s_RegionNu mber");
  26190                                      this.Set AttributeV alue("ppms _regionnum ber", valu e);
  26191                                      this.OnP ropertyCha nged("ppms _RegionNum ber");
  26192                             }
  26193                    }
  26194                    
  26195                    ///  <summary>
  26196                    ///  Status of  the Region
  26197                    ///  </summary>
  26198                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat ecode")]
  26199                    publ ic System. Nullable<V A.PPMS.Con text.va_re gionState>  statecode
  26200                    {
  26201                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26202                             get
  26203                             {
  26204                                      Microsof t.Xrm.Sdk. OptionSetV alue optio nSet = thi s.GetAttri buteValue< Microsoft. Xrm.Sdk.Op tionSetVal ue>("state code");
  26205                                      if ((opt ionSet !=  null))
  26206                                      {
  26207                                               return ((V A.PPMS.Con text.va_re gionState) (System.En um.ToObjec t(typeof(V A.PPMS.Con text.va_re gionState) , optionSe t.Value))) ;
  26208                                      }
  26209                                      else
  26210                                      {
  26211                                               return nul l;
  26212                                      }
  26213                             }
  26214                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26215                             set
  26216                             {
  26217                                      this.OnP ropertyCha nging("sta tecode");
  26218                                      if ((val ue == null ))
  26219                                      {
  26220                                               this.SetAt tributeVal ue("statec ode", null );
  26221                                      }
  26222                                      else
  26223                                      {
  26224                                               this.SetAt tributeVal ue("statec ode", new  Microsoft. Xrm.Sdk.Op tionSetVal ue(((int)( value))));
  26225                                      }
  26226                                      this.OnP ropertyCha nged("stat ecode");
  26227                             }
  26228                    }
  26229                    
  26230                    ///  <summary>
  26231                    ///  Reason for  the statu s of the R egion
  26232                    ///  </summary>
  26233                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  26234                    publ ic Microso ft.Xrm.Sdk .OptionSet Value stat uscode
  26235                    {
  26236                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26237                             get
  26238                             {
  26239                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("sta tuscode");
  26240                             }
  26241                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26242                             set
  26243                             {
  26244                                      this.OnP ropertyCha nging("sta tuscode");
  26245                                      this.Set AttributeV alue("stat uscode", v alue);
  26246                                      this.OnP ropertyCha nged("stat uscode");
  26247                             }
  26248                    }
  26249                    
  26250                    ///  <summary>
  26251                    ///  For intern al use onl y.
  26252                    ///  </summary>
  26253                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("time zoneruleve rsionnumbe r")]
  26254                    publ ic System. Nullable<i nt> TimeZo neRuleVers ionNumber
  26255                    {
  26256                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26257                             get
  26258                             {
  26259                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("timez onerulever sionnumber ");
  26260                             }
  26261                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26262                             set
  26263                             {
  26264                                      this.OnP ropertyCha nging("Tim eZoneRuleV ersionNumb er");
  26265                                      this.Set AttributeV alue("time zoneruleve rsionnumbe r", value) ;
  26266                                      this.OnP ropertyCha nged("Time ZoneRuleVe rsionNumbe r");
  26267                             }
  26268                    }
  26269                    
  26270                    ///  <summary>
  26271                    ///  Time zone  code that  was in use  when the  record was  created.
  26272                    ///  </summary>
  26273                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("utcc onversiont imezonecod e")]
  26274                    publ ic System. Nullable<i nt> UTCCon versionTim eZoneCode
  26275                    {
  26276                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26277                             get
  26278                             {
  26279                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("utcco nversionti mezonecode ");
  26280                             }
  26281                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26282                             set
  26283                             {
  26284                                      this.OnP ropertyCha nging("UTC Conversion TimeZoneCo de");
  26285                                      this.Set AttributeV alue("utcc onversiont imezonecod e", value) ;
  26286                                      this.OnP ropertyCha nged("UTCC onversionT imeZoneCod e");
  26287                             }
  26288                    }
  26289                    
  26290                    ///  <summary>
  26291                    /// 
  26292                    ///  </summary>
  26293                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("va_n ame")]
  26294                    publ ic string  va_name
  26295                    {
  26296                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26297                             get
  26298                             {
  26299                                      return t his.GetAtt ributeValu e<string>( "va_name") ;
  26300                             }
  26301                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26302                             set
  26303                             {
  26304                                      this.OnP ropertyCha nging("va_ name");
  26305                                      this.Set AttributeV alue("va_n ame", valu e);
  26306                                      this.OnP ropertyCha nged("va_n ame");
  26307                             }
  26308                    }
  26309                    
  26310                    ///  <summary>
  26311                    ///  Unique ide ntifier fo r entity i nstances
  26312                    ///  </summary>
  26313                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("va_r egionid")]
  26314                    publ ic System. Nullable<S ystem.Guid > va_regio nId
  26315                    {
  26316                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26317                             get
  26318                             {
  26319                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("va_regi onid");
  26320                             }
  26321                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26322                             set
  26323                             {
  26324                                      this.OnP ropertyCha nging("va_ regionId") ;
  26325                                      this.Set AttributeV alue("va_r egionid",  value);
  26326                                      if (valu e.HasValue )
  26327                                      {
  26328                                               base.Id =  value.Valu e;
  26329                                      }
  26330                                      else
  26331                                      {
  26332                                               base.Id =  System.Gui d.Empty;
  26333                                      }
  26334                                      this.OnP ropertyCha nged("va_r egionId");
  26335                             }
  26336                    }
  26337                    
  26338                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("va_r egionid")]
  26339                    publ ic overrid e System.G uid Id
  26340                    {
  26341                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26342                             get
  26343                             {
  26344                                      return b ase.Id;
  26345                             }
  26346                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26347                             set
  26348                             {
  26349                                      this.va_ regionId =  value;
  26350                             }
  26351                    }
  26352                    
  26353                    ///  <summary>
  26354                    /// 
  26355                    ///  </summary>
  26356                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("vers ionnumber" )]
  26357                    publ ic System. Nullable<l ong> Versi onNumber
  26358                    {
  26359                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26360                             get
  26361                             {
  26362                                      return t his.GetAtt ributeValu e<System.N ullable<lo ng>>("vers ionnumber" );
  26363                             }
  26364                    }
  26365                    
  26366                    ///  <summary>
  26367                    ///  1:N ppms_r egion_va_v isn
  26368                    ///  </summary>
  26369                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_region_ va_visn")]
  26370                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.va _visn> ppm s_region_v a_visn
  26371                    {
  26372                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26373                             get
  26374                             {
  26375                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.v a_visn>("p pms_region _va_visn",  null);
  26376                             }
  26377                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26378                             set
  26379                             {
  26380                                      this.OnP ropertyCha nging("ppm s_region_v a_visn");
  26381                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.va_visn> ("ppms_reg ion_va_vis n", null,  value);
  26382                                      this.OnP ropertyCha nged("ppms _region_va _visn");
  26383                             }
  26384                    }
  26385                    
  26386                    ///  <summary>
  26387                    ///  1:N va_va_ region_va_ facility_r egionid
  26388                    ///  </summary>
  26389                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("va _va_region _va_facili ty_regioni d")]
  26390                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.va _facility>  va_va_reg ion_va_fac ility_regi onid
  26391                    {
  26392                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26393                             get
  26394                             {
  26395                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.v a_facility >("va_va_r egion_va_f acility_re gionid", n ull);
  26396                             }
  26397                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26398                             set
  26399                             {
  26400                                      this.OnP ropertyCha nging("va_ va_region_ va_facilit y_regionid ");
  26401                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.va_facil ity>("va_v a_region_v a_facility _regionid" , null, va lue);
  26402                                      this.OnP ropertyCha nged("va_v a_region_v a_facility _regionid" );
  26403                             }
  26404                    }
  26405                    
  26406                    ///  <summary>
  26407                    ///  Constructo r for popu lating via  LINQ quer ies given  a LINQ ano nymous typ e
  26408                    ///  <param nam e="anonymo usType">LI NQ anonymo us type.</ param>
  26409                    ///  </summary>
  26410                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  26411                    publ ic va_regi on(object  anonymousT ype) : 
  26412                                      this()
  26413                    {
  26414                foreach  (var p in  anonymousT ype.GetTyp e().GetPro perties())
  26415                {
  26416                    var  value = p. GetValue(a nonymousTy pe, null);
  26417                    var  name = p.N ame.ToLowe r();
  26418                
  26419                    if ( name.EndsW ith("enum" ) && value .GetType() .BaseType  == typeof( System.Enu m))
  26420                    {
  26421                         value = ne w Microsof t.Xrm.Sdk. OptionSetV alue((int)  value);
  26422                         name = nam e.Remove(n ame.Length  - "enum". Length);
  26423                    }
  26424                
  26425                    swit ch (name)
  26426                    {
  26427                         case "id":
  26428                             base.I d = (Syste m.Guid)val ue;
  26429                             Attrib utes["va_r egionid"]  = base.Id;
  26430                             break;
  26431                         case "va_r egionid":
  26432                             var id  = (System .Nullable< System.Gui d>) value;
  26433                             if(id  == null){  continue;  }
  26434                             base.I d = id.Val ue;
  26435                             Attrib utes[name]  = base.Id ;
  26436                             break;
  26437                         case "form attedvalue s":
  26438                             // Add  Support f or Formatt edValues
  26439                             Format tedValues. AddRange(( Microsoft. Xrm.Sdk.Fo rmattedVal ueCollecti on)value);
  26440                             break;
  26441                         default:
  26442                             Attrib utes[name]  = value;
  26443                             break;
  26444                    }
  26445                }
  26446                    }
  26447                    
  26448                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  26449                    publ ic virtual  va_region _StatusCod e? statusc odeEnum
  26450                    {
  26451                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26452                             get
  26453                             {
  26454                                      return ( (va_region _StatusCod e?)(Entity OptionSetE num.GetEnu m(this, "s tatuscode" )));
  26455                             }
  26456                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26457                             set
  26458                             {
  26459                                      statusco de = value .HasValue  ? new Micr osoft.Xrm. Sdk.Option SetValue(( int)value)  : null;
  26460                             }
  26461                    }
  26462           }
  26463           
  26464           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  26465           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  26466           pu blic enum  va_stateSt ate
  26467           {
  26468                    
  26469                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  26470                    Acti ve = 0,
  26471                    
  26472                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  26473                    Inac tive = 1,
  26474           }
  26475           
  26476           // / <summary >
  26477           //
  26478           // / </summar y>
  26479           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  26480           [M icrosoft.X rm.Sdk.Cli ent.Entity LogicalNam eAttribute ("va_state ")]
  26481           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  26482           pu blic parti al class v a_state :  Microsoft. Xrm.Sdk.En tity, Syst em.Compone ntModel.IN otifyPrope rtyChangin g, System. ComponentM odel.INoti fyProperty Changed
  26483           {
  26484                    
  26485                    ///  <summary>
  26486                    ///  Default Co nstructor.
  26487                    ///  </summary>
  26488                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  26489                    publ ic va_stat e() : 
  26490                                      base(Ent ityLogical Name)
  26491                    {
  26492                    }
  26493                    
  26494                    publ ic const s tring Enti tyLogicalN ame = "va_ state";
  26495                    
  26496                    publ ic const i nt EntityT ypeCode =  10051;
  26497                    
  26498                    publ ic event S ystem.Comp onentModel .PropertyC hangedEven tHandler P ropertyCha nged;
  26499                    
  26500                    publ ic event S ystem.Comp onentModel .PropertyC hangingEve ntHandler  PropertyCh anging;
  26501                    
  26502                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  26503                    priv ate void O nPropertyC hanged(str ing proper tyName)
  26504                    {
  26505                             if ((t his.Proper tyChanged  != null))
  26506                             {
  26507                                      this.Pro pertyChang ed(this, n ew System. ComponentM odel.Prope rtyChanged EventArgs( propertyNa me));
  26508                             }
  26509                    }
  26510                    
  26511                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  26512                    priv ate void O nPropertyC hanging(st ring prope rtyName)
  26513                    {
  26514                             if ((t his.Proper tyChanging  != null))
  26515                             {
  26516                                      this.Pro pertyChang ing(this,  new System .Component Model.Prop ertyChangi ngEventArg s(property Name));
  26517                             }
  26518                    }
  26519                    
  26520                    ///  <summary>
  26521                    ///  Unique ide ntifier of  the user  who create d the reco rd.
  26522                    ///  </summary>
  26523                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedby")]
  26524                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedBy
  26525                    {
  26526                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26527                             get
  26528                             {
  26529                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedby");
  26530                             }
  26531                    }
  26532                    
  26533                    ///  <summary>
  26534                    ///  Date and t ime when t he record  was create d.
  26535                    ///  </summary>
  26536                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedon")]
  26537                    publ ic System. Nullable<S ystem.Date Time> Crea tedOn
  26538                    {
  26539                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26540                             get
  26541                             {
  26542                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("cre atedon");
  26543                             }
  26544                    }
  26545                    
  26546                    ///  <summary>
  26547                    ///  Unique ide ntifier of  the deleg ate user w ho created  the recor d.
  26548                    ///  </summary>
  26549                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedonbehal fby")]
  26550                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedOnBeha lfBy
  26551                    {
  26552                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26553                             get
  26554                             {
  26555                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedonbeh alfby");
  26556                             }
  26557                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26558                             set
  26559                             {
  26560                                      this.OnP ropertyCha nging("Cre atedOnBeha lfBy");
  26561                                      this.Set AttributeV alue("crea tedonbehal fby", valu e);
  26562                                      this.OnP ropertyCha nged("Crea tedOnBehal fBy");
  26563                             }
  26564                    }
  26565                    
  26566                    ///  <summary>
  26567                    ///  Sequence n umber of t he import  that creat ed this re cord.
  26568                    ///  </summary>
  26569                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("impo rtsequence number")]
  26570                    publ ic System. Nullable<i nt> Import SequenceNu mber
  26571                    {
  26572                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26573                             get
  26574                             {
  26575                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("impor tsequencen umber");
  26576                             }
  26577                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26578                             set
  26579                             {
  26580                                      this.OnP ropertyCha nging("Imp ortSequenc eNumber");
  26581                                      this.Set AttributeV alue("impo rtsequence number", v alue);
  26582                                      this.OnP ropertyCha nged("Impo rtSequence Number");
  26583                             }
  26584                    }
  26585                    
  26586                    ///  <summary>
  26587                    ///  Unique ide ntifier of  the user  who modifi ed the rec ord.
  26588                    ///  </summary>
  26589                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedby")]
  26590                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedBy
  26591                    {
  26592                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26593                             get
  26594                             {
  26595                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedby") ;
  26596                             }
  26597                    }
  26598                    
  26599                    ///  <summary>
  26600                    ///  Date and t ime when t he record  was modifi ed.
  26601                    ///  </summary>
  26602                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedon")]
  26603                    publ ic System. Nullable<S ystem.Date Time> Modi fiedOn
  26604                    {
  26605                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26606                             get
  26607                             {
  26608                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("mod ifiedon");
  26609                             }
  26610                    }
  26611                    
  26612                    ///  <summary>
  26613                    ///  Unique ide ntifier of  the deleg ate user w ho modifie d the reco rd.
  26614                    ///  </summary>
  26615                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedonbeha lfby")]
  26616                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedOnBeh alfBy
  26617                    {
  26618                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26619                             get
  26620                             {
  26621                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedonbe halfby");
  26622                             }
  26623                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26624                             set
  26625                             {
  26626                                      this.OnP ropertyCha nging("Mod ifiedOnBeh alfBy");
  26627                                      this.Set AttributeV alue("modi fiedonbeha lfby", val ue);
  26628                                      this.OnP ropertyCha nged("Modi fiedOnBeha lfBy");
  26629                             }
  26630                    }
  26631                    
  26632                    ///  <summary>
  26633                    ///  Date and t ime that t he record  was migrat ed.
  26634                    ///  </summary>
  26635                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("over riddencrea tedon")]
  26636                    publ ic System. Nullable<S ystem.Date Time> Over riddenCrea tedOn
  26637                    {
  26638                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26639                             get
  26640                             {
  26641                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ove rriddencre atedon");
  26642                             }
  26643                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26644                             set
  26645                             {
  26646                                      this.OnP ropertyCha nging("Ove rriddenCre atedOn");
  26647                                      this.Set AttributeV alue("over riddencrea tedon", va lue);
  26648                                      this.OnP ropertyCha nged("Over riddenCrea tedOn");
  26649                             }
  26650                    }
  26651                    
  26652                    ///  <summary>
  26653                    ///  Owner Id
  26654                    ///  </summary>
  26655                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owne rid")]
  26656                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own erId
  26657                    {
  26658                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26659                             get
  26660                             {
  26661                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow nerid");
  26662                             }
  26663                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26664                             set
  26665                             {
  26666                                      this.OnP ropertyCha nging("Own erId");
  26667                                      this.Set AttributeV alue("owne rid", valu e);
  26668                                      this.OnP ropertyCha nged("Owne rId");
  26669                             }
  26670                    }
  26671                    
  26672                    ///  <summary>
  26673                    ///  Unique ide ntifier fo r the busi ness unit  that owns  the record
  26674                    ///  </summary>
  26675                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngbusiness unit")]
  26676                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingBusines sUnit
  26677                    {
  26678                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26679                             get
  26680                             {
  26681                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningbusine ssunit");
  26682                             }
  26683                    }
  26684                    
  26685                    ///  <summary>
  26686                    ///  Unique ide ntifier fo r the team  that owns  the recor d.
  26687                    ///  </summary>
  26688                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngteam")]
  26689                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingTeam
  26690                    {
  26691                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26692                             get
  26693                             {
  26694                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningteam") ;
  26695                             }
  26696                    }
  26697                    
  26698                    ///  <summary>
  26699                    ///  Unique ide ntifier fo r the user  that owns  the recor d.
  26700                    ///  </summary>
  26701                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni nguser")]
  26702                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingUser
  26703                    {
  26704                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26705                             get
  26706                             {
  26707                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ninguser") ;
  26708                             }
  26709                    }
  26710                    
  26711                    ///  <summary>
  26712                    ///  Status of  the State
  26713                    ///  </summary>
  26714                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat ecode")]
  26715                    publ ic System. Nullable<V A.PPMS.Con text.va_st ateState>  statecode
  26716                    {
  26717                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26718                             get
  26719                             {
  26720                                      Microsof t.Xrm.Sdk. OptionSetV alue optio nSet = thi s.GetAttri buteValue< Microsoft. Xrm.Sdk.Op tionSetVal ue>("state code");
  26721                                      if ((opt ionSet !=  null))
  26722                                      {
  26723                                               return ((V A.PPMS.Con text.va_st ateState)( System.Enu m.ToObject (typeof(VA .PPMS.Cont ext.va_sta teState),  optionSet. Value)));
  26724                                      }
  26725                                      else
  26726                                      {
  26727                                               return nul l;
  26728                                      }
  26729                             }
  26730                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26731                             set
  26732                             {
  26733                                      this.OnP ropertyCha nging("sta tecode");
  26734                                      if ((val ue == null ))
  26735                                      {
  26736                                               this.SetAt tributeVal ue("statec ode", null );
  26737                                      }
  26738                                      else
  26739                                      {
  26740                                               this.SetAt tributeVal ue("statec ode", new  Microsoft. Xrm.Sdk.Op tionSetVal ue(((int)( value))));
  26741                                      }
  26742                                      this.OnP ropertyCha nged("stat ecode");
  26743                             }
  26744                    }
  26745                    
  26746                    ///  <summary>
  26747                    ///  Reason for  the statu s of the S tate
  26748                    ///  </summary>
  26749                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  26750                    publ ic Microso ft.Xrm.Sdk .OptionSet Value stat uscode
  26751                    {
  26752                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26753                             get
  26754                             {
  26755                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("sta tuscode");
  26756                             }
  26757                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26758                             set
  26759                             {
  26760                                      this.OnP ropertyCha nging("sta tuscode");
  26761                                      this.Set AttributeV alue("stat uscode", v alue);
  26762                                      this.OnP ropertyCha nged("stat uscode");
  26763                             }
  26764                    }
  26765                    
  26766                    ///  <summary>
  26767                    ///  For intern al use onl y.
  26768                    ///  </summary>
  26769                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("time zoneruleve rsionnumbe r")]
  26770                    publ ic System. Nullable<i nt> TimeZo neRuleVers ionNumber
  26771                    {
  26772                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26773                             get
  26774                             {
  26775                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("timez onerulever sionnumber ");
  26776                             }
  26777                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26778                             set
  26779                             {
  26780                                      this.OnP ropertyCha nging("Tim eZoneRuleV ersionNumb er");
  26781                                      this.Set AttributeV alue("time zoneruleve rsionnumbe r", value) ;
  26782                                      this.OnP ropertyCha nged("Time ZoneRuleVe rsionNumbe r");
  26783                             }
  26784                    }
  26785                    
  26786                    ///  <summary>
  26787                    ///  Time zone  code that  was in use  when the  record was  created.
  26788                    ///  </summary>
  26789                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("utcc onversiont imezonecod e")]
  26790                    publ ic System. Nullable<i nt> UTCCon versionTim eZoneCode
  26791                    {
  26792                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26793                             get
  26794                             {
  26795                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("utcco nversionti mezonecode ");
  26796                             }
  26797                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26798                             set
  26799                             {
  26800                                      this.OnP ropertyCha nging("UTC Conversion TimeZoneCo de");
  26801                                      this.Set AttributeV alue("utcc onversiont imezonecod e", value) ;
  26802                                      this.OnP ropertyCha nged("UTCC onversionT imeZoneCod e");
  26803                             }
  26804                    }
  26805                    
  26806                    ///  <summary>
  26807                    ///  The name o f the cust om entity.
  26808                    ///  </summary>
  26809                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("va_n ame")]
  26810                    publ ic string  va_name
  26811                    {
  26812                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26813                             get
  26814                             {
  26815                                      return t his.GetAtt ributeValu e<string>( "va_name") ;
  26816                             }
  26817                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26818                             set
  26819                             {
  26820                                      this.OnP ropertyCha nging("va_ name");
  26821                                      this.Set AttributeV alue("va_n ame", valu e);
  26822                                      this.OnP ropertyCha nged("va_n ame");
  26823                             }
  26824                    }
  26825                    
  26826                    ///  <summary>
  26827                    ///  Unique ide ntifier fo r entity i nstances
  26828                    ///  </summary>
  26829                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("va_s tateid")]
  26830                    publ ic System. Nullable<S ystem.Guid > va_state Id
  26831                    {
  26832                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26833                             get
  26834                             {
  26835                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("va_stat eid");
  26836                             }
  26837                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26838                             set
  26839                             {
  26840                                      this.OnP ropertyCha nging("va_ stateId");
  26841                                      this.Set AttributeV alue("va_s tateid", v alue);
  26842                                      if (valu e.HasValue )
  26843                                      {
  26844                                               base.Id =  value.Valu e;
  26845                                      }
  26846                                      else
  26847                                      {
  26848                                               base.Id =  System.Gui d.Empty;
  26849                                      }
  26850                                      this.OnP ropertyCha nged("va_s tateId");
  26851                             }
  26852                    }
  26853                    
  26854                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("va_s tateid")]
  26855                    publ ic overrid e System.G uid Id
  26856                    {
  26857                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26858                             get
  26859                             {
  26860                                      return b ase.Id;
  26861                             }
  26862                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26863                             set
  26864                             {
  26865                                      this.va_ stateId =  value;
  26866                             }
  26867                    }
  26868                    
  26869                    ///  <summary>
  26870                    /// 
  26871                    ///  </summary>
  26872                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("va_s tatename") ]
  26873                    publ ic string  va_statena me
  26874                    {
  26875                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26876                             get
  26877                             {
  26878                                      return t his.GetAtt ributeValu e<string>( "va_staten ame");
  26879                             }
  26880                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26881                             set
  26882                             {
  26883                                      this.OnP ropertyCha nging("va_ statename" );
  26884                                      this.Set AttributeV alue("va_s tatename",  value);
  26885                                      this.OnP ropertyCha nged("va_s tatename") ;
  26886                             }
  26887                    }
  26888                    
  26889                    ///  <summary>
  26890                    /// 
  26891                    ///  </summary>
  26892                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("vers ionnumber" )]
  26893                    publ ic System. Nullable<l ong> Versi onNumber
  26894                    {
  26895                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26896                             get
  26897                             {
  26898                                      return t his.GetAtt ributeValu e<System.N ullable<lo ng>>("vers ionnumber" );
  26899                             }
  26900                    }
  26901                    
  26902                    ///  <summary>
  26903                    ///  1:N ppms_s tate_cares ite_addres s_state
  26904                    ///  </summary>
  26905                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_state_c aresite_ad dress_stat e")]
  26906                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_caresit e> ppms_st ate_caresi te_address _state
  26907                    {
  26908                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26909                             get
  26910                             {
  26911                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_caresi te>("ppms_ state_care site_addre ss_state",  null);
  26912                             }
  26913                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26914                             set
  26915                             {
  26916                                      this.OnP ropertyCha nging("ppm s_state_ca resite_add ress_state ");
  26917                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_car esite>("pp ms_state_c aresite_ad dress_stat e", null,  value);
  26918                                      this.OnP ropertyCha nged("ppms _state_car esite_addr ess_state" );
  26919                             }
  26920                    }
  26921                    
  26922                    ///  <summary>
  26923                    ///  Constructo r for popu lating via  LINQ quer ies given  a LINQ ano nymous typ e
  26924                    ///  <param nam e="anonymo usType">LI NQ anonymo us type.</ param>
  26925                    ///  </summary>
  26926                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  26927                    publ ic va_stat e(object a nonymousTy pe) : 
  26928                                      this()
  26929                    {
  26930                foreach  (var p in  anonymousT ype.GetTyp e().GetPro perties())
  26931                {
  26932                    var  value = p. GetValue(a nonymousTy pe, null);
  26933                    var  name = p.N ame.ToLowe r();
  26934                
  26935                    if ( name.EndsW ith("enum" ) && value .GetType() .BaseType  == typeof( System.Enu m))
  26936                    {
  26937                         value = ne w Microsof t.Xrm.Sdk. OptionSetV alue((int)  value);
  26938                         name = nam e.Remove(n ame.Length  - "enum". Length);
  26939                    }
  26940                
  26941                    swit ch (name)
  26942                    {
  26943                         case "id":
  26944                             base.I d = (Syste m.Guid)val ue;
  26945                             Attrib utes["va_s tateid"] =  base.Id;
  26946                             break;
  26947                         case "va_s tateid":
  26948                             var id  = (System .Nullable< System.Gui d>) value;
  26949                             if(id  == null){  continue;  }
  26950                             base.I d = id.Val ue;
  26951                             Attrib utes[name]  = base.Id ;
  26952                             break;
  26953                         case "form attedvalue s":
  26954                             // Add  Support f or Formatt edValues
  26955                             Format tedValues. AddRange(( Microsoft. Xrm.Sdk.Fo rmattedVal ueCollecti on)value);
  26956                             break;
  26957                         default:
  26958                             Attrib utes[name]  = value;
  26959                             break;
  26960                    }
  26961                }
  26962                    }
  26963                    
  26964                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  26965                    publ ic virtual  va_state_ StatusCode ? statusco deEnum
  26966                    {
  26967                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26968                             get
  26969                             {
  26970                                      return ( (va_state_ StatusCode ?)(EntityO ptionSetEn um.GetEnum (this, "st atuscode") ));
  26971                             }
  26972                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  26973                             set
  26974                             {
  26975                                      statusco de = value .HasValue  ? new Micr osoft.Xrm. Sdk.Option SetValue(( int)value)  : null;
  26976                             }
  26977                    }
  26978           }
  26979           
  26980           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  26981           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  26982           pu blic enum  va_visnSta te
  26983           {
  26984                    
  26985                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  26986                    Acti ve = 0,
  26987                    
  26988                    [Sys tem.Runtim e.Serializ ation.Enum MemberAttr ibute()]
  26989                    Inac tive = 1,
  26990           }
  26991           
  26992           // / <summary >
  26993           // / VISNs
  26994           // / </summar y>
  26995           [S ystem.Runt ime.Serial ization.Da taContract Attribute( )]
  26996           [M icrosoft.X rm.Sdk.Cli ent.Entity LogicalNam eAttribute ("va_visn" )]
  26997           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  26998           pu blic parti al class v a_visn : M icrosoft.X rm.Sdk.Ent ity, Syste m.Componen tModel.INo tifyProper tyChanging , System.C omponentMo del.INotif yPropertyC hanged
  26999           {
  27000                    
  27001                    ///  <summary>
  27002                    ///  Default Co nstructor.
  27003                    ///  </summary>
  27004                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  27005                    publ ic va_visn () : 
  27006                                      base(Ent ityLogical Name)
  27007                    {
  27008                    }
  27009                    
  27010                    publ ic const s tring Enti tyLogicalN ame = "va_ visn";
  27011                    
  27012                    publ ic const i nt EntityT ypeCode =  10047;
  27013                    
  27014                    publ ic event S ystem.Comp onentModel .PropertyC hangedEven tHandler P ropertyCha nged;
  27015                    
  27016                    publ ic event S ystem.Comp onentModel .PropertyC hangingEve ntHandler  PropertyCh anging;
  27017                    
  27018                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  27019                    priv ate void O nPropertyC hanged(str ing proper tyName)
  27020                    {
  27021                             if ((t his.Proper tyChanged  != null))
  27022                             {
  27023                                      this.Pro pertyChang ed(this, n ew System. ComponentM odel.Prope rtyChanged EventArgs( propertyNa me));
  27024                             }
  27025                    }
  27026                    
  27027                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  27028                    priv ate void O nPropertyC hanging(st ring prope rtyName)
  27029                    {
  27030                             if ((t his.Proper tyChanging  != null))
  27031                             {
  27032                                      this.Pro pertyChang ing(this,  new System .Component Model.Prop ertyChangi ngEventArg s(property Name));
  27033                             }
  27034                    }
  27035                    
  27036                    ///  <summary>
  27037                    ///  Unique ide ntifier of  the user  who create d the reco rd.
  27038                    ///  </summary>
  27039                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedby")]
  27040                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedBy
  27041                    {
  27042                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27043                             get
  27044                             {
  27045                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedby");
  27046                             }
  27047                    }
  27048                    
  27049                    ///  <summary>
  27050                    ///  Date and t ime when t he record  was create d.
  27051                    ///  </summary>
  27052                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedon")]
  27053                    publ ic System. Nullable<S ystem.Date Time> Crea tedOn
  27054                    {
  27055                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27056                             get
  27057                             {
  27058                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("cre atedon");
  27059                             }
  27060                    }
  27061                    
  27062                    ///  <summary>
  27063                    ///  Unique ide ntifier of  the deleg ate user w ho created  the recor d.
  27064                    ///  </summary>
  27065                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("crea tedonbehal fby")]
  27066                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Cre atedOnBeha lfBy
  27067                    {
  27068                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27069                             get
  27070                             {
  27071                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("cr eatedonbeh alfby");
  27072                             }
  27073                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27074                             set
  27075                             {
  27076                                      this.OnP ropertyCha nging("Cre atedOnBeha lfBy");
  27077                                      this.Set AttributeV alue("crea tedonbehal fby", valu e);
  27078                                      this.OnP ropertyCha nged("Crea tedOnBehal fBy");
  27079                             }
  27080                    }
  27081                    
  27082                    ///  <summary>
  27083                    ///  Sequence n umber of t he import  that creat ed this re cord.
  27084                    ///  </summary>
  27085                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("impo rtsequence number")]
  27086                    publ ic System. Nullable<i nt> Import SequenceNu mber
  27087                    {
  27088                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27089                             get
  27090                             {
  27091                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("impor tsequencen umber");
  27092                             }
  27093                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27094                             set
  27095                             {
  27096                                      this.OnP ropertyCha nging("Imp ortSequenc eNumber");
  27097                                      this.Set AttributeV alue("impo rtsequence number", v alue);
  27098                                      this.OnP ropertyCha nged("Impo rtSequence Number");
  27099                             }
  27100                    }
  27101                    
  27102                    ///  <summary>
  27103                    ///  Unique ide ntifier of  the user  who modifi ed the rec ord.
  27104                    ///  </summary>
  27105                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedby")]
  27106                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedBy
  27107                    {
  27108                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27109                             get
  27110                             {
  27111                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedby") ;
  27112                             }
  27113                    }
  27114                    
  27115                    ///  <summary>
  27116                    ///  Date and t ime when t he record  was modifi ed.
  27117                    ///  </summary>
  27118                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedon")]
  27119                    publ ic System. Nullable<S ystem.Date Time> Modi fiedOn
  27120                    {
  27121                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27122                             get
  27123                             {
  27124                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("mod ifiedon");
  27125                             }
  27126                    }
  27127                    
  27128                    ///  <summary>
  27129                    ///  Unique ide ntifier of  the deleg ate user w ho modifie d the reco rd.
  27130                    ///  </summary>
  27131                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("modi fiedonbeha lfby")]
  27132                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Mod ifiedOnBeh alfBy
  27133                    {
  27134                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27135                             get
  27136                             {
  27137                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("mo difiedonbe halfby");
  27138                             }
  27139                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27140                             set
  27141                             {
  27142                                      this.OnP ropertyCha nging("Mod ifiedOnBeh alfBy");
  27143                                      this.Set AttributeV alue("modi fiedonbeha lfby", val ue);
  27144                                      this.OnP ropertyCha nged("Modi fiedOnBeha lfBy");
  27145                             }
  27146                    }
  27147                    
  27148                    ///  <summary>
  27149                    ///  Date and t ime that t he record  was migrat ed.
  27150                    ///  </summary>
  27151                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("over riddencrea tedon")]
  27152                    publ ic System. Nullable<S ystem.Date Time> Over riddenCrea tedOn
  27153                    {
  27154                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27155                             get
  27156                             {
  27157                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.DateT ime>>("ove rriddencre atedon");
  27158                             }
  27159                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27160                             set
  27161                             {
  27162                                      this.OnP ropertyCha nging("Ove rriddenCre atedOn");
  27163                                      this.Set AttributeV alue("over riddencrea tedon", va lue);
  27164                                      this.OnP ropertyCha nged("Over riddenCrea tedOn");
  27165                             }
  27166                    }
  27167                    
  27168                    ///  <summary>
  27169                    ///  Owner Id
  27170                    ///  </summary>
  27171                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owne rid")]
  27172                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own erId
  27173                    {
  27174                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27175                             get
  27176                             {
  27177                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow nerid");
  27178                             }
  27179                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27180                             set
  27181                             {
  27182                                      this.OnP ropertyCha nging("Own erId");
  27183                                      this.Set AttributeV alue("owne rid", valu e);
  27184                                      this.OnP ropertyCha nged("Owne rId");
  27185                             }
  27186                    }
  27187                    
  27188                    ///  <summary>
  27189                    ///  Unique ide ntifier fo r the busi ness unit  that owns  the record
  27190                    ///  </summary>
  27191                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngbusiness unit")]
  27192                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingBusines sUnit
  27193                    {
  27194                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27195                             get
  27196                             {
  27197                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningbusine ssunit");
  27198                             }
  27199                    }
  27200                    
  27201                    ///  <summary>
  27202                    ///  Unique ide ntifier fo r the team  that owns  the recor d.
  27203                    ///  </summary>
  27204                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni ngteam")]
  27205                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingTeam
  27206                    {
  27207                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27208                             get
  27209                             {
  27210                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ningteam") ;
  27211                             }
  27212                    }
  27213                    
  27214                    ///  <summary>
  27215                    ///  Unique ide ntifier fo r the user  that owns  the recor d.
  27216                    ///  </summary>
  27217                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("owni nguser")]
  27218                    publ ic Microso ft.Xrm.Sdk .EntityRef erence Own ingUser
  27219                    {
  27220                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27221                             get
  27222                             {
  27223                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("ow ninguser") ;
  27224                             }
  27225                    }
  27226                    
  27227                    ///  <summary>
  27228                    ///  Unique ide ntifier fo r Region a ssociated  with VISN.
  27229                    ///  </summary>
  27230                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _regionid" )]
  27231                    publ ic Microso ft.Xrm.Sdk .EntityRef erence ppm s_RegionID
  27232                    {
  27233                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27234                             get
  27235                             {
  27236                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. EntityRefe rence>("pp ms_regioni d");
  27237                             }
  27238                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27239                             set
  27240                             {
  27241                                      this.OnP ropertyCha nging("ppm s_RegionID ");
  27242                                      this.Set AttributeV alue("ppms _regionid" , value);
  27243                                      this.OnP ropertyCha nged("ppms _RegionID" );
  27244                             }
  27245                    }
  27246                    
  27247                    ///  <summary>
  27248                    /// 
  27249                    ///  </summary>
  27250                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _visnname" )]
  27251                    publ ic string  ppms_visnn ame
  27252                    {
  27253                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27254                             get
  27255                             {
  27256                                      return t his.GetAtt ributeValu e<string>( "ppms_visn name");
  27257                             }
  27258                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27259                             set
  27260                             {
  27261                                      this.OnP ropertyCha nging("ppm s_visnname ");
  27262                                      this.Set AttributeV alue("ppms _visnname" , value);
  27263                                      this.OnP ropertyCha nged("ppms _visnname" );
  27264                             }
  27265                    }
  27266                    
  27267                    ///  <summary>
  27268                    ///  Status of  the VISN
  27269                    ///  </summary>
  27270                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat ecode")]
  27271                    publ ic System. Nullable<V A.PPMS.Con text.va_vi snState> s tatecode
  27272                    {
  27273                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27274                             get
  27275                             {
  27276                                      Microsof t.Xrm.Sdk. OptionSetV alue optio nSet = thi s.GetAttri buteValue< Microsoft. Xrm.Sdk.Op tionSetVal ue>("state code");
  27277                                      if ((opt ionSet !=  null))
  27278                                      {
  27279                                               return ((V A.PPMS.Con text.va_vi snState)(S ystem.Enum .ToObject( typeof(VA. PPMS.Conte xt.va_visn State), op tionSet.Va lue)));
  27280                                      }
  27281                                      else
  27282                                      {
  27283                                               return nul l;
  27284                                      }
  27285                             }
  27286                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27287                             set
  27288                             {
  27289                                      this.OnP ropertyCha nging("sta tecode");
  27290                                      if ((val ue == null ))
  27291                                      {
  27292                                               this.SetAt tributeVal ue("statec ode", null );
  27293                                      }
  27294                                      else
  27295                                      {
  27296                                               this.SetAt tributeVal ue("statec ode", new  Microsoft. Xrm.Sdk.Op tionSetVal ue(((int)( value))));
  27297                                      }
  27298                                      this.OnP ropertyCha nged("stat ecode");
  27299                             }
  27300                    }
  27301                    
  27302                    ///  <summary>
  27303                    ///  Reason for  the statu s of the V ISN
  27304                    ///  </summary>
  27305                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  27306                    publ ic Microso ft.Xrm.Sdk .OptionSet Value stat uscode
  27307                    {
  27308                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27309                             get
  27310                             {
  27311                                      return t his.GetAtt ributeValu e<Microsof t.Xrm.Sdk. OptionSetV alue>("sta tuscode");
  27312                             }
  27313                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27314                             set
  27315                             {
  27316                                      this.OnP ropertyCha nging("sta tuscode");
  27317                                      this.Set AttributeV alue("stat uscode", v alue);
  27318                                      this.OnP ropertyCha nged("stat uscode");
  27319                             }
  27320                    }
  27321                    
  27322                    ///  <summary>
  27323                    ///  For intern al use onl y.
  27324                    ///  </summary>
  27325                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("time zoneruleve rsionnumbe r")]
  27326                    publ ic System. Nullable<i nt> TimeZo neRuleVers ionNumber
  27327                    {
  27328                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27329                             get
  27330                             {
  27331                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("timez onerulever sionnumber ");
  27332                             }
  27333                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27334                             set
  27335                             {
  27336                                      this.OnP ropertyCha nging("Tim eZoneRuleV ersionNumb er");
  27337                                      this.Set AttributeV alue("time zoneruleve rsionnumbe r", value) ;
  27338                                      this.OnP ropertyCha nged("Time ZoneRuleVe rsionNumbe r");
  27339                             }
  27340                    }
  27341                    
  27342                    ///  <summary>
  27343                    ///  Time zone  code that  was in use  when the  record was  created.
  27344                    ///  </summary>
  27345                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("utcc onversiont imezonecod e")]
  27346                    publ ic System. Nullable<i nt> UTCCon versionTim eZoneCode
  27347                    {
  27348                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27349                             get
  27350                             {
  27351                                      return t his.GetAtt ributeValu e<System.N ullable<in t>>("utcco nversionti mezonecode ");
  27352                             }
  27353                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27354                             set
  27355                             {
  27356                                      this.OnP ropertyCha nging("UTC Conversion TimeZoneCo de");
  27357                                      this.Set AttributeV alue("utcc onversiont imezonecod e", value) ;
  27358                                      this.OnP ropertyCha nged("UTCC onversionT imeZoneCod e");
  27359                             }
  27360                    }
  27361                    
  27362                    ///  <summary>
  27363                    /// 
  27364                    ///  </summary>
  27365                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("va_n ame")]
  27366                    publ ic string  va_name
  27367                    {
  27368                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27369                             get
  27370                             {
  27371                                      return t his.GetAtt ributeValu e<string>( "va_name") ;
  27372                             }
  27373                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27374                             set
  27375                             {
  27376                                      this.OnP ropertyCha nging("va_ name");
  27377                                      this.Set AttributeV alue("va_n ame", valu e);
  27378                                      this.OnP ropertyCha nged("va_n ame");
  27379                             }
  27380                    }
  27381                    
  27382                    ///  <summary>
  27383                    ///  Unique ide ntifier fo r entity i nstances
  27384                    ///  </summary>
  27385                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("va_v isnid")]
  27386                    publ ic System. Nullable<S ystem.Guid > va_visnI d
  27387                    {
  27388                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27389                             get
  27390                             {
  27391                                      return t his.GetAtt ributeValu e<System.N ullable<Sy stem.Guid> >("va_visn id");
  27392                             }
  27393                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27394                             set
  27395                             {
  27396                                      this.OnP ropertyCha nging("va_ visnId");
  27397                                      this.Set AttributeV alue("va_v isnid", va lue);
  27398                                      if (valu e.HasValue )
  27399                                      {
  27400                                               base.Id =  value.Valu e;
  27401                                      }
  27402                                      else
  27403                                      {
  27404                                               base.Id =  System.Gui d.Empty;
  27405                                      }
  27406                                      this.OnP ropertyCha nged("va_v isnId");
  27407                             }
  27408                    }
  27409                    
  27410                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("va_v isnid")]
  27411                    publ ic overrid e System.G uid Id
  27412                    {
  27413                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27414                             get
  27415                             {
  27416                                      return b ase.Id;
  27417                             }
  27418                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27419                             set
  27420                             {
  27421                                      this.va_ visnId = v alue;
  27422                             }
  27423                    }
  27424                    
  27425                    ///  <summary>
  27426                    /// 
  27427                    ///  </summary>
  27428                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("vers ionnumber" )]
  27429                    publ ic System. Nullable<l ong> Versi onNumber
  27430                    {
  27431                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27432                             get
  27433                             {
  27434                                      return t his.GetAtt ributeValu e<System.N ullable<lo ng>>("vers ionnumber" );
  27435                             }
  27436                    }
  27437                    
  27438                    ///  <summary>
  27439                    ///  1:N ppms_v a_visn_ppm s_caresite _visnid
  27440                    ///  </summary>
  27441                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_va_visn _ppms_care site_visni d")]
  27442                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_caresit e> ppms_va _visn_ppms _caresite_ visnid
  27443                    {
  27444                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27445                             get
  27446                             {
  27447                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_caresi te>("ppms_ va_visn_pp ms_caresit e_visnid",  null);
  27448                             }
  27449                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27450                             set
  27451                             {
  27452                                      this.OnP ropertyCha nging("ppm s_va_visn_ ppms_cares ite_visnid ");
  27453                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_car esite>("pp ms_va_visn _ppms_care site_visni d", null,  value);
  27454                                      this.OnP ropertyCha nged("ppms _va_visn_p pms_caresi te_visnid" );
  27455                             }
  27456                    }
  27457                    
  27458                    ///  <summary>
  27459                    ///  1:N ppms_v a_visn_ppm s_institut ion_visn
  27460                    ///  </summary>
  27461                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_va_visn _ppms_inst itution_vi sn")]
  27462                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.pp ms_institu tion> ppms _va_visn_p pms_instit ution_visn
  27463                    {
  27464                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27465                             get
  27466                             {
  27467                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.p pms_instit ution>("pp ms_va_visn _ppms_inst itution_vi sn", null) ;
  27468                             }
  27469                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27470                             set
  27471                             {
  27472                                      this.OnP ropertyCha nging("ppm s_va_visn_ ppms_insti tution_vis n");
  27473                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.ppms_ins titution>( "ppms_va_v isn_ppms_i nstitution _visn", nu ll, value) ;
  27474                                      this.OnP ropertyCha nged("ppms _va_visn_p pms_instit ution_visn ");
  27475                             }
  27476                    }
  27477                    
  27478                    ///  <summary>
  27479                    ///  1:N va_va_ visn_va_fa cility_vis nid
  27480                    ///  </summary>
  27481                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("va _va_visn_v a_facility _visnid")]
  27482                    publ ic System. Collection s.Generic. IEnumerabl e<VA.PPMS. Context.va _facility>  va_va_vis n_va_facil ity_visnid
  27483                    {
  27484                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27485                             get
  27486                             {
  27487                                      return t his.GetRel atedEntiti es<VA.PPMS .Context.v a_facility >("va_va_v isn_va_fac ility_visn id", null) ;
  27488                             }
  27489                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27490                             set
  27491                             {
  27492                                      this.OnP ropertyCha nging("va_ va_visn_va _facility_ visnid");
  27493                                      this.Set RelatedEnt ities<VA.P PMS.Contex t.va_facil ity>("va_v a_visn_va_ facility_v isnid", nu ll, value) ;
  27494                                      this.OnP ropertyCha nged("va_v a_visn_va_ facility_v isnid");
  27495                             }
  27496                    }
  27497                    
  27498                    ///  <summary>
  27499                    ///  N:1 ppms_r egion_va_v isn
  27500                    ///  </summary>
  27501                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("ppms _regionid" )]
  27502                    [Mic rosoft.Xrm .Sdk.Relat ionshipSch emaNameAtt ribute("pp ms_region_ va_visn")]
  27503                    publ ic VA.PPMS .Context.v a_region p pms_region _va_visn
  27504                    {
  27505                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27506                             get
  27507                             {
  27508                                      return t his.GetRel atedEntity <VA.PPMS.C ontext.va_ region>("p pms_region _va_visn",  null);
  27509                             }
  27510                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27511                             set
  27512                             {
  27513                                      this.OnP ropertyCha nging("ppm s_region_v a_visn");
  27514                                      this.Set RelatedEnt ity<VA.PPM S.Context. va_region> ("ppms_reg ion_va_vis n", null,  value);
  27515                                      this.OnP ropertyCha nged("ppms _region_va _visn");
  27516                             }
  27517                    }
  27518                    
  27519                    ///  <summary>
  27520                    ///  Constructo r for popu lating via  LINQ quer ies given  a LINQ ano nymous typ e
  27521                    ///  <param nam e="anonymo usType">LI NQ anonymo us type.</ param>
  27522                    ///  </summary>
  27523                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  27524                    publ ic va_visn (object an onymousTyp e) : 
  27525                                      this()
  27526                    {
  27527                foreach  (var p in  anonymousT ype.GetTyp e().GetPro perties())
  27528                {
  27529                    var  value = p. GetValue(a nonymousTy pe, null);
  27530                    var  name = p.N ame.ToLowe r();
  27531                
  27532                    if ( name.EndsW ith("enum" ) && value .GetType() .BaseType  == typeof( System.Enu m))
  27533                    {
  27534                         value = ne w Microsof t.Xrm.Sdk. OptionSetV alue((int)  value);
  27535                         name = nam e.Remove(n ame.Length  - "enum". Length);
  27536                    }
  27537                
  27538                    swit ch (name)
  27539                    {
  27540                         case "id":
  27541                             base.I d = (Syste m.Guid)val ue;
  27542                             Attrib utes["va_v isnid"] =  base.Id;
  27543                             break;
  27544                         case "va_v isnid":
  27545                             var id  = (System .Nullable< System.Gui d>) value;
  27546                             if(id  == null){  continue;  }
  27547                             base.I d = id.Val ue;
  27548                             Attrib utes[name]  = base.Id ;
  27549                             break;
  27550                         case "form attedvalue s":
  27551                             // Add  Support f or Formatt edValues
  27552                             Format tedValues. AddRange(( Microsoft. Xrm.Sdk.Fo rmattedVal ueCollecti on)value);
  27553                             break;
  27554                         default:
  27555                             Attrib utes[name]  = value;
  27556                             break;
  27557                    }
  27558                }
  27559                    }
  27560                    
  27561                    [Mic rosoft.Xrm .Sdk.Attri buteLogica lNameAttri bute("stat uscode")]
  27562                    publ ic virtual  va_visn_S tatusCode?  statuscod eEnum
  27563                    {
  27564                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27565                             get
  27566                             {
  27567                                      return ( (va_visn_S tatusCode? )(EntityOp tionSetEnu m.GetEnum( this, "sta tuscode")) );
  27568                             }
  27569                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27570                             set
  27571                             {
  27572                                      statusco de = value .HasValue  ? new Micr osoft.Xrm. Sdk.Option SetValue(( int)value)  : null;
  27573                             }
  27574                    }
  27575           }
  27576           
  27577           // / <summary >
  27578           // / Represen ts a sourc e of entit ies bound  to a CRM s ervice. It  tracks an d manages  changes ma de to the  retrieved  entities.
  27579           // / </summar y>
  27580           [S ystem.Code Dom.Compil er.Generat edCodeAttr ibute("Crm SvcUtil",  "8.2.0.749 ")]
  27581           pu blic parti al class P pmsContext  : Microso ft.Xrm.Sdk .Client.Or ganization ServiceCon text
  27582           {
  27583                    
  27584                    ///  <summary>
  27585                    ///  Constructo r.
  27586                    ///  </summary>
  27587                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  27588                    publ ic PpmsCon text(Micro soft.Xrm.S dk.IOrgani zationServ ice servic e) : 
  27589                                      base(ser vice)
  27590                    {
  27591                    }
  27592                    
  27593                    ///  <summary>
  27594                    ///  Gets a bin ding to th e set of a ll <see cr ef="VA.PPM S.Context. Account"/>  entities.
  27595                    ///  </summary>
  27596                    publ ic System. Linq.IQuer yable<VA.P PMS.Contex t.Account>  AccountSe t
  27597                    {
  27598                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27599                             get
  27600                             {
  27601                                      return t his.Create Query<VA.P PMS.Contex t.Account> ();
  27602                             }
  27603                    }
  27604                    
  27605                    ///  <summary>
  27606                    ///  Gets a bin ding to th e set of a ll <see cr ef="VA.PPM S.Context. Contact"/>  entities.
  27607                    ///  </summary>
  27608                    publ ic System. Linq.IQuer yable<VA.P PMS.Contex t.Contact>  ContactSe t
  27609                    {
  27610                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27611                             get
  27612                             {
  27613                                      return t his.Create Query<VA.P PMS.Contex t.Contact> ();
  27614                             }
  27615                    }
  27616                    
  27617                    ///  <summary>
  27618                    ///  Gets a bin ding to th e set of a ll <see cr ef="VA.PPM S.Context. ppms_agree mentprovid er"/> enti ties.
  27619                    ///  </summary>
  27620                    publ ic System. Linq.IQuer yable<VA.P PMS.Contex t.ppms_agr eementprov ider> ppms _agreement providerSe t
  27621                    {
  27622                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27623                             get
  27624                             {
  27625                                      return t his.Create Query<VA.P PMS.Contex t.ppms_agr eementprov ider>();
  27626                             }
  27627                    }
  27628                    
  27629                    ///  <summary>
  27630                    ///  Gets a bin ding to th e set of a ll <see cr ef="VA.PPM S.Context. ppms_cares ite"/> ent ities.
  27631                    ///  </summary>
  27632                    publ ic System. Linq.IQuer yable<VA.P PMS.Contex t.ppms_car esite> ppm s_caresite Set
  27633                    {
  27634                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27635                             get
  27636                             {
  27637                                      return t his.Create Query<VA.P PMS.Contex t.ppms_car esite>();
  27638                             }
  27639                    }
  27640                    
  27641                    ///  <summary>
  27642                    ///  Gets a bin ding to th e set of a ll <see cr ef="VA.PPM S.Context. ppms_histo rylog"/> e ntities.
  27643                    ///  </summary>
  27644                    publ ic System. Linq.IQuer yable<VA.P PMS.Contex t.ppms_his torylog> p pms_histor ylogSet
  27645                    {
  27646                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27647                             get
  27648                             {
  27649                                      return t his.Create Query<VA.P PMS.Contex t.ppms_his torylog>() ;
  27650                             }
  27651                    }
  27652                    
  27653                    ///  <summary>
  27654                    ///  Gets a bin ding to th e set of a ll <see cr ef="VA.PPM S.Context. ppms_insti tution"/>  entities.
  27655                    ///  </summary>
  27656                    publ ic System. Linq.IQuer yable<VA.P PMS.Contex t.ppms_ins titution>  ppms_insti tutionSet
  27657                    {
  27658                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27659                             get
  27660                             {
  27661                                      return t his.Create Query<VA.P PMS.Contex t.ppms_ins titution>( );
  27662                             }
  27663                    }
  27664                    
  27665                    ///  <summary>
  27666                    ///  Gets a bin ding to th e set of a ll <see cr ef="VA.PPM S.Context. ppms_leiee xclusion"/ > entities .
  27667                    ///  </summary>
  27668                    publ ic System. Linq.IQuer yable<VA.P PMS.Contex t.ppms_lei eexclusion > ppms_lei eexclusion Set
  27669                    {
  27670                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27671                             get
  27672                             {
  27673                                      return t his.Create Query<VA.P PMS.Contex t.ppms_lei eexclusion >();
  27674                             }
  27675                    }
  27676                    
  27677                    ///  <summary>
  27678                    ///  Gets a bin ding to th e set of a ll <see cr ef="VA.PPM S.Context. ppms_leiee xclusionau thority"/>  entities.
  27679                    ///  </summary>
  27680                    publ ic System. Linq.IQuer yable<VA.P PMS.Contex t.ppms_lei eexclusion authority>  ppms_leie exclusiona uthoritySe t
  27681                    {
  27682                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27683                             get
  27684                             {
  27685                                      return t his.Create Query<VA.P PMS.Contex t.ppms_lei eexclusion authority> ();
  27686                             }
  27687                    }
  27688                    
  27689                    ///  <summary>
  27690                    ///  Gets a bin ding to th e set of a ll <see cr ef="VA.PPM S.Context. ppms_npi"/ > entities .
  27691                    ///  </summary>
  27692                    publ ic System. Linq.IQuer yable<VA.P PMS.Contex t.ppms_npi > ppms_npi Set
  27693                    {
  27694                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27695                             get
  27696                             {
  27697                                      return t his.Create Query<VA.P PMS.Contex t.ppms_npi >();
  27698                             }
  27699                    }
  27700                    
  27701                    ///  <summary>
  27702                    ///  Gets a bin ding to th e set of a ll <see cr ef="VA.PPM S.Context. ppms_other name"/> en tities.
  27703                    ///  </summary>
  27704                    publ ic System. Linq.IQuer yable<VA.P PMS.Contex t.ppms_oth ername> pp ms_otherna meSet
  27705                    {
  27706                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27707                             get
  27708                             {
  27709                                      return t his.Create Query<VA.P PMS.Contex t.ppms_oth ername>();
  27710                             }
  27711                    }
  27712                    
  27713                    ///  <summary>
  27714                    ///  Gets a bin ding to th e set of a ll <see cr ef="VA.PPM S.Context. ppms_patie ntservice" /> entitie s.
  27715                    ///  </summary>
  27716                    publ ic System. Linq.IQuer yable<VA.P PMS.Contex t.ppms_pat ientservic e> ppms_pa tientservi ceSet
  27717                    {
  27718                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27719                             get
  27720                             {
  27721                                      return t his.Create Query<VA.P PMS.Contex t.ppms_pat ientservic e>();
  27722                             }
  27723                    }
  27724                    
  27725                    ///  <summary>
  27726                    ///  Gets a bin ding to th e set of a ll <see cr ef="VA.PPM S.Context. ppms_provi deragreeme nt"/> enti ties.
  27727                    ///  </summary>
  27728                    publ ic System. Linq.IQuer yable<VA.P PMS.Contex t.ppms_pro videragree ment> ppms _providera greementSe t
  27729                    {
  27730                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27731                             get
  27732                             {
  27733                                      return t his.Create Query<VA.P PMS.Contex t.ppms_pro videragree ment>();
  27734                             }
  27735                    }
  27736                    
  27737                    ///  <summary>
  27738                    ///  Gets a bin ding to th e set of a ll <see cr ef="VA.PPM S.Context. ppms_provi dercredent ial"/> ent ities.
  27739                    ///  </summary>
  27740                    publ ic System. Linq.IQuer yable<VA.P PMS.Contex t.ppms_pro vidercrede ntial> ppm s_provider credential Set
  27741                    {
  27742                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27743                             get
  27744                             {
  27745                                      return t his.Create Query<VA.P PMS.Contex t.ppms_pro vidercrede ntial>();
  27746                             }
  27747                    }
  27748                    
  27749                    ///  <summary>
  27750                    ///  Gets a bin ding to th e set of a ll <see cr ef="VA.PPM S.Context. ppms_provi derlicensu re"/> enti ties.
  27751                    ///  </summary>
  27752                    publ ic System. Linq.IQuer yable<VA.P PMS.Contex t.ppms_pro viderlicen sure> ppms _providerl icensureSe t
  27753                    {
  27754                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27755                             get
  27756                             {
  27757                                      return t his.Create Query<VA.P PMS.Contex t.ppms_pro viderlicen sure>();
  27758                             }
  27759                    }
  27760                    
  27761                    ///  <summary>
  27762                    ///  Gets a bin ding to th e set of a ll <see cr ef="VA.PPM S.Context. ppms_provi derprivile ge"/> enti ties.
  27763                    ///  </summary>
  27764                    publ ic System. Linq.IQuer yable<VA.P PMS.Contex t.ppms_pro viderprivi lege> ppms _providerp rivilegeSe t
  27765                    {
  27766                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27767                             get
  27768                             {
  27769                                      return t his.Create Query<VA.P PMS.Contex t.ppms_pro viderprivi lege>();
  27770                             }
  27771                    }
  27772                    
  27773                    ///  <summary>
  27774                    ///  Gets a bin ding to th e set of a ll <see cr ef="VA.PPM S.Context. ppms_provi derservice "/> entiti es.
  27775                    ///  </summary>
  27776                    publ ic System. Linq.IQuer yable<VA.P PMS.Contex t.ppms_pro viderservi ce> ppms_p roviderser viceSet
  27777                    {
  27778                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27779                             get
  27780                             {
  27781                                      return t his.Create Query<VA.P PMS.Contex t.ppms_pro viderservi ce>();
  27782                             }
  27783                    }
  27784                    
  27785                    ///  <summary>
  27786                    ///  Gets a bin ding to th e set of a ll <see cr ef="VA.PPM S.Context. ppms_provi dertaxonom y"/> entit ies.
  27787                    ///  </summary>
  27788                    publ ic System. Linq.IQuer yable<VA.P PMS.Contex t.ppms_pro vidertaxon omy> ppms_ providerta xonomySet
  27789                    {
  27790                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27791                             get
  27792                             {
  27793                                      return t his.Create Query<VA.P PMS.Contex t.ppms_pro vidertaxon omy>();
  27794                             }
  27795                    }
  27796                    
  27797                    ///  <summary>
  27798                    ///  Gets a bin ding to th e set of a ll <see cr ef="VA.PPM S.Context. ppms_servi ceavailabi lity"/> en tities.
  27799                    ///  </summary>
  27800                    publ ic System. Linq.IQuer yable<VA.P PMS.Contex t.ppms_ser viceavaila bility> pp ms_service availabili tySet
  27801                    {
  27802                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27803                             get
  27804                             {
  27805                                      return t his.Create Query<VA.P PMS.Contex t.ppms_ser viceavaila bility>();
  27806                             }
  27807                    }
  27808                    
  27809                    ///  <summary>
  27810                    ///  Gets a bin ding to th e set of a ll <see cr ef="VA.PPM S.Context. ppms_taxon omy"/> ent ities.
  27811                    ///  </summary>
  27812                    publ ic System. Linq.IQuer yable<VA.P PMS.Contex t.ppms_tax onomy> ppm s_taxonomy Set
  27813                    {
  27814                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27815                             get
  27816                             {
  27817                                      return t his.Create Query<VA.P PMS.Contex t.ppms_tax onomy>();
  27818                             }
  27819                    }
  27820                    
  27821                    ///  <summary>
  27822                    ///  Gets a bin ding to th e set of a ll <see cr ef="VA.PPM S.Context. ppms_vains titutionaf filiation" /> entitie s.
  27823                    ///  </summary>
  27824                    publ ic System. Linq.IQuer yable<VA.P PMS.Contex t.ppms_vai nstitution affiliatio n> ppms_va institutio naffiliati onSet
  27825                    {
  27826                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27827                             get
  27828                             {
  27829                                      return t his.Create Query<VA.P PMS.Contex t.ppms_vai nstitution affiliatio n>();
  27830                             }
  27831                    }
  27832                    
  27833                    ///  <summary>
  27834                    ///  Gets a bin ding to th e set of a ll <see cr ef="VA.PPM S.Context. ppms_vapro vidernetwo rk"/> enti ties.
  27835                    ///  </summary>
  27836                    publ ic System. Linq.IQuer yable<VA.P PMS.Contex t.ppms_vap rovidernet work> ppms _vaprovide rnetworkSe t
  27837                    {
  27838                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27839                             get
  27840                             {
  27841                                      return t his.Create Query<VA.P PMS.Contex t.ppms_vap rovidernet work>();
  27842                             }
  27843                    }
  27844                    
  27845                    ///  <summary>
  27846                    ///  Gets a bin ding to th e set of a ll <see cr ef="VA.PPM S.Context. ppms_vapro viderrelat ionship"/>  entities.
  27847                    ///  </summary>
  27848                    publ ic System. Linq.IQuer yable<VA.P PMS.Contex t.ppms_vap roviderrel ationship>  ppms_vapr oviderrela tionshipSe t
  27849                    {
  27850                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27851                             get
  27852                             {
  27853                                      return t his.Create Query<VA.P PMS.Contex t.ppms_vap roviderrel ationship> ();
  27854                             }
  27855                    }
  27856                    
  27857                    ///  <summary>
  27858                    ///  Gets a bin ding to th e set of a ll <see cr ef="VA.PPM S.Context. va_facilit y"/> entit ies.
  27859                    ///  </summary>
  27860                    publ ic System. Linq.IQuer yable<VA.P PMS.Contex t.va_facil ity> va_fa cilitySet
  27861                    {
  27862                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27863                             get
  27864                             {
  27865                                      return t his.Create Query<VA.P PMS.Contex t.va_facil ity>();
  27866                             }
  27867                    }
  27868                    
  27869                    ///  <summary>
  27870                    ///  Gets a bin ding to th e set of a ll <see cr ef="VA.PPM S.Context. va_region" /> entitie s.
  27871                    ///  </summary>
  27872                    publ ic System. Linq.IQuer yable<VA.P PMS.Contex t.va_regio n> va_regi onSet
  27873                    {
  27874                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27875                             get
  27876                             {
  27877                                      return t his.Create Query<VA.P PMS.Contex t.va_regio n>();
  27878                             }
  27879                    }
  27880                    
  27881                    ///  <summary>
  27882                    ///  Gets a bin ding to th e set of a ll <see cr ef="VA.PPM S.Context. va_state"/ > entities .
  27883                    ///  </summary>
  27884                    publ ic System. Linq.IQuer yable<VA.P PMS.Contex t.va_state > va_state Set
  27885                    {
  27886                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27887                             get
  27888                             {
  27889                                      return t his.Create Query<VA.P PMS.Contex t.va_state >();
  27890                             }
  27891                    }
  27892                    
  27893                    ///  <summary>
  27894                    ///  Gets a bin ding to th e set of a ll <see cr ef="VA.PPM S.Context. va_visn"/>  entities.
  27895                    ///  </summary>
  27896                    publ ic System. Linq.IQuer yable<VA.P PMS.Contex t.va_visn>  va_visnSe t
  27897                    {
  27898                             [Syste m.Diagnost ics.Debugg erNonUserC ode()]
  27899                             get
  27900                             {
  27901                                      return t his.Create Query<VA.P PMS.Contex t.va_visn> ();
  27902                             }
  27903                    }
  27904           }
  27905           
  27906           in ternal sea led class  EntityOpti onSetEnum
  27907           {
  27908                    
  27909                    [Sys tem.Diagno stics.Debu ggerNonUse rCode()]
  27910                    publ ic static  System.Nul lable<int>  GetEnum(M icrosoft.X rm.Sdk.Ent ity entity , string a ttributeLo gicalName)
  27911                    {
  27912                             if (en tity.Attri butes.Cont ainsKey(at tributeLog icalName))
  27913                             {
  27914                                      Microsof t.Xrm.Sdk. OptionSetV alue value  = entity. GetAttribu teValue<Mi crosoft.Xr m.Sdk.Opti onSetValue >(attribut eLogicalNa me);
  27915                                      if (valu e != null)
  27916                                      {
  27917                                               return val ue.Value;
  27918                                      }
  27919                             }
  27920                             return  null;
  27921                    }
  27922           }
  27923   }