This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object Iso { | |
import scala.deriving._ | |
import scala.quoted._ | |
import shapeless._ | |
inline def construct[A]: A = ${ constructImpl[A] } | |
def constructImpl[A: Type](using q: Quotes) = { | |
import q.reflect._ | |
val ctor = TypeRepr.of[A].classSymbol.get.primaryConstructor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
using System.Reflection.Emit; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using LinqToDB; | |
using LinqToDB.Data; |