コード例 #1
0
        /// <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();
        }
コード例 #2
0
        /// <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();
        }
コード例 #3
0
 /// <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));
 }
コード例 #4
0
 /// <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));
 }