static void Main(string[] args) { Console.WriteLine("Hello World!"); SqlResult sqlResult = QueryAdapter.GetSql("Audits").Where("TableName", "Test").Compile(); var a = MonoFrame.DataBase.DataAccess.Query(sqlResult); Console.ReadLine(); }
public IEnumerable <WeatherForecast> Get() { SqlResult sqlResult = QueryAdapter.GetSql("Audits").Where("TableName", "Test").Compile(); var a = ITGalax.DataBase.DataAccess.Query(sqlResult); var rng = new Random(); return(Enumerable.Range(1, 5).Select(index => new WeatherForecast { Date = DateTime.Now.AddDays(index), TemperatureC = rng.Next(-20, 55), Summary = Summaries[rng.Next(Summaries.Length)] }) .ToArray()); }