Пример #1
0
Файл: Ranks.cs Проект: pcstx/OA
        private static int CreateUpdateDeleteRank( Rank rank, DataProviderAction action )
        {
            CSCache.Remove("RanksKey");

            CommonDataProvider dp = CommonDataProvider.Instance();

            return dp.CreateUpdateDeleteRank( rank, action );
        }
Пример #2
0
 public abstract int CreateUpdateDeleteRank( Rank rank, DataProviderAction action );
Пример #3
0
        public static Rank PopulateRankFromIDataReader( IDataReader dr )
        {
            Rank rank = new Rank();

            rank.PostingCountMaximum	= Convert.ToInt32(dr["PostingCountMax"]);
            rank.PostingCountMinimum	= Convert.ToInt32(dr["PostingCountMin"]);
            rank.RankIconUrl			= Convert.ToString(dr["RankIconUrl"]);
            rank.RankId					= Convert.ToInt32(dr["RankId"]);
            rank.RankName				= Convert.ToString(dr["RankName"]);

            return rank;
        }
Пример #4
0
Файл: Ranks.cs Проект: pcstx/OA
 public static int UpdateRank( Rank rank )
 {
     return CreateUpdateDeleteRank( rank, DataProviderAction.Update);
 }