Open ronnieoverby opened 5 months ago
Same issue here. Would be great to be able to specify either a namespace or a custom extension method name. Preferably both.
[GenerateDataReaderMapper(NameSpace = "MyProject.Customers")]
public sealed class Customer;
[GenerateDataReaderMapper(NameSpace = "MyProject.Orders")]
public sealed class Customer;
[GenerateDataReaderMapper(MethodName = "ToCustomer")]
public sealed class Customer;
...
reader.ToCustomer();
[GenerateDataReaderMapper(MethodName = "ToOrderCustomer")]
public sealed class Customer;
...
reader.ToOrderCustomer();
I use a code generator to generate classes to represent my sql schema.
The generator generates code like this:
In another file I put your attribute on my RowData types:
But since I have multiple types with the same name, your generator fails to do anything.