New Column Filters
This commit is contained in:
parent
0cf7404b85
commit
c30bd9aab3
@ -84,6 +84,7 @@ namespace ServerDatabase.SourceGenerator.Generated
|
||||
string bad = prop.Type.ToString();
|
||||
Console.WriteLine(prop);
|
||||
bad = bad.Replace("ServerDatabase.TableColumn<", "");
|
||||
bad = bad.Remove(0, bad.LastIndexOf(',')) + 1;
|
||||
bad = bad.Remove(bad.LastIndexOf('>'));
|
||||
if (bad.ToLower() == "byte[]") bad = "string";
|
||||
EqualsValueClauseSyntax? equalsSyntax = prop.DeclaringSyntaxReferences[0].GetSyntax() switch
|
||||
|
@ -6,7 +6,7 @@
|
||||
<Nullable>enable</Nullable>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
<IncludeBuildOutput>true</IncludeBuildOutput>
|
||||
<Version>1.0.2-alpha10</Version>
|
||||
<Version>1.0.2-alpha12</Version>
|
||||
<Title>Server Database Source Generator</Title>
|
||||
<Authors>JacobTech</Authors>
|
||||
</PropertyGroup>
|
||||
|
@ -81,6 +81,7 @@ namespace ServerDatabase.SourceGenerator.Generated
|
||||
{
|
||||
string bad = prop.Type.ToString();
|
||||
bad = bad.Replace("ServerDatabase.TableColumn<", "");
|
||||
bad = bad.Remove(0, bad.LastIndexOf(',') + 1);
|
||||
bad = bad.Remove(bad.LastIndexOf('>'));
|
||||
builder.AppendLine($" public {bad} {prop.Name} {{ get; set; }}");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user