SQLHelper.cs using System; using System.Data; using System.Configuration; using System.Data.SqlClient; namespace DAL { public class SQLHelper { #region 私有字段 //获取连接字符串 private static string ConString = ConfigurationManager.ConnectionStrings["ConString…
数据库备份还原类: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; //应用相应的命名空间 using System.Windows.Forms; using System.Collections; using System.IO; using System.Data; using System.Data.SqlC…
You can expose the service in two different endpoints. the SOAP one can use the binding that support SOAP e.g. basicHttpBinding, the RESTful one can use the webHttpBinding. I assume your REST service will be in JSON, in that case, you need to configu…