コード例 #1
0
ファイル: Guild.cs プロジェクト: mateuscezar/netgore
 /// <summary>
 /// Initializes the <see cref="Guild"/> class.
 /// </summary>
 static Guild()
 {
     var dbController = DbControllerBase.GetInstance();
     _countGuildFoundersQuery = dbController.GetQuery<CountGuildFoundersQuery>();
     _deleteGuildQuery = dbController.GetQuery<DeleteGuildQuery>();
     _updateGuildNameQuery = dbController.GetQuery<UpdateGuildNameQuery>();
     _updateGuildTagQuery = dbController.GetQuery<UpdateGuildTagQuery>();
     _selectGuildMembersListQuery = dbController.GetQuery<SelectGuildMembersListQuery>();
     _updateGuildQuery = dbController.GetQuery<UpdateGuildQuery>();
     _selectGuildEventsQuery = dbController.GetQuery<SelectGuildEventsQuery>();
 }
コード例 #2
0
ファイル: Guild.cs プロジェクト: thepirateclub/netgore
        /// <summary>
        /// Initializes the <see cref="Guild"/> class.
        /// </summary>
        static Guild()
        {
            var dbController = DbControllerBase.GetInstance();

            _countGuildFoundersQuery     = dbController.GetQuery <CountGuildFoundersQuery>();
            _deleteGuildQuery            = dbController.GetQuery <DeleteGuildQuery>();
            _updateGuildNameQuery        = dbController.GetQuery <UpdateGuildNameQuery>();
            _updateGuildTagQuery         = dbController.GetQuery <UpdateGuildTagQuery>();
            _selectGuildMembersListQuery = dbController.GetQuery <SelectGuildMembersListQuery>();
            _updateGuildQuery            = dbController.GetQuery <UpdateGuildQuery>();
            _selectGuildEventsQuery      = dbController.GetQuery <SelectGuildEventsQuery>();
        }