Exemplo n.º 1
0
        // fetch by Primary key into current object
        // links:
        //  crud definition: https://en.wikipedia.org/wiki/Create,_read,_update_and_delete
        //  docLink: http://sql2x.org/documentationLink/fdcc33b4-08f1-43c3-ae28-95fbf029c3bd
        // parameters:
        //  CrudeDefaultErrorData: primary key of table CrudeDefaultErrorData
        public CrudeDefaultErrorModel FetchByDefaultErrorId(System.Guid defaultErrorId)
        {
            var dataAccessLayer = new CrudeDefaultErrorData();
            var model           = new CrudeDefaultErrorModel();

            dataAccessLayer.FetchByDefaultErrorId(defaultErrorId);
            DataToModel(dataAccessLayer, model);

            return(model);
        }
Exemplo n.º 2
0
        // fetch by Primary key into current object
        // links:
        //  docLink: http://sql2x.org/documentationLink/bbab4791-c9e7-49bf-90d5-fca19b1fedaa
        // parameters:
        //  defaultErrorId: primary key of table default_error
        public CrudeDefaultErrorContract FetchByDefaultErrorId(System.Guid defaultErrorId)
        {
            var dataAccessLayer = new CrudeDefaultErrorData();
            var contract        = new CrudeDefaultErrorContract();

            dataAccessLayer.FetchByDefaultErrorId(defaultErrorId);
            DataToContract(dataAccessLayer, contract);

            return(contract);
        }