示例#1
0
        /// <summary>
        /// Save in the LogSessions table
        /// </summary>
        /// <param name="userName"></param>
        /// <param name="password"></param>
        public static void SaveLogIn(string userId)
        {
            UsersAutDataContext context = new UsersAutDataContext();
            LogSession          ses     = new LogSession();

            ses.SessionDate = DateTime.Now;
            ses.UserId      = userId;
            context.LogSessions.InsertOnSubmit(ses);
            context.SubmitChanges();
        }
示例#2
0
 /// <summary>
 /// Save in the LogSessions table
 /// </summary>
 /// <param name="userName"></param>
 /// <param name="password"></param>
 public static void SaveLogIn(string userId)
 {
     UsersAutDataContext context = new UsersAutDataContext();
     LogSession ses = new LogSession();
     ses.SessionDate = DateTime.Now;
     ses.UserId = userId;
     context.LogSessions.InsertOnSubmit(ses);
     context.SubmitChanges();
 }
示例#3
0
 partial void DeleteLogSession(LogSession instance);
示例#4
0
 partial void UpdateLogSession(LogSession instance);
示例#5
0
 partial void InsertLogSession(LogSession instance);
示例#6
0
 partial void DeleteLogSession(LogSession instance);
示例#7
0
 partial void UpdateLogSession(LogSession instance);
示例#8
0
 partial void InsertLogSession(LogSession instance);