当前位置: 首页>>代码示例>>C#>>正文


C# IZetboxContext类代码示例

本文整理汇总了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;

        }
开发者ID:daszat,项目名称:zetbox,代码行数:7,代码来源:RightsClass.Designer.cs

示例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);
        }
开发者ID:daszat,项目名称:zetbox,代码行数:7,代码来源:CustomTypeDescriptor.cs

示例3: AttachToContextTemplate

        public AttachToContextTemplate(Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, ObjectClass cls)
            : base(_host)
        {
			this.ctx = ctx;
			this.cls = cls;

        }
开发者ID:jrgcubano,项目名称:zetbox,代码行数:7,代码来源:AttachToContextTemplate.Designer.cs

示例4: SystemTypeViewModel

 public SystemTypeViewModel(
     IViewModelDependencies appCtx, IZetboxContext dataCtx, ViewModel parent,
     Type type)
     : base(appCtx, dataCtx, parent)
 {
     _type = type;
 }
开发者ID:jrgcubano,项目名称:zetbox,代码行数:7,代码来源:SystemTypeViewModel.cs

示例5: ModelCsdlEntityTypeFields

        public ModelCsdlEntityTypeFields(Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, IEnumerable<Property> properties)
            : base(_host)
        {
			this.ctx = ctx;
			this.properties = properties;

        }
开发者ID:daszat,项目名称:zetbox,代码行数:7,代码来源:Model.csdl.EntityTypeFields.Designer.cs

示例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() };
        }
开发者ID:daszat,项目名称:zetbox,代码行数:29,代码来源:ObjectClassHbm.cs

示例7: ObjectClassViewModel

 public ObjectClassViewModel(IViewModelDependencies appCtx,
     IZetboxContext dataCtx, ViewModel parent, ObjectClass cls)
     : base(appCtx, dataCtx, parent, cls)
 {
     _cls = cls;
     cls.PropertyChanged += ModulePropertyChanged;
 }
开发者ID:daszat,项目名称:zetbox,代码行数:7,代码来源:ObjectClassViewModel.cs

示例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;

        }
开发者ID:jrgcubano,项目名称:zetbox,代码行数:26,代码来源:ObjectReferencePropertyTemplate.Designer.cs

示例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);
 }
开发者ID:jrgcubano,项目名称:zetbox,代码行数:7,代码来源:ImportedFileActions.cs

示例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);
 }
开发者ID:jrgcubano,项目名称:zetbox,代码行数:7,代码来源:ImportedFileNavigationSearchScreenViewModel.cs

示例11: Template

        public Template(Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, DataType dataType)
            : base(_host)
        {
			this.ctx = ctx;
			this.dataType = dataType;

        }
开发者ID:daszat,项目名称:zetbox,代码行数:7,代码来源:Template.Designer.cs

示例12: TypeBase

        public TypeBase(Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, DataType DataType)
            : base(_host)
        {
			this.ctx = ctx;
			this.DataType = DataType;

        }
开发者ID:jrgcubano,项目名称:zetbox,代码行数:7,代码来源:TypeBase.Designer.cs

示例13: ClassesHbm

        public ClassesHbm(Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, string extraSuffix)
            : base(_host)
        {
			this.ctx = ctx;
			this.extraSuffix = extraSuffix;

        }
开发者ID:daszat,项目名称:zetbox,代码行数:7,代码来源:ClassesHbm.Designer.cs

示例14: ObjectClassViewModel

 public ObjectClassViewModel(
     IViewModelDependencies appCtx, IZetboxContext dataCtx, ViewModel parent,
     ObjectClass cls)
     : base(appCtx, dataCtx, parent, cls)
 {
     _class = cls;
 }
开发者ID:daszat,项目名称:zetbox,代码行数:7,代码来源:ObjectClassViewModel.cs

示例15: MultiplePropertyGroupViewModel

 public MultiplePropertyGroupViewModel(
     IViewModelDependencies appCtx, IZetboxContext dataCtx, ViewModel parent,
     string title,
     IEnumerable<ViewModel> obj)
     : base(appCtx, dataCtx, parent, title, obj)
 {
 }
开发者ID:jrgcubano,项目名称:zetbox,代码行数:7,代码来源:PropertyGroupViewModel.cs


注:本文中的IZetboxContext类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。