Esempio n. 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the users_log EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTousers_log(users_log users_log)
 {
     base.AddObject("users_log", users_log);
 }
Esempio n. 2
0
 /// <summary>
 /// Create a new users_log object.
 /// </summary>
 /// <param name="user_name">Initial value of the user_name property.</param>
 /// <param name="id">Initial value of the id property.</param>
 public static users_log Createusers_log(global::System.String user_name, global::System.Decimal id)
 {
     users_log users_log = new users_log();
     users_log.user_name = user_name;
     users_log.id = id;
     return users_log;
 }
Esempio n. 3
0
        //void wc_DoLoginCompleted2(LoadOperation<ma_diaban> lo)
        //{
        //    if (lo.Entities.Count() > 0)
        //    {
        //       App.m_kdcs = lo.Entities.ElementAt(0). App.e_menu.Split(';');        
        //    }

        //}

        //void wc_DoLoginCompleted3(LoadOperation<ma_diaban> lo)
        //{
        //    if (lo.Entities.Count() > 0)
        //    {

        //    }

        //}

        void userlog(bool m_thanhcong)
        {
            users_log usr_lg = new users_log
            {
                user_name = txtusername.Text,
                thoi_gian = App.Current_d,
                ip_address = App.ip_address,
                thanhcong = m_thanhcong
            };
            check.users_logs.Add(usr_lg);
            check.SubmitChanges();
        }