DD.WellWorkover.Cloud/ConsoleApp1/Program.cs
2022-04-28 15:04:13 +05:00

25 lines
673 B
C#

using AsbCloudDb;
using Microsoft.EntityFrameworkCore;
using System;
using System.Linq;
namespace ConsoleApp1
{
class Program
{
static void Main(/*string[] args*/)
{
// use ServiceFactory to make services
var db = ServiceFactory.MakeContext();
var q = db.DetectedOperations
.Include(o => o.OperationCategory)
.Where(o => true)
.SortBy(new string[] { "DateStart desc", "depthstart" });
var sql = q.ToQueryString();
var items = q.ToList();
Console.WriteLine("End of program");
Console.ReadLine();
}
}
}