DD.WellWorkover.Cloud/ConsoleApp1/Program.cs
2022-11-03 16:57:47 +05:00

51 lines
1.4 KiB
C#

using AsbCloudApp.Data;
using AsbCloudApp.Data.DailyReport;
using AsbCloudDb;
using AsbCloudDb.Model;
using AsbCloudInfrastructure.Services.DailyReport;
using ClosedXML.Excel;
using DocumentFormat.OpenXml.Wordprocessing;
using Microsoft.EntityFrameworkCore;
using Org.BouncyCastle.Utilities.Collections;
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
namespace ConsoleApp1
{
class Program
{
private static AsbCloudDbContext db = ServiceFactory.Context;
// use ServiceFactory to make services
static void Main(/*string[] args*/)
{
var set1 = new int[15].Select((v,i) => i.ToString());
var set2 = new int[5].Select((v, i) => (i + 1000).ToString());
var set3 = new int[5].Select((v, i) => (i + 2000).ToString());
var set4 = new int[5].Select((v, i) => (i + 4000).ToString());
var set5 = new int[8].Select((v, i) => (i + 5000).ToString());
var set6 = new int[3].Select((v, i) => (i + 6000).ToString());
var ca = new CyclycArray<string>(10);
ca.AddRange(set1);
ca.AddRange(set2);
ca.AddRange(set3);
ca.AddRange(set4);
ca.AddRange(set5);
ca.AddRange(set6);
Console.WriteLine($"total time: ms");
Console.ReadLine();
}
}
}