-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathclsFunc.cs
28 lines (27 loc) · 892 Bytes
/
clsFunc.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
//using System.Threading.Tasks;
using System.Data.SqlClient;
namespace MultiFaceRec
{
public class clsFunc
{
CommonClasses cc = new CommonClasses();
ConnectionString cs = new ConnectionString();
public void LogFunc(string st1, DateTime st2, string st3)
{
cc.con = new SqlConnection(cs.DBConn);
cc.con.Open();
string cb = "insert into Logs(UserID,Date,Operation) VALUES (@d1,@d2,@d3)";
cc.cmd = new SqlCommand(cb);
cc.cmd.Connection = cc.con;
cc.cmd.Parameters.AddWithValue("@d1",st1);
cc.cmd.Parameters.AddWithValue("@d2",st2);
cc.cmd.Parameters.AddWithValue("@d3",st3);
// cc.cmd.ExecuteReader();
cc.con.Close();
}
}
}