Esempio n. 1
0
        public static void RemoveTwitterAccount(string accountName)
        {
            SYMData db = new SYMData(ConfigurationHelper.Instance.DBConnectionString);

            TwitterAccounts toDelete = db.TwitterAccounts.Single(account => account.AccountName == accountName);

            db.TwitterAccounts.DeleteOnSubmit(toDelete);
            db.SubmitChanges();
        }
Esempio n. 2
0
        public static void AddTwitterAccount(string accountName, string accessTokenString, string verificationString)
        {
            SYMData db = new SYMData(ConfigurationHelper.Instance.DBConnectionString);
            TwitterAccounts account = new TwitterAccounts();
            account.AccountName = accountName;
            account.AccessToken = accessTokenString;
            account.VerificationString = verificationString;

            db.TwitterAccounts.InsertOnSubmit(account);
            db.SubmitChanges();
        }
Esempio n. 3
0
        public static void AddTwitterAccount(string accountName, string accessTokenString, string verificationString)
        {
            SYMData         db      = new SYMData(ConfigurationHelper.Instance.DBConnectionString);
            TwitterAccounts account = new TwitterAccounts();

            account.AccountName        = accountName;
            account.AccessToken        = accessTokenString;
            account.VerificationString = verificationString;

            db.TwitterAccounts.InsertOnSubmit(account);
            db.SubmitChanges();
        }