Esempio n. 1
0
        public SqlNotificationInfo CastEventFromQuery(Contract.Enums.EventDataBase evnet)
        {
            switch (evnet)
            {
            case Contract.Enums.EventDataBase.Insert:
                return(SqlNotificationInfo.Insert);

            case Contract.Enums.EventDataBase.Update:
                return(SqlNotificationInfo.Update);

            case Contract.Enums.EventDataBase.Delete:
                return(SqlNotificationInfo.Delete);

            case Contract.Enums.EventDataBase.SelectWhere:
                return(SqlNotificationInfo.Query);

            default:
                return(SqlNotificationInfo.Unknown);
            }
        }
Esempio n. 2
0
        public SystimeDataAcces.NotificationEntity.Enums.NotificationSqlTypes CastEventFromTable(Contract.Enums.EventDataBase evnet)
        {
            switch (evnet)
            {
            case Contract.Enums.EventDataBase.Insert:
                return(SystimeDataAcces.NotificationEntity.Enums.NotificationSqlTypes.I);

            case Contract.Enums.EventDataBase.Update:
                return(SystimeDataAcces.NotificationEntity.Enums.NotificationSqlTypes.U);

            case Contract.Enums.EventDataBase.Delete:
                return(SystimeDataAcces.NotificationEntity.Enums.NotificationSqlTypes.D);

            default:
                return(SystimeDataAcces.NotificationEntity.Enums.NotificationSqlTypes.U);
            }
        }