// Unwrap unwraps the APIAudit entity that was returned from a transaction after it was closed,
// so that all future queries will be executed through the driver which created the transaction.
Unwrap unwraps the APIAudit entity that was returned from a transaction after it was closed,
so that all future queries will be executed through the driver which created the transaction.
// Unwrap unwraps the APIAudit entity that was returned from a transaction after it was closed // so that all future queries will be executed through the driver which created the transaction .
func (aa *APIAudit) Unwrap() *APIAudit {
	tx, ok := aa.config.driver.(*txDriver)
	if !ok {
		panic("ent: APIAudit is not a transactional entity")
	}
	aa.config.driver = tx.drv
	return aa
}
func ( aa * APIAudit ) Unwrap ( ) * APIAudit { tx , ok := aa . config . driver . ( * txDriver ) if ! ok { panic ( " " ) } aa . config . driver = tx . drv return aa }
Unwrap unwraps the APIAudit entity that was returned from a transaction after it was closed,
so that all future queries will be executed through the driver which created the transaction.
Unwrap unwraps the APIAudit entity that was returned from a transaction after it was closed so that all future queries will be executed through the driver which created the transaction .