本文整理汇总了C#中IDataConnector.VerifyTableExists方法的典型用法代码示例。如果您正苦于以下问题:C# IDataConnector.VerifyTableExists方法的具体用法?C# IDataConnector.VerifyTableExists怎么用?C# IDataConnector.VerifyTableExists使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IDataConnector
的用法示例。
在下文中一共展示了IDataConnector.VerifyTableExists方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TestThatAllTablesValidate
protected bool TestThatAllTablesValidate(IDataConnector genericData)
{
foreach (var s in schema)
{
if (!genericData.VerifyTableExists(s.X1, s.X2))
{
return false;
}
}
return true;
}
示例2: DebugTestThatAllTablesValidate
public bool DebugTestThatAllTablesValidate(IDataConnector genericData, out SchemaDefinition reason)
{
reason = null;
foreach (var s in Schema.Where(s => !genericData.VerifyTableExists(s.Name, s.Columns, s.Indices)))
{
reason = s;
return false;
}
return true;
}
示例3: TestThatAllTablesValidate
protected bool TestThatAllTablesValidate(IDataConnector genericData)
{
return Schema.All(s => genericData.VerifyTableExists(s.Name, s.Columns, s.Indices));
}
示例4: DebugTestThatAllTablesValidate
public bool DebugTestThatAllTablesValidate(IDataConnector genericData,
out Rec<string, ColumnDefinition[]> reason)
{
reason = new Rec<string, ColumnDefinition[]>();
#if (!ISWIN)
foreach (var s in schema)
{
if (!genericData.VerifyTableExists(s.X1, s.X2))
{
reason = s;
return false;
}
}
#else
foreach (var s in schema.Where(s => !genericData.VerifyTableExists(s.X1, s.X2)))
{
reason = s;
return false;
}
#endif
return true;
}
示例5: TestThatAllTablesValidate
protected bool TestThatAllTablesValidate(IDataConnector genericData)
{
#if (!ISWIN)
foreach (Rec<string, ColumnDefinition[]> s in schema)
{
if (!genericData.VerifyTableExists(s.X1, s.X2)) return false;
}
return true;
#else
return schema.All(s => genericData.VerifyTableExists(s.X1, s.X2));
#endif
}
示例6: TestThatAllTablesValidate
protected bool TestThatAllTablesValidate(IDataConnector genericData)
{
#if (!ISWIN)
foreach (SchemaDefinition s in schema)
{
if (!genericData.VerifyTableExists(s.Name, s.Columns, s.Indices)) return false;
}
return true;
#else
return schema.All(s => genericData.VerifyTableExists(s.Name, s.Columns, s.Indices));
#endif
}