예제 #1
0
        public static DataTable Get()
        {
            string query = "SELECT * FROM " + TableName;

            return(DatabaseAccesser.GetResult(query));
        }
예제 #2
0
        public static int GetMaxTripId()
        {
            string query = $"SELECT MAX({ColumnTripId}) AS max_id FROM {TableName}";

            return(DatabaseAccesser.GetResult(query).Rows[0].Field <int?>("max_id") ?? 0);
        }
예제 #3
0
 public static void Insert(DataTable dataTable)
 {
     DatabaseAccesser.Insert(TableName, dataTable);
 }