Exemple #1
0
        private void MoveDataToHistory(int businessKey, BusinessDataType dataType)
        {
            DataCommand command = DataCommandManager.GetDataCommand("RealTime_MoveDataToHistory");

            command.SetParameterValue("@BusinessKey", businessKey);
            command.SetParameterValue("@BusinessDataType", dataType);
            command.ExecuteNonQuery();
        }
Exemple #2
0
        private bool IsDataExist(int businessKey, BusinessDataType dataType)
        {
            DataCommand command = DataCommandManager.GetDataCommand("RealTime_IsDataExist");

            command.SetParameterValue("@BusinessKey", businessKey);
            command.SetParameterValue("@BusinessDataType", dataType);
            int result = command.ExecuteScalar <int>();

            return(result > 0);
        }
Exemple #3
0
 public RealTimeDataAttribute(BusinessDataType dataType)
 {
     this.dataType = dataType;
 }