|
@@ -5,6 +5,7 @@ using Microsoft.AspNetCore.Hosting;
|
|
using System;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.ComponentModel;
|
|
|
|
+using System.Linq;
|
|
|
|
|
|
namespace NetCoreTest
|
|
namespace NetCoreTest
|
|
{
|
|
{
|
|
@@ -12,7 +13,7 @@ namespace NetCoreTest
|
|
{
|
|
{
|
|
public static void Main(string[] args)
|
|
public static void Main(string[] args)
|
|
{
|
|
{
|
|
- var table = new List<MyClass>() { new MyClass() { MyProperty = "sss", MyProperty1 = 222 } }.ToDataTable();
|
|
|
|
|
|
+ var table = new List<MyClass>() { new MyClass() { MyProperty = "sss", MyProperty1 = 222 } }.Select(c => new { 列1 = c.MyProperty, 列2 = c.MyProperty1 }).ToDataTable();
|
|
|
|
|
|
Console.WriteLine((long)SystemInfo.GetRamInfo().MemoryAvailable);
|
|
Console.WriteLine((long)SystemInfo.GetRamInfo().MemoryAvailable);
|
|
CreateWebHostBuilder(args).Build().Run();
|
|
CreateWebHostBuilder(args).Build().Run();
|