We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I'm trying to migrate into Grpc Code-First. I thrown into a big problem.
I have a project called xyz.Commons in this project I just defined ResponseBase class, Like below:
xyz.Commons
ResponseBase
public abstract class ResponseBase { public bool IsSuccess { get; set; } public string Message { get; set; } }
So in xyz.Presentation.Dto prject I have something similar to this:
xyz.Presentation.Dto
public class CreateUserResponse: ResponseBase { } public class UpdateUserResponse: ResponseBase { } and ...
public class CreateUserResponse: ResponseBase { }
public class UpdateUserResponse: ResponseBase { }
from #19 I learnt that I should have something similar tho this:
[ProtoInclude(10, typeof(CreateUserResponse))] [ProtoInclude(11, typeof(UpdateUserResponse))] public abstract class ResponseBase { [DataMember(Order = 1)] public bool IsSuccess { get; set; } [DataMember(Order = 2)] public string Message { get; set; } }
Which is terrible IMAO. I can't update my xyz.Common project on every changes, because it's a nuget package.
xyz.Common
I just wanna use Sharing by doing this inheritance, I don't even think of Polymorphism there.
Sharing
The text was updated successfully, but these errors were encountered:
@Reza-Noei You can see one solution for this requirement in BSVN/Commons#68
Sorry, something went wrong.
No branches or pull requests
Hi,
I'm trying to migrate into Grpc Code-First.
I thrown into a big problem.
I have a project called
xyz.Commons
in this project I just definedResponseBase
class, Like below:So in
xyz.Presentation.Dto
prject I have something similar to this:public class CreateUserResponse: ResponseBase { }
public class UpdateUserResponse: ResponseBase { }
and ...
from #19 I learnt that I should have something similar tho this:
Which is terrible IMAO. I can't update my
xyz.Common
project on every changes, because it's a nuget package.I just wanna use
Sharing
by doing this inheritance, I don't even think of Polymorphism there.The text was updated successfully, but these errors were encountered: