/// <summary> /// Public constructor with required data /// </summary> /// <param name="_beachclubuser0"></param> public BeachClubUserLogin(VaalBeachClub.Web.Data.Identity.BeachClubUser _beachclubuser0) { if (_beachclubuser0 == null) { throw new ArgumentNullException(nameof(_beachclubuser0)); } _beachclubuser0.Logins.Add(this); Init(); }
/// <summary> /// Public constructor with required data /// </summary> /// <param name="_beachclubuser0"></param> /// <param name="_beachclubrole1"></param> public BeachClubUserRole(VaalBeachClub.Web.Data.Identity.BeachClubUser _beachclubuser0, VaalBeachClub.Web.Data.Identity.BeachClubRole _beachclubrole1) { if (_beachclubuser0 == null) { throw new ArgumentNullException(nameof(_beachclubuser0)); } _beachclubuser0.UserRoles.Add(this); if (_beachclubrole1 == null) { throw new ArgumentNullException(nameof(_beachclubrole1)); } _beachclubrole1.UserRoles.Add(this); Init(); }
/// <summary> /// Static create function (for use in LINQ queries, etc.) /// </summary> /// <param name="_beachclubuser0"></param> /// <param name="_beachclubrole1"></param> public static BeachClubUserRole Create(VaalBeachClub.Web.Data.Identity.BeachClubUser _beachclubuser0, VaalBeachClub.Web.Data.Identity.BeachClubRole _beachclubrole1) { return(new BeachClubUserRole(_beachclubuser0, _beachclubrole1)); }
/// <summary> /// Static create function (for use in LINQ queries, etc.) /// </summary> /// <param name="_beachclubuser0"></param> public static BeachClubUserLogin Create(VaalBeachClub.Web.Data.Identity.BeachClubUser _beachclubuser0) { return(new BeachClubUserLogin(_beachclubuser0)); }