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