本文整理汇总了C#中ISchemaProvider类的典型用法代码示例。如果您正苦于以下问题:C# ISchemaProvider类的具体用法?C# ISchemaProvider怎么用?C# ISchemaProvider使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ISchemaProvider类属于命名空间,在下文中一共展示了ISchemaProvider类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: LoggingSchemaProviderAdapter
public LoggingSchemaProviderAdapter(ISchemaProvider provider)
{
if (provider == null)
throw new ArgumentNullException("provider");
_provider = provider;
Log = log4net.LogManager.GetLogger("Zetbox.Server.Schema." + provider.ConfigName);
}
开发者ID:jrgcubano,项目名称:zetbox,代码行数:7,代码来源:LoggingSchemaProviderAdapter.cs
示例2: StaticModelTypeProvider
public StaticModelTypeProvider(string rootNamespace, string assemblyName, INamingRule namingRule, ISchemaProvider schemaProvider)
{
_rootNamespace = rootNamespace;
_assemblyName = assemblyName;
_namingRule = namingRule;
_schemaProvider = schemaProvider;
}
开发者ID:namics,项目名称:TerrificNet,代码行数:7,代码来源:StaticModelTypeProvider.cs
示例3: ViewEditorDialog
public ViewEditorDialog (ISchemaProvider schemaProvider, bool create, ViewEditorSettings settings)
{
if (schemaProvider == null)
throw new ArgumentNullException ("schemaProvider");
this.schemaProvider = schemaProvider;
this.action = create ? SchemaActions.Create : SchemaActions.Alter;
this.Build();
if (create)
Title = AddinCatalog.GetString ("Create View");
else
Title = AddinCatalog.GetString ("Alter View");
notebook = new Notebook ();
sqlEditor = new SqlEditorWidget ();
sqlEditor.TextChanged += new EventHandler (SqlChanged);
notebook.AppendPage (sqlEditor, new Label (AddinCatalog.GetString ("Definition")));
if (settings.ShowComment) {
commentEditor = new CommentEditorWidget ();
notebook.AppendPage (commentEditor, new Label (AddinCatalog.GetString ("Comment")));
}
notebook.Page = 0;
entryName.Text = view.Name;
vboxContent.PackStart (notebook, true, true, 0);
vboxContent.ShowAll ();
SetWarning (null);
}
开发者ID:Kalnor,项目名称:monodevelop,代码行数:35,代码来源:ViewEditorDialog.cs
示例4: PartialHelperHandler
public PartialHelperHandler(ITerrificTemplateHandler handler, ISchemaProvider schemaProvider, ITemplateRepository templateRepository, IClientTemplateGenerator clientTemplateGenerator)
{
_handler = handler;
_schemaProvider = schemaProvider;
_templateRepository = templateRepository;
_clientTemplateGenerator = clientTemplateGenerator;
}
开发者ID:namics,项目名称:TerrificNet,代码行数:7,代码来源:PartialHelperHandler.cs
示例5: Build
public override Column Build(TableBuilder table, ISchemaProvider schemaBuilder, IList<PostProcess> posts)
{
Column col = base.Build(table, schemaBuilder, posts);
col.IsPrimaryKey = true;
col.AllowNull = false;
return col;
}
开发者ID:simonlaroche,项目名称:machine,代码行数:7,代码来源:PrimaryKeyBuilder.cs
示例6: AbstractSchema
protected AbstractSchema (ISchemaProvider schemaProvider)
{
if (schemaProvider == null)
throw new ArgumentNullException ("schemaProvider");
this.provider = schemaProvider;
}
开发者ID:Kalnor,项目名称:monodevelop,代码行数:7,代码来源:AbstractSchema.cs
示例7: DataTypeSchema
public DataTypeSchema (ISchemaProvider schemaProvider)
: base (schemaProvider)
{
lengthRange = new Range (0);
precisionRange = new Range (0);
scaleRange = new Range (0);
}
开发者ID:JianwenSun,项目名称:mono-soc-2007,代码行数:7,代码来源:DataTypeSchema.cs
示例8: UniqueConstraintEditorWidget
public UniqueConstraintEditorWidget (ISchemaProvider schemaProvider, SchemaActions action)
{
if (schemaProvider == null)
throw new ArgumentNullException ("schemaProvider");
this.schemaProvider = schemaProvider;
this.action = action;
this.Build();
store = new ListStore (typeof (string), typeof (bool), typeof (string), typeof (object));
listUnique.Model = store;
listUnique.Selection.Changed += new EventHandler (SelectionChanged);
columnSelecter.ColumnToggled += new EventHandler (ColumnToggled);
TreeViewColumn colName = new TreeViewColumn ();
colName.Title = AddinCatalog.GetString ("Name");
CellRendererText nameRenderer = new CellRendererText ();
nameRenderer.Editable = true;
nameRenderer.Edited += new EditedHandler (NameEdited);
colName.PackStart (nameRenderer, true);
colName.AddAttribute (nameRenderer, "text", colNameIndex);
listUnique.AppendColumn (colName);
ShowAll ();
}
开发者ID:FreeBSD-DotNet,项目名称:monodevelop,代码行数:31,代码来源:UniqueConstraintEditorWidget.cs
示例9: Schema
private Schema(ISchemaProvider schemaProvider, string urlBase)
{
_lazyTables = new Lazy<TableCollection>(CreateTableCollection);
_lazyFunctions = new Lazy<FunctionCollection>(CreateFunctionCollection);
_schemaProvider = schemaProvider;
_urlBase = urlBase;
}
开发者ID:larsw,项目名称:Simple.OData,代码行数:7,代码来源:Schema.cs
示例10: OutputStream
public OutputStream(TableRef tbl, ISchemaProvider provider)
{
if (tbl == null) throw new ArgumentNullException("tbl");
if (provider == null) throw new ArgumentNullException("provider");
this._provider = provider;
this._tbl = tbl;
}
开发者ID:daszat,项目名称:zetbox,代码行数:7,代码来源:OutputStream.cs
示例11: SelectDynamic
public static Expression SelectDynamic(ParameterExpression currentContextParam, Expression baseExp, IEnumerable<DataApiNode> fieldExpressions, ISchemaProvider schemaProvider)
{
Type dynamicType;
var memberInit = CreateNewExpression(currentContextParam, fieldExpressions, schemaProvider, out dynamicType);
var selector = Expression.Lambda(memberInit, currentContextParam);
return Expression.Call(typeof(Enumerable), "Select", new Type[2] { currentContextParam.Type, dynamicType }, baseExp, selector);
}
开发者ID:lukemurray,项目名称:EntityQueryLanguage,代码行数:7,代码来源:DataApiExpressionUtil.cs
示例12: CheckConstraintEditorWidget
public CheckConstraintEditorWidget (ISchemaProvider schemaProvider, SchemaActions action, CheckConstraintEditorSettings settings)
{
if (settings == null)
throw new ArgumentNullException ("settings");
if (schemaProvider == null)
throw new ArgumentNullException ("schemaProvider");
this.schemaProvider = schemaProvider;
this.settings = settings;
this.action = action;
this.Build();
store = new ListStore (typeof (string), typeof (string), typeof (bool), typeof (string), typeof (object));
listCheck.Model = store;
TreeViewColumn colName = new TreeViewColumn ();
TreeViewColumn colColumn = new TreeViewColumn ();
TreeViewColumn colIsColumnConstraint = new TreeViewColumn ();
colName.Title = AddinCatalog.GetString ("Name");
colColumn.Title = AddinCatalog.GetString ("Column");
colIsColumnConstraint.Title = AddinCatalog.GetString ("Column Constraint");
colColumn.MinWidth = 120; //request a bigger width
CellRendererText nameRenderer = new CellRendererText ();
columnRenderer = new CellRendererCombo ();
CellRendererToggle isColumnConstraintRenderer = new CellRendererToggle ();
nameRenderer.Editable = true;
nameRenderer.Edited += new EditedHandler (NameEdited);
columnRenderer.TextColumn = SortedColumnListStore.ColNameIndex;
columnRenderer.Editable = true;
columnRenderer.Edited += new EditedHandler (ColumnEdited);
isColumnConstraintRenderer.Activatable = true;
isColumnConstraintRenderer.Toggled += new ToggledHandler (IsColumnConstraintToggled);
colName.PackStart (nameRenderer, true);
colColumn.PackStart (columnRenderer, true);
colIsColumnConstraint.PackStart (isColumnConstraintRenderer, true);
colName.AddAttribute (nameRenderer, "text", colNameIndex);
colColumn.AddAttribute (columnRenderer, "text", colColumnNameIndex);
colIsColumnConstraint.AddAttribute (isColumnConstraintRenderer, "active", colIsColumnConstraintIndex);
listCheck.AppendColumn (colName);
if (settings.SupportsColumnConstraints)
listCheck.AppendColumn (colColumn);
if (settings.SupportsColumnConstraints && settings.SupportsTableConstraints)
listCheck.AppendColumn (colIsColumnConstraint);
listCheck.Selection.Changed += new EventHandler (OnSelectionChanged);
sqlEditor.TextChanged += new EventHandler (SourceChanged);
ShowAll ();
}
开发者ID:FreeBSD-DotNet,项目名称:monodevelop,代码行数:60,代码来源:CheckConstraintEditorWidget.cs
示例13: DatabaseSchema
private DatabaseSchema(ISchemaProvider schemaProvider, ProviderHelper providerHelper)
{
_lazyTables = new Lazy<TableCollection>(CreateTableCollection);
_lazyProcedures = new Lazy<ProcedureCollection>(CreateProcedureCollection);
_schemaProvider = schemaProvider;
_providerHelper = providerHelper;
}
开发者ID:hlach,项目名称:Simple.Data,代码行数:7,代码来源:DatabaseSchema.cs
示例14: ModelSsdl
public ModelSsdl(Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, ISchemaProvider schemaProvider)
: base(_host)
{
this.ctx = ctx;
this.schemaProvider = schemaProvider;
}
开发者ID:jrgcubano,项目名称:zetbox,代码行数:7,代码来源:Model.ssdl.Designer.cs
示例15: SchemaManager
public SchemaManager(ISchemaProvider provider, IZetboxContext schema, IZetboxContext savedSchema, ZetboxConfig config)
{
this.config = config;
this.schema = schema;
this.db = provider;
this.Case = new Cases(schema, provider, savedSchema);
}
开发者ID:jrgcubano,项目名称:zetbox,代码行数:7,代码来源:SchemaManager.cs
示例16: ColumnSchema
public ColumnSchema (ISchemaProvider schemaProvider, ISchema parent, string name)
: base (schemaProvider)
{
this.constraints = new ConstraintSchemaCollection ();
this.parent = parent;
this.name = name;
}
开发者ID:FreeBSD-DotNet,项目名称:monodevelop,代码行数:7,代码来源:ColumnSchema.cs
示例17: MigrationInitializer
public MigrationInitializer(IConfiguration configuration, IDatabaseProvider databaseProvider, ISchemaProvider schemaProvider, ICommonTransformations commonTransformations, IConnectionProvider connectionProvider)
{
_configuration = configuration;
_commonTransformations = commonTransformations;
_databaseProvider = databaseProvider;
_schemaProvider = schemaProvider;
_connectionProvider = connectionProvider;
}
开发者ID:Odyl,项目名称:machine.migrations,代码行数:8,代码来源:MigrationInitializer.cs
示例18: SchemaManager
public SchemaManager(ISchemaProvider provider, IZetboxContext schema, IZetboxContext savedSchema, ZetboxConfig config, IEnumerable<IGlobalMigrationFragment> globalMigrationFragments, IEnumerable<IMigrationFragment> migrationFragments)
{
this.config = config;
this.schema = schema;
this.db = provider;
this._globalMigrationFragments = globalMigrationFragments;
this.Case = new Cases(schema, provider, savedSchema, migrationFragments);
}
开发者ID:daszat,项目名称:zetbox,代码行数:8,代码来源:SchemaManager.cs
示例19: ModelSsdlEntityTypeColumns
public ModelSsdlEntityTypeColumns(Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, IEnumerable<Property> properties, string prefix, ISchemaProvider schemaProvider)
: base(_host)
{
this.ctx = ctx;
this.properties = properties;
this.prefix = prefix;
this.schemaProvider = schemaProvider;
}
开发者ID:daszat,项目名称:zetbox,代码行数:9,代码来源:Model.ssdl.EntityTypeColumns.Designer.cs
示例20: TableSchema
public TableSchema (ISchemaProvider schemaProvider, string name)
: base (schemaProvider)
{
Name = name;
columns = new ColumnSchemaCollection ();
constraints = new ConstraintSchemaCollection ();
triggers = new TriggerSchemaCollection ();
}
开发者ID:Kalnor,项目名称:monodevelop,代码行数:9,代码来源:TableSchema.cs
注:本文中的ISchemaProvider类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论