public virtual IEnumerable<Property> GetPropertiesWhichRequireInitialization(CompositeTypeCs compositeType) { return compositeType.ComposedProperties.Where(p => p.ModelType is CompositeType && !p.IsConstant && p.IsRequired && ((CompositeType)p.ModelType).ContainsConstantProperties); }
public override bool IsCollection(CompositeTypeCs compositeType) { if (!compositeType.Name.Value.EndsWith("List")) { return(false); } var properties = compositeType.GetFilteredProperties().Where(p => p.ModelType is SequenceTypeCs); return(properties.Count() == 1); }
public virtual bool IsCollection(CompositeTypeCs compositeType) { return(false); }
public override IEnumerable <Property> GetPropertiesWhichRequireInitialization(CompositeTypeCs compositeType) { var baseProperties = base.GetPropertiesWhichRequireInitialization(compositeType).ToArray(); return(baseProperties.Where(p => p.Name.Value != "AllFields")); }