// Unwrap unwraps the Fact 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 Fact 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 Fact 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 (f *Fact) Unwrap() *Fact {
	tx, ok := f.config.driver.(*txDriver)
	if !ok {
		panic("ent: Fact is not a transactional entity")
	}
	f.config.driver = tx.drv
	return f
}
func ( f * Fact ) Unwrap ( ) * Fact { tx , ok := f . config . driver . ( * txDriver ) if ! ok { panic ( " " ) } f . config . driver = tx . drv return f }
Unwrap unwraps the Fact 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 Fact 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 .