public static void Call(IGenerationHost _host, IZetboxContext ctx, CompoundObjectProperty property, string implementationSuffix, string implementationPropertySuffix) { string propertyName = property.Name; string backingStoreName = propertyName + implementationPropertySuffix; string typeName = property.GetElementTypeString(); string implementationTypeName = typeName + implementationSuffix; Call(_host, ctx, implementationTypeName, propertyName, backingStoreName); }
public static void Call(IGenerationHost _host, IZetboxContext ctx, CompoundObjectProperty property, string implementationSuffix, string implementationPropertySuffix) { string propertyName = property.Name; string backingStoreName = propertyName + implementationPropertySuffix; string typeName = property.GetElementTypeString(); string implementationTypeName = typeName + implementationSuffix; Call(_host, ctx, implementationTypeName, propertyName, backingStoreName); }
public static void Call(IGenerationHost _host, IZetboxContext ctx, CompoundObjectProperty property, bool asCollectionEntry, string implementationSuffix, string implementationPropertySuffix, string lazyCtxProperty) { string propertyName = asCollectionEntry ? "Value" : property.Name; string backingStoreName = propertyName + implementationPropertySuffix; string typeName = property.GetElementTypeString(); string implementationTypeName = typeName + implementationSuffix; string lazyCtxParam = string.IsNullOrEmpty(lazyCtxProperty) ? "null" : lazyCtxProperty; Call(_host, ctx, implementationTypeName, propertyName, backingStoreName, lazyCtxParam); }
public static void Call(Arebis.CodeGeneration.IGenerationHost host, IZetboxContext ctx, Serialization.SerializationMembersList serializationList, CompoundObjectProperty prop, string overridePropName, bool isList, bool hasPersistentOrder) { string xmlNamespace = prop.Module.Namespace; string backingPropertyName = overridePropName + Zetbox.API.Helper.ImplementationSuffix; string backingStoreName = "_" + overridePropName; string coType = prop.GetElementTypeString(); string coImplementationType = coType + host.Settings["extrasuffix"] + Zetbox.API.Helper.ImplementationSuffix; if (isList && hasPersistentOrder) { coType = string.Format("IList<{0}>", coType); coImplementationType = string.Format("IList<{0}>", coImplementationType); } else if (isList && !hasPersistentOrder) { coType = string.Format("ICollection<{0}>", coType); coImplementationType = string.Format("ICollection<{0}>", coImplementationType); } Call(host, ctx, serializationList, xmlNamespace, overridePropName, backingPropertyName, backingStoreName, coType, coImplementationType, prop.DisableExport == true); }
public static void Call(Arebis.CodeGeneration.IGenerationHost host, IZetboxContext ctx, Serialization.SerializationMembersList serializationList, CompoundObjectProperty prop, string overridePropName, bool isList, bool hasPersistentOrder) { string xmlNamespace = prop.Module.Namespace; string backingPropertyName = overridePropName + Zetbox.API.Helper.ImplementationSuffix; string backingStoreName = "_" + overridePropName; string coType = prop.GetElementTypeString(); string coImplementationType = coType + host.Settings["extrasuffix"] + Zetbox.API.Helper.ImplementationSuffix; if (isList && hasPersistentOrder) { coType = string.Format("IList<{0}>", coType); coImplementationType = string.Format("IList<{0}>", coImplementationType); } else if (isList && !hasPersistentOrder) { coType = string.Format("ICollection<{0}>", coType); coImplementationType = string.Format("ICollection<{0}>", coImplementationType); } Call(host, ctx, serializationList, xmlNamespace, overridePropName, backingPropertyName, backingStoreName, coType, coImplementationType, prop.DisableExport == true); }