public static Interface ForCountableCollection(OdcmClass odcmClass) { return(new Interface { Identifier = NamesService.GetCollectionInterfaceName(odcmClass), Methods = global::Vipr.Writer.CSharp.Methods.ForCountableCollectionInterface(odcmClass) }); }
protected FetcherNavigationCollectionProperty(OdcmProperty odcmProperty) : base(odcmProperty) { CollectionType = new Type(NamesService.GetCollectionTypeName((OdcmClass)odcmProperty.Type)); FieldName = NamesService.GetFetcherCollectionFieldName(odcmProperty); InstanceType = NamesService.GetConcreteTypeName(odcmProperty.Type); Type = new Type(NamesService.GetCollectionInterfaceName((OdcmClass)odcmProperty.Type)); }
public static Interface ForCollection(OdcmEntityClass odcmClass) { return(new Interface { Attributes = global::Vipr.Writer.CSharp.Attributes.ForCollectionInterface, Identifier = NamesService.GetCollectionInterfaceName(odcmClass), Namespace = NamesService.GetNamespaceName(odcmClass.Namespace), Methods = global::Vipr.Writer.CSharp.Methods.ForCollectionInterface(odcmClass), Indexers = IndexerSignature.ForCollectionInterface(odcmClass), Interfaces = new[] { new Type(NamesService.GetExtensionTypeName("IReadOnlyQueryableSetBase"), new Type(NamesService.GetConcreteInterfaceName(odcmClass))) } }); }
public static IEnumerable <Type> ForCollection(OdcmClass odcmClass) { return(new List <Type> { new Type(NamesService.GetCollectionInterfaceName(odcmClass)) }); }