12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace HPSocketCS.Extended
- {
-
-
-
- [Serializable]
- public class SQLHelperRequestData
- {
- public SQLHelperRequestData(){
-
- }
- public SQLHelperRequestData(HPSocketCS.Extended.SQLHelperRequestType rType)
- {
- this.RequestType = (int)rType;
- }
- private Int32 _RequestType;
-
-
-
- public Int32 RequestType
- {
- get { return _RequestType; }
- set { _RequestType = value; }
- }
- List<SerSqlCommandItme> serSqlCommandList = new List<SerSqlCommandItme>();
-
-
-
- public List<SerSqlCommandItme> SerSqlCommandList
- {
- get { return serSqlCommandList; }
- set { serSqlCommandList = value; }
- }
-
-
-
- public SerSqlCommandItme GetSerSqlCommand {
- get {
- if (serSqlCommandList.Count > 0)
- {
- return serSqlCommandList[0];
- }
- else {
- return new SerSqlCommandItme();
- }
- }
- }
- byte[] _AttachedData = null;
-
-
-
- public byte[] AttachedData
- {
- get { return _AttachedData; }
- set { _AttachedData = value; }
- }
- string _AttachedMessage = "";
-
-
-
- public string AttachedMessage
- {
- get { return _AttachedMessage; }
- set { _AttachedMessage = value; }
- }
-
-
-
-
-
- public T AttachedDataToObject<T>()
- {
- try
- {
- return (T)HPSocketCS.Extended.DataSetSerializerDeserialize.ObjectDeserialize(this._AttachedData);
- }
- catch
- {
- return default(T);
- }
- }
- }
- }
|