A data service is a component that provides methods to access domain object models from a database by reading them from tables and producing a model or a list of models.
They can also provide methods that produces changes in the database.
Within this framework a data service is a class that implement
Inetdev.Data.IDataServices
or that inherits from
Inetdev.Data.DataServices
, for example:
public class AuditDataServices : DataServices
{
//...
}
A data model will provide the following information related to a database table, this information is provided by their respected properties.
Schema
.Alias
for the table.Table
property.Fields
property.
Table data are filtered from methods within data services, this methods
will use the infrastructure provided by the namespace
Inetdev.Data.Query
to construct query commands in a database
agnostic way.
Usage of this infrastructure can be seen in this sample here.
In this document