升级到net6.0

This commit is contained in:
不做码农
2022-03-06 14:26:05 +08:00
parent 013b6ea4db
commit 7fe07b104c
50 changed files with 306 additions and 495 deletions

View File

@@ -1,14 +1,14 @@
using Microsoft.AspNetCore.Http;
using Snowflake.Core;
//using Microsoft.AspNetCore.Http;
//using Snowflake.Core;
using System;
namespace ZR.Admin.WebApi.Extensions
{
public static class EntityExtension
{
public static TSource ToCreate<TSource>(this TSource source, HttpContext context = null)
public static TSource ToCreate<TSource>(this TSource source, HttpContext? context = null)
{
var types = source.GetType();
var types = source?.GetType();
//var worker = new IdWorker(1, 1);
//if (types.GetProperty("ID") != null)