예제 #1
0
        private ResultMappingItem CreateVirtualMappingItem(NSharding.DomainModel.Spi.DomainObject domainObject, DomainObjectElement element)
        {
            var item = new ResultMappingItem()
            {
                NullValue            = element.DefaultValue,
                Property             = element.PropertyName,
                ItemType             = ResultMappingItemType.Virtual,
                Column               = element.Alias,
                ParentDomainObjectId = domainObject.ID
            };

            return(item);
        }
예제 #2
0
        private ResultMappingItem CreateCommonMappingItem(NSharding.DomainModel.Spi.DomainObject domainObject, DomainObjectElement element)
        {
            var item = new ResultMappingItem()
            {
                NullValue            = element.DefaultValue,
                Property             = element.PropertyName,
                ItemType             = ResultMappingItemType.Normal,
                Column               = element.Alias,
                ParentDomainObjectId = domainObject.ID
                                       //Column = domainObject.DataObject.Columns.FirstOrDefault(i => i.ID == element.DataColumnID).ColumnName
            };

            return(item);
        }