Пример #1
0
 public abstract int CreateUpdateDeleteCensor( Censor censor, DataProviderAction action );
Пример #2
0
 private static int CreateUpdateDeleteCensor( Censor censor, DataProviderAction action )
 {
     CSCache.Remove(CacheKey);
     CommonDataProvider dp = CommonDataProvider.Instance();
     return dp.CreateUpdateDeleteCensor( censor, action );
 }
Пример #3
0
        public static Censor PopulateCenshorFromIDataReader( IDataReader dr )
        {
            Censor censorship = new Censor();

            censorship.Replacement	= Convert.ToString(dr["Replacement"]);
            censorship.Word			= Convert.ToString(dr["Word"]);

            return censorship;
        }
Пример #4
0
 public static int UpdateCensor( Censor censor )
 {
     CSCache.Remove(CacheKey);
     return CreateUpdateDeleteCensor( censor, DataProviderAction.Update);
 }