Exemplo n.º 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);
        }
Exemplo n.º 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));
        }
Exemplo n.º 3
0
 partial void DeleteSuggestionTable(SuggestionTable instance);
Exemplo n.º 4
0
 partial void UpdateSuggestionTable(SuggestionTable instance);
Exemplo n.º 5
0
 partial void InsertSuggestionTable(SuggestionTable instance);
Exemplo n.º 6
0
 partial void DeleteSuggestionTable(SuggestionTable instance);
Exemplo n.º 7
0
 partial void UpdateSuggestionTable(SuggestionTable instance);
Exemplo n.º 8
0
 partial void InsertSuggestionTable(SuggestionTable instance);