Files
Masuit.Tools/NetCoreTest/Program.cs
T
懒得勤快 7cfaf4c763 datatable
2019-10-18 14:08:58 +08:00

35 lines
917 B
C#

using Masuit.Tools.Core.Database;
using Masuit.Tools.Hardware;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using System;
using System.Collections.Generic;
using System.ComponentModel;
namespace NetCoreTest
{
public class Program
{
public static void Main(string[] args)
{
var table = new List<MyClass>() { new MyClass() { MyProperty = "sss", MyProperty1 = 222 } }.ToDataTable();
Console.WriteLine((long)SystemInfo.GetRamInfo().MemoryAvailable);
CreateWebHostBuilder(args).Build().Run();
}
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseStartup<Startup>();
}
public class MyClass
{
[Description("test")]
public string MyProperty { get; set; }
public int MyProperty1 { get; set; }
}
}