This question is locked. New answers and comments are not allowed.
I have a project that contains server side code (C# + MS-SQL) that needs to serve several clients, inclucing HTML+JS client, and a C# client
since i hate to write the same code twice - i want to serialize my data between the server and the client using json that can be read by all clients.
but since i have a C# client - i want it use the same class declaration for the serialization and parsing. for that i want to generate a class library project
reference it by the client project and the OpenAccess projects
and configure OA that the specific tables should be mapped to objects derived from a specific object from that shared library project.
My problem is - how do i make OA generate the proper inheritance in the code it generates? (doing it manually is not an option since others will update the same code file - and somone might forget.
PS: Interfaces will work for me almost as good as classes - so such a solution is good as well
since i hate to write the same code twice - i want to serialize my data between the server and the client using json that can be read by all clients.
but since i have a C# client - i want it use the same class declaration for the serialization and parsing. for that i want to generate a class library project
reference it by the client project and the OpenAccess projects
and configure OA that the specific tables should be mapped to objects derived from a specific object from that shared library project.
My problem is - how do i make OA generate the proper inheritance in the code it generates? (doing it manually is not an option since others will update the same code file - and somone might forget.
PS: Interfaces will work for me almost as good as classes - so such a solution is good as well