Esempio n. 1
0
        //---------------------------------------------------------------------------------------------------------------------

        /// <summary>Creates a new User instance with the specified data structure.</summary>

        /*!
         * /// <param name="context">the execution environment context</param>
         * /// <param name="data">the entity data structure information</param>
         * /// <returns>the created User object</returns>
         */
        public static new UserOpenId GetInstance(IfyContext context, EntityData data)
        {
            UserOpenId result = UserOpenId.GetInstance(context);

            result.Data = data;
            return(result);
        }
Esempio n. 2
0
        //---------------------------------------------------------------------------------------------------------------------

        /// <summary>Creates a new User instance representing the user with the specified ID.</summary>

        /*!
         * /// <param name="context">the execution environment context</param>
         * /// <param name="id">the user ID</param>
         * /// <returns>the created User object</returns>
         */
        public static UserOpenId FromId(IfyContext context, int id)
        {
            UserOpenId result = new UserOpenId(context);

            result.Id = id;
            result.Load();
            return(result);
        }