Пример #1
0
        public static bool AddNewSuggestion(string username, string text)
        {
            DatabaseDataContext db = new DatabaseDataContext(ConnectionString);

            SuggestionTable suggestion = new SuggestionTable()
            {
                Suggestion = text,
                Username = username
            };

            db.SuggestionTables.InsertOnSubmit(suggestion);
            db.SubmitChanges();

            return db.SuggestionTables.Contains(suggestion);
        }
Пример #2
0
        public static bool AddNewSuggestion(string username, string text)
        {
            DatabaseDataContext db = new DatabaseDataContext(ConnectionString);

            SuggestionTable suggestion = new SuggestionTable()
            {
                Suggestion = text,
                Username   = username
            };

            db.SuggestionTables.InsertOnSubmit(suggestion);
            db.SubmitChanges();

            return(db.SuggestionTables.Contains(suggestion));
        }
Пример #3
0
 partial void DeleteSuggestionTable(SuggestionTable instance);
Пример #4
0
 partial void UpdateSuggestionTable(SuggestionTable instance);
Пример #5
0
 partial void InsertSuggestionTable(SuggestionTable instance);
Пример #6
0
 partial void DeleteSuggestionTable(SuggestionTable instance);
Пример #7
0
 partial void UpdateSuggestionTable(SuggestionTable instance);
Пример #8
0
 partial void InsertSuggestionTable(SuggestionTable instance);