Beispiel #1
0
        public static bool FromDBTable(this AccountPermissionData item, DataRow row)
        {
            if (row == null)
            {
                return(false);
            }

            DBUtility.AsValue(row, "AccountDBKey", out item.AccountDBKey);
            DBUtility.AsValueEnum(row, "PermissionType", out item.PermissionType);
            DBUtility.AsValue(row, "Level", out item.Level);
            DBUtility.AsValue(row, "RegisterTime", out item.RegisterTime);
            return(true);
        }