本文整理汇总了C#中IZetboxContext类的典型用法代码示例。如果您正苦于以下问题:C# IZetboxContext类的具体用法?C# IZetboxContext怎么用?C# IZetboxContext使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IZetboxContext类属于命名空间,在下文中一共展示了IZetboxContext类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RightsClass
public RightsClass(Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, string className)
: base(_host)
{
this.ctx = ctx;
this.className = className;
}
示例2: Call
public static void Call(Arebis.CodeGeneration.IGenerationHost host, IZetboxContext ctx, ObjectClass cls, string ifName, string implName)
{
if (host == null) { throw new ArgumentNullException("host"); }
string propertyDescriptorName = host.Settings["propertydescriptorname"];
host.CallTemplate("ObjectClasses.CustomTypeDescriptor", ctx, cls, ifName, implName, propertyDescriptorName);
}
示例3: AttachToContextTemplate
public AttachToContextTemplate(Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, ObjectClass cls)
: base(_host)
{
this.ctx = ctx;
this.cls = cls;
}
示例4: SystemTypeViewModel
public SystemTypeViewModel(
IViewModelDependencies appCtx, IZetboxContext dataCtx, ViewModel parent,
Type type)
: base(appCtx, dataCtx, parent)
{
_type = type;
}
示例5: ModelCsdlEntityTypeFields
public ModelCsdlEntityTypeFields(Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, IEnumerable<Property> properties)
: base(_host)
{
this.ctx = ctx;
this.properties = properties;
}
示例6: MakeArgs
public static object[] MakeArgs(IZetboxContext ctx, ObjectClass cls, NameValueCollection templateSettings)
{
if (ctx == null) { throw new ArgumentNullException("ctx"); }
if (cls == null) { throw new ArgumentNullException("cls"); }
if (templateSettings == null) { throw new ArgumentNullException("templateSettings"); }
string extraSuffix = templateSettings["extrasuffix"];
string interfaceName = cls.Name;
string implementationName = cls.Name + extraSuffix + Zetbox.API.Helper.ImplementationSuffix;
string schemaName = cls.Module.SchemaName;
string tableName = cls.TableName;
string qualifiedImplementationName = GetAssemblyQualifiedProxy(cls, templateSettings);
bool isAbstract = cls.IsAbstract;
List<Property> properties = cls.Properties.ToList();
List<ObjectClass> subClasses = cls.SubClasses.ToList();
bool needsRightTable = Templates.ObjectClasses.Template.NeedsRightsTable(cls);
string qualifiedRightsClassName =
cls.Module.Namespace + "."
+ Construct.SecurityRulesClassName(cls) + extraSuffix + Zetbox.API.Helper.ImplementationSuffix
+ ", Zetbox.Objects." + extraSuffix + Zetbox.API.Helper.ImplementationSuffix;
bool needsConcurrency = cls.ImplementsIChangedBy(true);
return new object[] { interfaceName, implementationName, schemaName, tableName, qualifiedImplementationName, isAbstract, properties, subClasses, needsRightTable, needsConcurrency, qualifiedRightsClassName, cls.GetTableMapping() };
}
示例7: ObjectClassViewModel
public ObjectClassViewModel(IViewModelDependencies appCtx,
IZetboxContext dataCtx, ViewModel parent, ObjectClass cls)
: base(appCtx, dataCtx, parent, cls)
{
_cls = cls;
cls.PropertyChanged += ModulePropertyChanged;
}
示例8: ObjectReferencePropertyTemplate
public ObjectReferencePropertyTemplate(Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, Serialization.SerializationMembersList serializationList, string moduleNamespace, string ownInterface, string name, string implName, string eventName, string fkBackingName, string fkGuidBackingName, string referencedInterface, string referencedImplementation, string associationName, string targetRoleName, string positionPropertyName, string inverseNavigatorName, bool inverseNavigatorIsList, bool eagerLoading, bool relDataTypeExportable, bool callGetterSetterEvents, bool isCalculated, bool disableExport)
: base(_host)
{
this.ctx = ctx;
this.serializationList = serializationList;
this.moduleNamespace = moduleNamespace;
this.ownInterface = ownInterface;
this.name = name;
this.implName = implName;
this.eventName = eventName;
this.fkBackingName = fkBackingName;
this.fkGuidBackingName = fkGuidBackingName;
this.referencedInterface = referencedInterface;
this.referencedImplementation = referencedImplementation;
this.associationName = associationName;
this.targetRoleName = targetRoleName;
this.positionPropertyName = positionPropertyName;
this.inverseNavigatorName = inverseNavigatorName;
this.inverseNavigatorIsList = inverseNavigatorIsList;
this.eagerLoading = eagerLoading;
this.relDataTypeExportable = relDataTypeExportable;
this.callGetterSetterEvents = callGetterSetterEvents;
this.isCalculated = isCalculated;
this.disableExport = disableExport;
}
示例9: MakeInternal
private static void MakeInternal(IZetboxContext ctx, ImportedFile obj, File doc)
{
// Clone blob, so it could be deleted
doc.Blob = ctx.Find<Blob>(ctx.CreateBlob(ctx.GetFileInfo(obj.Blob.ID), obj.Blob.MimeType));
doc.Name = obj.Name;
ctx.Delete(obj);
}
示例10: ImportedFileNavigationSearchScreenViewModel
public ImportedFileNavigationSearchScreenViewModel(IViewModelDependencies appCtx, Func<IZetboxContext> ctxFactory,
IZetboxContext dataCtx, ViewModel parent, NavigationScreen screen)
: base(appCtx, dataCtx, ctxFactory, parent, screen)
{
_ctxFactory = ctxFactory;
base.Type = typeof(ImportedFile).GetObjectClass(FrozenContext);
}
示例11: Template
public Template(Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, DataType dataType)
: base(_host)
{
this.ctx = ctx;
this.dataType = dataType;
}
示例12: TypeBase
public TypeBase(Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, DataType DataType)
: base(_host)
{
this.ctx = ctx;
this.DataType = DataType;
}
示例13: ClassesHbm
public ClassesHbm(Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, string extraSuffix)
: base(_host)
{
this.ctx = ctx;
this.extraSuffix = extraSuffix;
}
示例14: ObjectClassViewModel
public ObjectClassViewModel(
IViewModelDependencies appCtx, IZetboxContext dataCtx, ViewModel parent,
ObjectClass cls)
: base(appCtx, dataCtx, parent, cls)
{
_class = cls;
}
示例15: MultiplePropertyGroupViewModel
public MultiplePropertyGroupViewModel(
IViewModelDependencies appCtx, IZetboxContext dataCtx, ViewModel parent,
string title,
IEnumerable<ViewModel> obj)
: base(appCtx, dataCtx, parent, title, obj)
{
}