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