本文整理汇总了C#中EntitySpaces.Interfaces.esProviderSpecificMetadata类的典型用法代码示例。如果您正苦于以下问题:C# esProviderSpecificMetadata类的具体用法?C# esProviderSpecificMetadata怎么用?C# esProviderSpecificMetadata使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
esProviderSpecificMetadata类属于EntitySpaces.Interfaces命名空间,在下文中一共展示了esProviderSpecificMetadata类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: esVistaDB4
private esProviderSpecificMetadata esVistaDB4(string mapName)
{
if(!m_providerMetadataMaps.ContainsKey(mapName))
{
esProviderSpecificMetadata meta = new esProviderSpecificMetadata();
meta.AddTypeMap("ShipperID", new esTypeMap("Int", "System.Int32"));
meta.AddTypeMap("CompanyName", new esTypeMap("NVarChar", "System.String"));
meta.AddTypeMap("Phone", new esTypeMap("NVarChar", "System.String"));
meta.Catalog = "Northwind.vdb4";
meta.Source = "Shippers";
meta.Destination = "Shippers";
meta.spInsert = "proc_ShippersInsert";
meta.spUpdate = "proc_ShippersUpdate";
meta.spDelete = "proc_ShippersDelete";
meta.spLoadAll = "proc_ShippersLoadAll";
meta.spLoadByPrimaryKey = "proc_ShippersLoadByPrimaryKey";
m_providerMetadataMaps["esVistaDB4"] = meta;
}
return m_providerMetadataMaps["esVistaDB4"];
}
示例2: esSQLite
private esProviderSpecificMetadata esSQLite(string mapName)
{
if(!m_providerMetadataMaps.ContainsKey(mapName))
{
esProviderSpecificMetadata meta = new esProviderSpecificMetadata();
meta.AddTypeMap("Id", new esTypeMap("integer", "System.Int32"));
meta.AddTypeMap("Name", new esTypeMap("varchar", "System.String"));
meta.AddTypeMap("Parent", new esTypeMap("integer", "System.Int32"));
meta.AddTypeMap("ConcurrencyCheck", new esTypeMap("integer", "System.Int32"));
meta.AddTypeMap("DefaultTest", new esTypeMap("datetime", "System.DateTime"));
meta.AddTypeMap("ColumnA", new esTypeMap("integer", "System.Int32"));
meta.AddTypeMap("ColumnB", new esTypeMap("integer", "System.Int32"));
meta.AddTypeMap("ComputedAB", new esTypeMap("integer", "System.Int32"));
meta.Catalog = "main";
meta.Source = "ConcurrencyTestChild";
meta.Destination = "ConcurrencyTestChild";
meta.spInsert = "proc_ConcurrencyTestChildInsert";
meta.spUpdate = "proc_ConcurrencyTestChildUpdate";
meta.spDelete = "proc_ConcurrencyTestChildDelete";
meta.spLoadAll = "proc_ConcurrencyTestChildLoadAll";
meta.spLoadByPrimaryKey = "proc_ConcurrencyTestChildLoadByPrimaryKey";
m_providerMetadataMaps["esSQLite"] = meta;
}
return m_providerMetadataMaps["esSQLite"];
}
开发者ID:stacyjeptha,项目名称:EntitySpaces-CompleteSource,代码行数:31,代码来源:ConcurrencyTestChildMetadataesSQLite.cs
示例3: esOracle
private esProviderSpecificMetadata esOracle(string mapName)
{
if(!m_providerMetadataMaps.ContainsKey(mapName))
{
esProviderSpecificMetadata meta = new esProviderSpecificMetadata();
meta.AddTypeMap("OrderID", new esTypeMap("NUMBER", "System.Decimal"));
meta.AddTypeMap("CustID", new esTypeMap("CHAR", "System.String"));
meta.AddTypeMap("CustSub", new esTypeMap("CHAR", "System.String"));
meta.AddTypeMap("PlacedBy", new esTypeMap("VARCHAR2", "System.String"));
meta.AddTypeMap("OrderDate", new esTypeMap("TIMESTAMP", "System.DateTime"));
meta.AddTypeMap("ConcurrencyCheck", new esTypeMap("NUMBER", "System.Decimal"));
meta.AddTypeMap("EmployeeID", new esTypeMap("NUMBER", "System.Decimal"));
meta["AutoKeyText"] = "seq_Order";
meta.Catalog = "HIERARCHICAL";
meta.Schema = "HIERARCHICAL";
meta.Source = "Order";
meta.Destination = "Order";
meta.spInsert = "esOrderInsert";
meta.spUpdate = "esOrderUpdate";
meta.spDelete = "esOrderDelete";
meta.spLoadAll = "esOrderLoadAll";
meta.spLoadByPrimaryKey = "esOrderLoadByPK";
m_providerMetadataMaps["esOracle"] = meta;
}
return m_providerMetadataMaps["esOracle"];
}
示例4: esMySQL
private esProviderSpecificMetadata esMySQL(string mapName)
{
if(!m_providerMetadataMaps.ContainsKey(mapName))
{
esProviderSpecificMetadata meta = new esProviderSpecificMetadata();
meta.AddTypeMap("OrderID", new esTypeMap("INT", "System.Int32"));
meta.AddTypeMap("ProductID", new esTypeMap("INT", "System.Int32"));
meta.AddTypeMap("UnitPrice", new esTypeMap("DECIMAL", "System.Decimal"));
meta.AddTypeMap("Quantity", new esTypeMap("SMALLINT", "System.Int16"));
meta.AddTypeMap("Discount", new esTypeMap("DOUBLE", "System.Double"));
meta.Catalog = "northwind";
meta.Source = "order details";
meta.Destination = "order details";
meta.spInsert = "proc_order detailsInsert";
meta.spUpdate = "proc_order detailsUpdate";
meta.spDelete = "proc_order detailsDelete";
meta.spLoadAll = "proc_order detailsLoadAll";
meta.spLoadByPrimaryKey = "proc_order detailsLoadByPrimaryKey";
m_providerMetadataMaps["esMySQL"] = meta;
}
return m_providerMetadataMaps["esMySQL"];
}
示例5: esPgsql
private esProviderSpecificMetadata esPgsql(string mapName)
{
if(!m_providerMetadataMaps.ContainsKey(mapName))
{
esProviderSpecificMetadata meta = new esProviderSpecificMetadata();
meta.AddTypeMap("EmployeeID", new esTypeMap("int8", "System.Int64"));
meta.AddTypeMap("ReferredID", new esTypeMap("int8", "System.Int64"));
meta.Catalog = "ForeignKeyTest";
meta.Schema = "public";
meta.Source = "ReferredEmployee";
meta.Destination = "ReferredEmployee";
meta.spInsert = "proc_ReferredEmployeeInsert";
meta.spUpdate = "proc_ReferredEmployeeUpdate";
meta.spDelete = "proc_ReferredEmployeeDelete";
meta.spLoadAll = "proc_ReferredEmployeeLoadAll";
meta.spLoadByPrimaryKey = "proc_ReferredEmployeeLoadByPrimaryKey";
m_providerMetadataMaps["esPgsql"] = meta;
}
return m_providerMetadataMaps["esPgsql"];
}
示例6: esMySQL
private esProviderSpecificMetadata esMySQL(string mapName)
{
if(!m_providerMetadataMaps.ContainsKey(mapName))
{
esProviderSpecificMetadata meta = new esProviderSpecificMetadata();
meta.AddTypeMap("Id", new esTypeMap("CHAR", "System.String"));
meta.AddTypeMap("Name", new esTypeMap("VARCHAR", "System.String"));
meta.AddTypeMap("ConcurrencyCheck", new esTypeMap("BIGINT", "System.Int64"));
meta.Catalog = "aggregatedb";
meta.Source = "concurrencytest";
meta.Destination = "concurrencytest";
meta.spInsert = "proc_concurrencytestInsert";
meta.spUpdate = "proc_concurrencytestUpdate";
meta.spDelete = "proc_concurrencytestDelete";
meta.spLoadAll = "proc_concurrencytestLoadAll";
meta.spLoadByPrimaryKey = "proc_concurrencytestLoadByPrimaryKey";
m_providerMetadataMaps["esMySQL"] = meta;
}
return m_providerMetadataMaps["esMySQL"];
}
示例7: esOracle
private esProviderSpecificMetadata esOracle(string mapName)
{
if(!m_providerMetadataMaps.ContainsKey(mapName))
{
esProviderSpecificMetadata meta = new esProviderSpecificMetadata();
meta.AddTypeMap("OrderID", new esTypeMap("NUMBER", "System.Decimal"));
meta.AddTypeMap("ProductID", new esTypeMap("NUMBER", "System.Decimal"));
meta.AddTypeMap("UnitPrice", new esTypeMap("NUMBER", "System.Decimal"));
meta.AddTypeMap("Quantity", new esTypeMap("NUMBER", "System.Decimal"));
meta.AddTypeMap("Discount", new esTypeMap("NUMBER", "System.Decimal"));
meta.Catalog = "HIERARCHICAL";
meta.Schema = "HIERARCHICAL";
meta.Source = "OrderItem";
meta.Destination = "OrderItem";
meta.spInsert = "esOrderItemInsert";
meta.spUpdate = "esOrderItemUpdate";
meta.spDelete = "esOrderItemDelete";
meta.spLoadAll = "esOrderItemLoadAll";
meta.spLoadByPrimaryKey = "esOrderItemLoadByPK";
m_providerMetadataMaps["esOracle"] = meta;
}
return m_providerMetadataMaps["esOracle"];
}
示例8: esSqlCe
private esProviderSpecificMetadata esSqlCe(string mapName)
{
if(!m_providerMetadataMaps.ContainsKey(mapName))
{
esProviderSpecificMetadata meta = new esProviderSpecificMetadata();
meta.AddTypeMap("Id", new esTypeMap("int", "System.Int32"));
meta.AddTypeMap("DepartmentID", new esTypeMap("int", "System.Int32"));
meta.AddTypeMap("FirstName", new esTypeMap("nvarchar", "System.String"));
meta.AddTypeMap("LastName", new esTypeMap("nvarchar", "System.String"));
meta.AddTypeMap("Age", new esTypeMap("int", "System.Int32"));
meta.AddTypeMap("HireDate", new esTypeMap("datetime", "System.DateTime"));
meta.AddTypeMap("Salary", new esTypeMap("numeric", "System.Decimal"));
meta.AddTypeMap("IsActive", new esTypeMap("bit", "System.Boolean"));
meta.Catalog = "AggregateDb.sdf";
meta.Source = "AggregateTest";
meta.Destination = "AggregateTest";
meta.spInsert = "proc_AggregateTestInsert";
meta.spUpdate = "proc_AggregateTestUpdate";
meta.spDelete = "proc_AggregateTestDelete";
meta.spLoadAll = "proc_AggregateTestLoadAll";
meta.spLoadByPrimaryKey = "proc_AggregateTestLoadByPrimaryKey";
m_providerMetadataMaps["esSqlCe"] = meta;
}
return m_providerMetadataMaps["esSqlCe"];
}
示例9: esAccess
private esProviderSpecificMetadata esAccess(string mapName)
{
if(!m_providerMetadataMaps.ContainsKey(mapName))
{
esProviderSpecificMetadata meta = new esProviderSpecificMetadata();
meta.AddTypeMap("TerritoryID", new esTypeMap("Long", "System.Int32"));
meta.AddTypeMap("Notes", new esTypeMap("Text", "System.String"));
meta.Catalog = "ForeignKeyTest.mdb";
meta.Source = "TerritoryEx";
meta.Destination = "TerritoryEx";
meta.spInsert = "proc_TerritoryExInsert";
meta.spUpdate = "proc_TerritoryExUpdate";
meta.spDelete = "proc_TerritoryExDelete";
meta.spLoadAll = "proc_TerritoryExLoadAll";
meta.spLoadByPrimaryKey = "proc_TerritoryExLoadByPrimaryKey";
m_providerMetadataMaps["esAccess"] = meta;
}
return m_providerMetadataMaps["esAccess"];
}
示例10: esSqlCe4
private esProviderSpecificMetadata esSqlCe4(string mapName)
{
if(!m_providerMetadataMaps.ContainsKey(mapName))
{
esProviderSpecificMetadata meta = new esProviderSpecificMetadata();
meta.AddTypeMap("ProductID", new esTypeMap("int", "System.Int32"));
meta.AddTypeMap("SupplierID", new esTypeMap("int", "System.Int32"));
meta.AddTypeMap("CategoryID", new esTypeMap("int", "System.Int32"));
meta.AddTypeMap("ProductName", new esTypeMap("nvarchar", "System.String"));
meta.AddTypeMap("EnglishName", new esTypeMap("nvarchar", "System.String"));
meta.AddTypeMap("QuantityPerUnit", new esTypeMap("nvarchar", "System.String"));
meta.AddTypeMap("UnitPrice", new esTypeMap("money", "System.Decimal"));
meta.AddTypeMap("UnitsInStock", new esTypeMap("smallint", "System.Int16"));
meta.AddTypeMap("UnitsOnOrder", new esTypeMap("smallint", "System.Int16"));
meta.AddTypeMap("ReorderLevel", new esTypeMap("smallint", "System.Int16"));
meta.AddTypeMap("Discontinued", new esTypeMap("bit", "System.Boolean"));
meta.Catalog = "Northwind.sdf";
meta.Source = "Products";
meta.Destination = "Products";
meta.spInsert = "proc_ProductsInsert";
meta.spUpdate = "proc_ProductsUpdate";
meta.spDelete = "proc_ProductsDelete";
meta.spLoadAll = "proc_ProductsLoadAll";
meta.spLoadByPrimaryKey = "proc_ProductsLoadByPrimaryKey";
m_providerMetadataMaps["esSqlCe4"] = meta;
}
return m_providerMetadataMaps["esSqlCe4"];
}
示例11: esMySQL
private esProviderSpecificMetadata esMySQL(string mapName)
{
if(!m_providerMetadataMaps.ContainsKey(mapName))
{
esProviderSpecificMetadata meta = new esProviderSpecificMetadata();
meta.AddTypeMap("EmployeeID", new esTypeMap("INT", "System.Int32"));
meta.AddTypeMap("ReferredID", new esTypeMap("INT", "System.Int32"));
meta.Catalog = "foreignkeytest";
meta.Source = "referredemployee";
meta.Destination = "referredemployee";
meta.spInsert = "proc_referredemployeeInsert";
meta.spUpdate = "proc_referredemployeeUpdate";
meta.spDelete = "proc_referredemployeeDelete";
meta.spLoadAll = "proc_referredemployeeLoadAll";
meta.spLoadByPrimaryKey = "proc_referredemployeeLoadByPrimaryKey";
m_providerMetadataMaps["esMySQL"] = meta;
}
return m_providerMetadataMaps["esMySQL"];
}
示例12: esSybase
private esProviderSpecificMetadata esSybase(string mapName)
{
if(!m_providerMetadataMaps.ContainsKey(mapName))
{
esProviderSpecificMetadata meta = new esProviderSpecificMetadata();
meta.AddTypeMap("SupplierID", new esTypeMap("integer", "System.Int32"));
meta.AddTypeMap("CompanyName", new esTypeMap("nvarchar", "System.String"));
meta.AddTypeMap("ContactName", new esTypeMap("nvarchar", "System.String"));
meta.AddTypeMap("ContactTitle", new esTypeMap("nvarchar", "System.String"));
meta.AddTypeMap("Address", new esTypeMap("nvarchar", "System.String"));
meta.AddTypeMap("City", new esTypeMap("nvarchar", "System.String"));
meta.AddTypeMap("Region", new esTypeMap("nvarchar", "System.String"));
meta.AddTypeMap("PostalCode", new esTypeMap("nvarchar", "System.String"));
meta.AddTypeMap("Country", new esTypeMap("nvarchar", "System.String"));
meta.AddTypeMap("Phone", new esTypeMap("nvarchar", "System.String"));
meta.AddTypeMap("Fax", new esTypeMap("nvarchar", "System.String"));
meta.AddTypeMap("HomePage", new esTypeMap("long nvarchar", "System.String"));
meta.Catalog = "Northwind";
meta.Schema = "DBA";
meta.Source = "Suppliers";
meta.Destination = "Suppliers";
meta.spInsert = "proc_SuppliersInsert";
meta.spUpdate = "proc_SuppliersUpdate";
meta.spDelete = "proc_SuppliersDelete";
meta.spLoadAll = "proc_SuppliersLoadAll";
meta.spLoadByPrimaryKey = "proc_SuppliersLoadByPrimaryKey";
m_providerMetadataMaps["esSybase"] = meta;
}
return m_providerMetadataMaps["esSybase"];
}
示例13: esOracle
private esProviderSpecificMetadata esOracle(string mapName)
{
if(!m_providerMetadataMaps.ContainsKey(mapName))
{
esProviderSpecificMetadata meta = new esProviderSpecificMetadata();
meta.AddTypeMap("TestId", new esTypeMap("NUMBER", "System.Decimal"));
meta.AddTypeMap("DefaultNotNullInt", new esTypeMap("NUMBER", "System.Decimal"));
meta.AddTypeMap("DefaultNotNullBool", new esTypeMap("NUMBER", "System.Decimal"));
meta["AutoKeyText"] = "DEFAULTTEST_SEQ";
meta.Catalog = "ENTITYSPACES";
meta.Schema = "ENTITYSPACES";
meta.Source = "DefaultTest";
meta.Destination = "DefaultTest";
meta.spInsert = "esDefaultTestInsert";
meta.spUpdate = "esDefaultTestUpdate";
meta.spDelete = "esDefaultTestDelete";
meta.spLoadAll = "esDefaultTestLoadAll";
meta.spLoadByPrimaryKey = "esDefaultTestLoadByPK";
m_providerMetadataMaps["esOracle"] = meta;
}
return m_providerMetadataMaps["esOracle"];
}
示例14: esSybase
private esProviderSpecificMetadata esSybase(string mapName)
{
if(!m_providerMetadataMaps.ContainsKey(mapName))
{
esProviderSpecificMetadata meta = new esProviderSpecificMetadata();
meta.AddTypeMap("FullName", new esTypeMap("varchar", "System.String"));
meta.AddTypeMap("DepartmentID", new esTypeMap("integer", "System.Int32"));
meta.AddTypeMap("HireDate", new esTypeMap("timestamp", "System.DateTime"));
meta.AddTypeMap("Salary", new esTypeMap("numeric", "System.Decimal"));
meta.AddTypeMap("IsActive", new esTypeMap("bit", "System.Boolean"));
meta.Catalog = "AggregateDB";
meta.Schema = "DBA";
meta.Source = "FullNameView";
meta.Destination = "FullNameView";
meta.spInsert = "proc_FullNameViewInsert";
meta.spUpdate = "proc_FullNameViewUpdate";
meta.spDelete = "proc_FullNameViewDelete";
meta.spLoadAll = "proc_FullNameViewLoadAll";
meta.spLoadByPrimaryKey = "proc_FullNameViewLoadByPrimaryKey";
m_providerMetadataMaps["esSybase"] = meta;
}
return m_providerMetadataMaps["esSybase"];
}
示例15: esPgsql
private esProviderSpecificMetadata esPgsql(string mapName)
{
if(!m_providerMetadataMaps.ContainsKey(mapName))
{
esProviderSpecificMetadata meta = new esProviderSpecificMetadata();
meta.AddTypeMap("CustomerID", new esTypeMap("bpchar", "System.String"));
meta.AddTypeMap("CustomerSub", new esTypeMap("bpchar", "System.String"));
meta.AddTypeMap("CustomerName", new esTypeMap("varchar", "System.String"));
meta.AddTypeMap("DateAdded", new esTypeMap("timestamp", "System.DateTime"));
meta.AddTypeMap("Active", new esTypeMap("bool", "System.Boolean"));
meta.AddTypeMap("ConcurrencyCheck", new esTypeMap("bytea", "System.Byte[]"));
meta.AddTypeMap("Manager", new esTypeMap("int8", "System.Int64"));
meta.AddTypeMap("StaffAssigned", new esTypeMap("int8", "System.Int64"));
meta.AddTypeMap("UniqueID", new esTypeMap("bpchar", "System.String"));
meta.AddTypeMap("Notes", new esTypeMap("text", "System.String"));
meta.AddTypeMap("CreditLimit", new esTypeMap("numeric", "System.Decimal"));
meta.AddTypeMap("Discount", new esTypeMap("numeric", "System.Decimal"));
meta.Catalog = "ForeignKeyTest";
meta.Schema = "public";
meta.Source = "Customer";
meta.Destination = "Customer";
meta.spInsert = "proc_CustomerInsert";
meta.spUpdate = "proc_CustomerUpdate";
meta.spDelete = "proc_CustomerDelete";
meta.spLoadAll = "proc_CustomerLoadAll";
meta.spLoadByPrimaryKey = "proc_CustomerLoadByPrimaryKey";
m_providerMetadataMaps["esPgsql"] = meta;
}
return m_providerMetadataMaps["esPgsql"];
}