Esempio n. 1
0
 public static Interface ForCountableCollection(OdcmClass odcmClass)
 {
     return(new Interface
     {
         Identifier = NamesService.GetCollectionInterfaceName(odcmClass),
         Methods = global::Vipr.Writer.CSharp.Methods.ForCountableCollectionInterface(odcmClass)
     });
 }
Esempio n. 2
0
 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));
 }
Esempio n. 3
0
 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))) }
     });
 }
Esempio n. 4
0
 public static IEnumerable <Type> ForCollection(OdcmClass odcmClass)
 {
     return(new List <Type> {
         new Type(NamesService.GetCollectionInterfaceName(odcmClass))
     });
 }