WELOA.DAL/WEL/ls_informationDAO.cs
(开头部分) 10KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Data;
using WELOA.Model;
using System.Configuration;
namespace LSDAL_SQL
{
public class ls_informationDAO
{
private SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["lsstring"].ConnectionString);
private ls_exception exlog = new ls_exception();
private Polytechnic trinfo = new Polytechnic();
public Polytechnic databack(string strDataName)
{
this.trinfo.nException = -1;
SqlCommand command = this.conn.CreateCommand();
command.CommandText = "backup database " + strDataName + " to disk= '" + strDataName + @"\" + DateTime.Now.ToString("yyyyMMddHHmmss") + ".bak'";
try
{
if (this.conn.State == ConnectionState.Closed)
{
this.conn.Open();
}
command.ExecuteNonQuery();
this.conn.Close();
this.trinfo.rowsnum = 1;
}
catch (Exception exception)
{
this.exlog.insexception("ls_informationDAO.cs databack", exception.Message);
this.trinfo.nException = 1;
return this.trinfo;
}
return this.trinfo;
}
public FileSetInformation datainfo(string dataType)
{
FileSetInformation FileSetInformation = new FileSetInformation {
nException = -1,
strPatch = ""
};
using (SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["lsstring"].ConnectionString))
{
SqlCommand command;
string str = "";
string str2 = dataType;
if (str2 != null)
{
if (!(str2 == "SQL2000"))
{
if (str2 == "SQL2005")
{
后面还有 215 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
