private void MoveDataToHistory(int businessKey, BusinessDataType dataType) { DataCommand command = DataCommandManager.GetDataCommand("RealTime_MoveDataToHistory"); command.SetParameterValue("@BusinessKey", businessKey); command.SetParameterValue("@BusinessDataType", dataType); command.ExecuteNonQuery(); }
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); }
public RealTimeDataAttribute(BusinessDataType dataType) { this.dataType = dataType; }