public virtual ApiCompositePrimaryKeyResponseModel MapBOToModel( BOCompositePrimaryKey boCompositePrimaryKey) { var model = new ApiCompositePrimaryKeyResponseModel(); model.SetProperties(boCompositePrimaryKey.Id, boCompositePrimaryKey.Id2); return(model); }
public virtual BOCompositePrimaryKey MapEFToBO( CompositePrimaryKey ef) { var bo = new BOCompositePrimaryKey(); bo.SetProperties( ef.Id, ef.Id2); return(bo); }
public virtual CompositePrimaryKey MapBOToEF( BOCompositePrimaryKey bo) { CompositePrimaryKey efCompositePrimaryKey = new CompositePrimaryKey(); efCompositePrimaryKey.SetProperties( bo.Id, bo.Id2); return(efCompositePrimaryKey); }
public virtual BOCompositePrimaryKey MapModelToBO( int id, ApiCompositePrimaryKeyRequestModel model ) { BOCompositePrimaryKey boCompositePrimaryKey = new BOCompositePrimaryKey(); boCompositePrimaryKey.SetProperties( id, model.Id2); return(boCompositePrimaryKey); }