Beispiel #1
0
        public async Task CustomBinder()
        {
            EntityMapping.RegisterBinder(new TestBinder());

            var result = await new Command(_database)
            {
                new Select
                {
                    Columns =
                    {
                        Constant.Unsafe("Test").As("PropertyOne"),
                        Constant.Unsafe("Test").As("PropertyTwo")
                    }
                }
            }.FetchAsync <TestResult>();

            Assert.Equal("Test", result.PropertyOne);
            Assert.Equal("Value=Test", result.PropertyTwo);
        }