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); }
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); }