Пример #1
0
        public void Validate_ShouldSucceed_WhenNonPublicSourcePropertiesAreNotMapped()
        {
            var tms = new TypeMapStore();

            tms.Define<NonPublicMember, Object>();

            try
            {
                tms.Finish();
            }
            catch (TypeMapValidationException)
            {
                Assert.Fail();
            }
        }
Пример #2
0
        static void TypeMapper()
        {
            var orderEntity = new OrderEntity();
            var addOrder = CreateNewOrderPoco();
            TypeMapStore tms = new TypeMapStore();

            tms.Define<OrderEntity, OrderPoco>()
                .MapProperty(a => a.OrderId, b => b.MyId)
                .MapProperty(a => a.Status, b => b.Status);
            //.MapRemainingByConvention(PropertyMapUnresolvedBehavior.None);

            tms.Define<LocalDataStoreSlot, Object>();

            tms.Define<TimeZone, Object>();

            tms.Finish();

            tms.Map<OrderPoco, OrderEntity>(addOrder, orderEntity);

            var yo = 34;
            //dataMapBlock.Delete(addFindResult);
        }