Esempio n. 1
0
    public void SaveUserInfo()
    {
        Debug.Log("application " + Application.persistentDataPath);
        UserProfile user_Data = dbmanager.Table <UserProfile>().FirstOrDefault();

        if (user_Data.Username == null)
        {
            user_Data.Username = UsernameField.text;
            user_Data.ImageUrl = image_path;
            dbmanager.Insert(user_Data);
        }
        else
        {
            user_Data.Username = UsernameField.text;
            user_Data.ImageUrl = image_path;
            dbmanager.UpdateTable(user_Data);
        }
    }
Esempio n. 2
0
 /// <summary>更新一条数据</summary>
 private void updateData(CacheInfo data)
 {
     m_DbManager.UpdateTable(data);
 }