forked from ddrilling/AsbCloudServer
25 lines
673 B
C#
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();
|
|
}
|
|
}
|
|
}
|