示例#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();
        }
示例#2
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();
        }
示例#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();
        }
示例#4
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();
        }