Esempio n. 1
0
 /// <summary>
 /// Create a new SiteProfile object.
 /// </summary>
 /// <param name="profileId">Initial value of the ProfileId property.</param>
 /// <param name="profileName">Initial value of the ProfileName property.</param>
 /// <param name="companyName">Initial value of the CompanyName property.</param>
 /// <param name="contactAddress">Initial value of the ContactAddress property.</param>
 /// <param name="contactCity">Initial value of the ContactCity property.</param>
 /// <param name="contactStateRegion">Initial value of the ContactStateRegion property.</param>
 /// <param name="contactPostalCode">Initial value of the ContactPostalCode property.</param>
 /// <param name="contactCountry">Initial value of the ContactCountry property.</param>
 /// <param name="contactPhone">Initial value of the ContactPhone property.</param>
 /// <param name="contactEmail">Initial value of the ContactEmail property.</param>
 /// <param name="adminEmail">Initial value of the AdminEmail property.</param>
 /// <param name="createdOn">Initial value of the CreatedOn property.</param>
 /// <param name="createdByUserId">Initial value of the CreatedByUserId property.</param>
 /// <param name="hasProfileLogo">Initial value of the HasProfileLogo property.</param>
 public static SiteProfile CreateSiteProfile(global::System.Int32 profileId, global::System.String profileName, global::System.String companyName, global::System.String contactAddress, global::System.String contactCity, global::System.String contactStateRegion, global::System.String contactPostalCode, global::System.String contactCountry, global::System.String contactPhone, global::System.String contactEmail, global::System.String adminEmail, global::System.DateTime createdOn, global::System.Int32 createdByUserId, global::System.Boolean hasProfileLogo)
 {
     SiteProfile siteProfile = new SiteProfile();
     siteProfile.ProfileId = profileId;
     siteProfile.ProfileName = profileName;
     siteProfile.CompanyName = companyName;
     siteProfile.ContactAddress = contactAddress;
     siteProfile.ContactCity = contactCity;
     siteProfile.ContactStateRegion = contactStateRegion;
     siteProfile.ContactPostalCode = contactPostalCode;
     siteProfile.ContactCountry = contactCountry;
     siteProfile.ContactPhone = contactPhone;
     siteProfile.ContactEmail = contactEmail;
     siteProfile.AdminEmail = adminEmail;
     siteProfile.CreatedOn = createdOn;
     siteProfile.CreatedByUserId = createdByUserId;
     siteProfile.HasProfileLogo = hasProfileLogo;
     return siteProfile;
 }
Esempio n. 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the SiteProfiles EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSiteProfiles(SiteProfile siteProfile)
 {
     base.AddObject("SiteProfiles", siteProfile);
 }