|
|
|
@ -1,4 +1,5 @@ |
|
|
|
using Microsoft.EntityFrameworkCore; |
|
|
|
using Microsoft.EntityFrameworkCore.Metadata; |
|
|
|
using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Linq; |
|
|
|
@ -8,6 +9,7 @@ using System.Threading.Tasks; |
|
|
|
|
|
|
|
namespace Shentun.Peis.EntityFrameworkCore |
|
|
|
{ |
|
|
|
/* |
|
|
|
public static class SnakeToCamelCase |
|
|
|
{ |
|
|
|
[Flags] |
|
|
|
@ -49,6 +51,7 @@ namespace Shentun.Peis.EntityFrameworkCore |
|
|
|
if (convertAll || convertProperties) |
|
|
|
foreach (var property in entity.GetProperties()) |
|
|
|
{ |
|
|
|
|
|
|
|
property.SetColumnName(property.GetColumnName().ToSnakeCase()); |
|
|
|
} |
|
|
|
|
|
|
|
@ -74,4 +77,5 @@ namespace Shentun.Peis.EntityFrameworkCore |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
*/ |
|
|
|
} |