public virtual ApiSchemaVersionsResponseModel MapBOToModel(
            BOSchemaVersions boSchemaVersions)
        {
            var model = new ApiSchemaVersionsResponseModel();

            model.SetProperties(boSchemaVersions.Id, boSchemaVersions.Applied, boSchemaVersions.ScriptName);

            return(model);
        }
Ejemplo n.º 2
0
        public virtual BOSchemaVersions MapEFToBO(
            SchemaVersions ef)
        {
            var bo = new BOSchemaVersions();

            bo.SetProperties(
                ef.Id,
                ef.Applied,
                ef.ScriptName);
            return(bo);
        }
Ejemplo n.º 3
0
        public virtual SchemaVersions MapBOToEF(
            BOSchemaVersions bo)
        {
            SchemaVersions efSchemaVersions = new SchemaVersions();

            efSchemaVersions.SetProperties(
                bo.Applied,
                bo.Id,
                bo.ScriptName);
            return(efSchemaVersions);
        }
        public virtual BOSchemaVersions MapModelToBO(
            int id,
            ApiSchemaVersionsRequestModel model
            )
        {
            BOSchemaVersions boSchemaVersions = new BOSchemaVersions();

            boSchemaVersions.SetProperties(
                id,
                model.Applied,
                model.ScriptName);
            return(boSchemaVersions);
        }