本文整理汇总了C#中System.Data.OleDb.OleDbConnection.OperationsOfClass方法的典型用法代码示例。如果您正苦于以下问题:C# OleDbConnection.OperationsOfClass方法的具体用法?C# OleDbConnection.OperationsOfClass怎么用?C# OleDbConnection.OperationsOfClass使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Data.OleDb.OleDbConnection
的用法示例。
在下文中一共展示了OleDbConnection.OperationsOfClass方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Main
public static void Main(string[] args)
{
try
{
string connectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\temp\test.EAP";
using(OleDbConnection connection = new OleDbConnection(connectionString))
{
connection.Open();
DataSet dataSet;
dataSet = connection.OperationsOfClass().OnObjectID(11748).Or().OnObjectName("intercpu").QueryDataSet();
DumpDataSet(dataSet);
ProjectDataSet(dataSet);
dataSet = connection.OperationsOfClass().OnObjectName("intercpu").Or().OnObjectName("mc_fahrt").QueryDataSet();
DumpDataSet(dataSet);
ProjectDataSet(dataSet);
var iDs = connection.Diagrams().OnEqualsGeneric("t_diagram.ShowDetails", 0).QueryDataSet().IDs();
DumpIDs(iDs);
dataSet = connection.Packages().OnPackageName("intercpu").QueryDataSet();
DumpDataSet(dataSet);
string packagePath = "MyModel.Class Model.Sub1.Sub2.Sub3";
//string packagePath = "MC_860/Moduldesign MC/Frameworks";
int packageId = connection.PackageIdByPath(packagePath);
Console.WriteLine("{0}:{1}", packagePath, packageId);
}
}
catch(System.Exception ex)
{
Console.WriteLine(ex.Message);
}
//Console.Write("Press any key to continue . . . ");
//Console.ReadKey(true);
}