Esempio n. 1
0
        public static void InsertConnectionLog(ConnectionLogModel model)
        {
            object urlRefer = (object)model.UrlReferrer ?? DBNull.Value;
            SqlParameter[] param = {
                CreateInParam("@SessionID", SqlDbType.VarChar,100, model.SessionID),
                CreateInParam("@UrlReferrer", SqlDbType.VarChar,255, urlRefer ),
                CreateInParam("@UserIP", SqlDbType.VarChar,20, model.UserIP)
            };

            SqlCommand cmd		= GetRawCommand("INSERT ConnectionLog(SessionID, UrlReferrer, UserIP) VALUES(@SessionID, @UrlReferrer, @UserIP)", param);
            try
            {
                cmd.ExecuteNonQuery();
            }
            finally
            {
                ReleaseCommand(cmd);
            }
        }
Esempio n. 2
0
 /// <summary>
 /// ������ ó�� ���۵ɶ� �α׸� �����Ѵ�.
 /// </summary>
 /// <param name="model"></param>
 public void InsertConnectionLog(ConnectionLogModel model)
 {
     LoggerAccess.InsertConnectionLog( model );
 }