public static void AddFollowedPerson(FollowedPerson followedPerson) { using (IDbConnection cnn = new SQLiteConnection(LoadConnectionString())) { cnn.Execute("insert into FollowedPerson(FollowedPersonLinkString, FollowDate, UserURL ) values (@FollowedPersonLinkString, @FollowDate, @UserURL)", followedPerson); } }
public void AddFollowedPerson() { var user = SQLiteDatabaseAccess.GetUser("morti", "mati"); var instagramAccount = SQLiteDatabaseAccess.GetInstagramAccount("0765835785"); FollowedPerson followedPerson = new FollowedPerson() { FollowedPersonLinkString = instagramAccount.FollowedPersonLinkString, FollowDate = DateTime.Now, UserURL = "https://www.instagram.com/cacat.la_punga/" }; SQLiteDatabaseAccess.AddFollowedPerson(followedPerson); }