zhanghongzhi1234_EMS/EMSManager/Server.cs
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TemplateProject
{
    //server usually defined in config.ini or config.xml, is is shared by all template, no need defined in single .def file
    public enum ServerType {ORACLE, MYSQL, TCPIP, SCADA, OPC};
    public abstract class Server
    {
        public string name;
        public ServerType serverType;
        public abstract void Init();
        public abstract List<RawTable> GetRawData(string name, bool exactMatch = false);     //get RawData by name
        public abstract DataTable GetQueryData(string sqlstr);     //get RawData by name
        public abstract bool SendData(string command);
        public abstract void Close();           //close connection
        public static readonly log4net.ILog log = DebugUtil.Instance.LOG;
    }
}
