public virtual BODatabaseLog MapEFToBO( DatabaseLog ef) { var bo = new BODatabaseLog(); bo.SetProperties( ef.DatabaseLogID, ef.DatabaseUser, ef.@Event, ef.@Object, ef.PostTime, ef.Schema, ef.Tsql, ef.XmlEvent); return(bo); }
public virtual BODatabaseLog MapModelToBO( int databaseLogID, ApiDatabaseLogRequestModel model ) { BODatabaseLog boDatabaseLog = new BODatabaseLog(); boDatabaseLog.SetProperties( databaseLogID, model.DatabaseUser, model.@Event, model.@Object, model.PostTime, model.Schema, model.Tsql, model.XmlEvent); return(boDatabaseLog); }