示例#1
0
        /// <summary>
        /// Applies the custom settings to the <see cref="DbClassGenerator"/>.
        /// </summary>
        /// <param name="gen">The <see cref="DbClassGenerator"/> to apply the custom settings to.</param>
        public void ApplySettings(DbClassGenerator gen)
        {
            gen.Formatter.AddAlias("shop_id", "ShopID");

            gen.AddCustomType(typeof(ShopID), "shop", "id");

            gen.AddCustomType(typeof(ShopID), "*", "shop_id");
        }
示例#2
0
        /// <summary>
        /// Applies the custom settings to the <see cref="DbClassGenerator"/>.
        /// </summary>
        /// <param name="gen">The <see cref="DbClassGenerator"/> to apply the custom settings to.</param>
        public void ApplySettings(DbClassGenerator gen)
        {
            gen.Formatter.AddAlias("shop_id", "ShopID");

            gen.AddCustomType(typeof(ShopID), "shop", "id");

            gen.AddCustomType(typeof(ShopID), "*", "shop_id");
        }
示例#3
0
        /// <summary>
        /// Applies the custom settings to the <see cref="DbClassGenerator"/>.
        /// </summary>
        /// <param name="gen">The <see cref="DbClassGenerator"/> to apply the custom settings to.</param>
        public void ApplySettings(DbClassGenerator gen)
        {
            gen.Formatter.AddAlias("quest_id", "QuestID");
            gen.Formatter.AddAlias("req_quest_id", "ReqQuestID");

            gen.AddCustomType(typeof(QuestID), "quest", "id");

            gen.AddCustomType(typeof(QuestID), "*", "quest_id", "req_quest_id");
        }
示例#4
0
        /// <summary>
        /// Applies the custom settings to the <see cref="DbClassGenerator"/>.
        /// </summary>
        /// <param name="gen">The <see cref="DbClassGenerator"/> to apply the custom settings to.</param>
        public void ApplySettings(DbClassGenerator gen)
        {
            gen.Formatter.AddAlias("guild_id", "GuildID");

            gen.AddCustomType(typeof(GuildID), "guild", "id");

            gen.AddCustomType(typeof(GuildID), "*", "guild_id");
            gen.AddCustomType(typeof(GuildRank), "guild_member", "rank");
        }
示例#5
0
        /// <summary>
        /// Applies the custom settings to the <see cref="DbClassGenerator"/>.
        /// </summary>
        /// <param name="gen">The <see cref="DbClassGenerator"/> to apply the custom settings to.</param>
        public void ApplySettings(DbClassGenerator gen)
        {
            gen.Formatter.AddAlias("quest_id", "QuestID");
            gen.Formatter.AddAlias("req_quest_id", "ReqQuestID");

            gen.AddCustomType(typeof(QuestID), "quest", "id");

            gen.AddCustomType(typeof(QuestID), "*", "quest_id", "req_quest_id");
        }