DD.WellWorkover.Cloud/ConsoleApp1/Program.cs

30 lines
801 B
C#

using AsbCloudDb.Model;
using AsbCloudInfrastructure.Services.DailyReport;
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.Context;
//var d = db.TelemetryDataSaubStats.ToList();
//db.RefreshMaterializedViewAsync<TelemetryDataSaubStat>().Wait();
var d = db.WellSectionTypes
.Include(e => e.DrillParamsCollection)
.Include(e => e.WellComposites)
.Include(e => e.WellOperations)
.ToList();
Console.WriteLine("End of Test");
Console.ReadLine();
}
}
}