I have generated C# Models (POCO objects) from DataWindows which I use in a SnapDevelop Web API project. I am wondering what the best practice is to use these POCO objects in my Xamarin .NET mobile app client project. They are needed in the client project for messaging to the Web API.
One way to do this is to copy the POCO objects into the Xamarin client solution, however they are decorated with attributes that require importing namespaces, including "SnapObjects.Data" and "DWNet.Data". Do I import these namespaces just so the attributes are recognized? Does it add "weight" to the client project, considering the functionality will not be used?
Alternatively, should I just strip out the attributes in the client project copies (it would be nice to use the POCO objects as-is without editing)? Should I compile the POCO objects into a component which is then referenced from both the client Xamarin projects and server Web API project?
I am new to this technology, and would be grateful for some recommendations.