Skip to content

Commit

Permalink
Modified code gen to reduce code gen output from 8 lines to 1 line fo…
Browse files Browse the repository at this point in the history
…r entities without any children.
  • Loading branch information
gmcelhanon committed Feb 13, 2024
1 parent 7d9fe22 commit a8dca27
Show file tree
Hide file tree
Showing 10 changed files with 490 additions and 2,341 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,7 @@ bool IMappingContract.IsMemberSupported(string memberName)
}
}

bool IMappingContract.IsItemCreatable(string memberName)
{
switch (memberName)
{
default:
throw new Exception($"Unknown member '{memberName}'.");
}
}
bool IMappingContract.IsItemCreatable(string memberName) => throw new Exception($"Member '{memberName}' does not exist.");

}

Expand Down Expand Up @@ -204,14 +197,7 @@ bool IMappingContract.IsMemberSupported(string memberName)
}
}

bool IMappingContract.IsItemCreatable(string memberName)
{
switch (memberName)
{
default:
throw new Exception($"Unknown member '{memberName}'.");
}
}
bool IMappingContract.IsItemCreatable(string memberName) => throw new Exception($"Member '{memberName}' does not exist.");

}

Expand Down Expand Up @@ -460,14 +446,7 @@ bool IMappingContract.IsMemberSupported(string memberName)
}
}

bool IMappingContract.IsItemCreatable(string memberName)
{
switch (memberName)
{
default:
throw new Exception($"Unknown member '{memberName}'.");
}
}
bool IMappingContract.IsItemCreatable(string memberName) => throw new Exception($"Member '{memberName}' does not exist.");

}

Expand Down Expand Up @@ -606,14 +585,7 @@ bool IMappingContract.IsMemberSupported(string memberName)
}
}

bool IMappingContract.IsItemCreatable(string memberName)
{
switch (memberName)
{
default:
throw new Exception($"Unknown member '{memberName}'.");
}
}
bool IMappingContract.IsItemCreatable(string memberName) => throw new Exception($"Member '{memberName}' does not exist.");

}

Expand Down Expand Up @@ -818,14 +790,7 @@ bool IMappingContract.IsMemberSupported(string memberName)
}
}

bool IMappingContract.IsItemCreatable(string memberName)
{
switch (memberName)
{
default:
throw new Exception($"Unknown member '{memberName}'.");
}
}
bool IMappingContract.IsItemCreatable(string memberName) => throw new Exception($"Member '{memberName}' does not exist.");

}

Expand Down
Loading

0 comments on commit a8dca27

Please sign in to comment.