本文整理汇总了C#中EntitySpaces.Interfaces.esProviderSpecificMetadata.AddTypeMap方法的典型用法代码示例。如果您正苦于以下问题:C# esProviderSpecificMetadata.AddTypeMap方法的具体用法?C# esProviderSpecificMetadata.AddTypeMap怎么用?C# esProviderSpecificMetadata.AddTypeMap使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EntitySpaces.Interfaces.esProviderSpecificMetadata
的用法示例。
在下文中一共展示了esProviderSpecificMetadata.AddTypeMap方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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("NumericType", new esTypeMap("numeric", "System.Decimal"));
meta.AddTypeMap("RealType", new esTypeMap("real", "System.Single"));
meta.AddTypeMap("FloatType", new esTypeMap("float", "System.Double"));
meta.Catalog = "AggregateDb.sdf";
meta.Source = "SqlCeDataTypes";
meta.Destination = "SqlCeDataTypes";
meta.spInsert = "proc_SqlCeDataTypesInsert";
meta.spUpdate = "proc_SqlCeDataTypesUpdate";
meta.spDelete = "proc_SqlCeDataTypesDelete";
meta.spLoadAll = "proc_SqlCeDataTypesLoadAll";
meta.spLoadByPrimaryKey = "proc_SqlCeDataTypesLoadByPrimaryKey";
m_providerMetadataMaps["esSqlCe"] = meta;
}
return m_providerMetadataMaps["esSqlCe"];
}
示例2: esSybase
private esProviderSpecificMetadata esSybase(string mapName)
{
if(!m_providerMetadataMaps.ContainsKey(mapName))
{
esProviderSpecificMetadata meta = new esProviderSpecificMetadata();
meta.AddTypeMap("OrderID", new esTypeMap("integer", "System.Int32"));
meta.AddTypeMap("ProductID", new esTypeMap("integer", "System.Int32"));
meta.AddTypeMap("UnitPrice", new esTypeMap("numeric", "System.Decimal"));
meta.AddTypeMap("Quantity", new esTypeMap("smallint", "System.Int16"));
meta.AddTypeMap("Discount", new esTypeMap("float", "System.Single"));
meta.Catalog = "ForeignKeyTest";
meta.Schema = "DBA";
meta.Source = "OrderItem";
meta.Destination = "OrderItem";
meta.spInsert = "proc_OrderItemInsert";
meta.spUpdate = "proc_OrderItemUpdate";
meta.spDelete = "proc_OrderItemDelete";
meta.spLoadAll = "proc_OrderItemLoadAll";
meta.spLoadByPrimaryKey = "proc_OrderItemLoadByPrimaryKey";
m_providerMetadataMaps["esSybase"] = meta;
}
return m_providerMetadataMaps["esSybase"];
}
示例3: esVistaDB4
private esProviderSpecificMetadata esVistaDB4(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.vdb4";
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["esVistaDB4"] = meta;
}
return m_providerMetadataMaps["esVistaDB4"];
}
开发者ID:stacyjeptha,项目名称:EntitySpaces-CompleteSource,代码行数:26,代码来源:ConcurrencyTestMetadataesVistaDB4.cs
示例4: 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"];
}
示例5: esSqlCe4
private esProviderSpecificMetadata esSqlCe4(string mapName)
{
if(!m_providerMetadataMaps.ContainsKey(mapName))
{
esProviderSpecificMetadata meta = new esProviderSpecificMetadata();
meta.AddTypeMap("TerritoryID", new esTypeMap("int", "System.Int32"));
meta.AddTypeMap("Description", new esTypeMap("nvarchar", "System.String"));
meta.Catalog = "ForeignKeyTest.sdf";
meta.Source = "Territory";
meta.Destination = "Territory";
meta.spInsert = "proc_TerritoryInsert";
meta.spUpdate = "proc_TerritoryUpdate";
meta.spDelete = "proc_TerritoryDelete";
meta.spLoadAll = "proc_TerritoryLoadAll";
meta.spLoadByPrimaryKey = "proc_TerritoryLoadByPrimaryKey";
m_providerMetadataMaps["esSqlCe4"] = meta;
}
return m_providerMetadataMaps["esSqlCe4"];
}
示例6: esVistaDB4
private esProviderSpecificMetadata esVistaDB4(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("Money", "System.Decimal"));
meta.AddTypeMap("Quantity", new esTypeMap("SmallInt", "System.Int16"));
meta.AddTypeMap("Discount", new esTypeMap("Real", "System.Single"));
meta.Catalog = "ForeignKeyTest.vdb4";
meta.Source = "OrderItem";
meta.Destination = "OrderItem";
meta.spInsert = "proc_OrderItemInsert";
meta.spUpdate = "proc_OrderItemUpdate";
meta.spDelete = "proc_OrderItemDelete";
meta.spLoadAll = "proc_OrderItemLoadAll";
meta.spLoadByPrimaryKey = "proc_OrderItemLoadByPrimaryKey";
m_providerMetadataMaps["esVistaDB4"] = meta;
}
return m_providerMetadataMaps["esVistaDB4"];
}
示例7: 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"];
}
示例8: esSybase
private esProviderSpecificMetadata esSybase(string mapName)
{
if(!m_providerMetadataMaps.ContainsKey(mapName))
{
esProviderSpecificMetadata meta = new esProviderSpecificMetadata();
meta.AddTypeMap("ProductID", new esTypeMap("integer", "System.Int32"));
meta.AddTypeMap("ProductName", new esTypeMap("nvarchar", "System.String"));
meta.AddTypeMap("SupplierID", new esTypeMap("integer", "System.Int32"));
meta.AddTypeMap("CategoryID", new esTypeMap("integer", "System.Int32"));
meta.AddTypeMap("QuantityPerUnit", new esTypeMap("nvarchar", "System.String"));
meta.AddTypeMap("UnitPrice", new esTypeMap("numeric", "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";
meta.Schema = "DBA";
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["esSybase"] = meta;
}
return m_providerMetadataMaps["esSybase"];
}
示例9: esSQLite
private esProviderSpecificMetadata esSQLite(string mapName)
{
if(!m_providerMetadataMaps.ContainsKey(mapName))
{
esProviderSpecificMetadata meta = new esProviderSpecificMetadata();
meta.AddTypeMap("ProductID", new esTypeMap("integer", "System.Int32"));
meta.AddTypeMap("ProductName", new esTypeMap("varchar", "System.String"));
meta.AddTypeMap("UnitPrice", new esTypeMap("numeric", "System.Decimal"));
meta.AddTypeMap("Discontinued", new esTypeMap("bit", "System.Boolean"));
meta.Catalog = "main";
meta.Source = "Product";
meta.Destination = "Product";
meta.spInsert = "proc_ProductInsert";
meta.spUpdate = "proc_ProductUpdate";
meta.spDelete = "proc_ProductDelete";
meta.spLoadAll = "proc_ProductLoadAll";
meta.spLoadByPrimaryKey = "proc_ProductLoadByPrimaryKey";
m_providerMetadataMaps["esSQLite"] = meta;
}
return m_providerMetadataMaps["esSQLite"];
}
示例10: esAccess
private esProviderSpecificMetadata esAccess(string mapName)
{
if(!m_providerMetadataMaps.ContainsKey(mapName))
{
esProviderSpecificMetadata meta = new esProviderSpecificMetadata();
meta.AddTypeMap("CategoryID", new esTypeMap("Long", "System.Int32"));
meta.AddTypeMap("CategoryName", new esTypeMap("Text", "System.String"));
meta.AddTypeMap("Description", new esTypeMap("Memo", "System.String"));
meta.AddTypeMap("Picture", new esTypeMap("OLE Object", "System.Byte[]"));
meta.Catalog = "Northwind.mdb";
meta.Source = "Categories";
meta.Destination = "Categories";
meta.spInsert = "proc_CategoriesInsert";
meta.spUpdate = "proc_CategoriesUpdate";
meta.spDelete = "proc_CategoriesDelete";
meta.spLoadAll = "proc_CategoriesLoadAll";
meta.spLoadByPrimaryKey = "proc_CategoriesLoadByPrimaryKey";
m_providerMetadataMaps["esAccess"] = meta;
}
return m_providerMetadataMaps["esAccess"];
}
示例11: esPgsql
private esProviderSpecificMetadata esPgsql(string mapName)
{
if(!m_providerMetadataMaps.ContainsKey(mapName))
{
esProviderSpecificMetadata meta = new esProviderSpecificMetadata();
meta.AddTypeMap("Id", new esTypeMap("int8", "System.Int64"));
meta.AddTypeMap("TimeType", new esTypeMap("time", "System.DateTime"));
meta["AutoKeyText"] = @"nextval('""PgDataTypes_ID_seq""'::regclass)";
meta.Source = "PgDataTypes";
meta.Destination = "PgDataTypes";
meta.spInsert = "proc_PgDataTypesInsert";
meta.spUpdate = "proc_PgDataTypesUpdate";
meta.spDelete = "proc_PgDataTypesDelete";
meta.spLoadAll = "proc_PgDataTypesLoadAll";
meta.spLoadByPrimaryKey = "proc_PgDataTypesLoadByPrimaryKey";
m_providerMetadataMaps["esPgsql"] = meta;
}
return m_providerMetadataMaps["esPgsql"];
}
示例12: esMySQL
private esProviderSpecificMetadata esMySQL(string mapName)
{
if(!m_providerMetadataMaps.ContainsKey(mapName))
{
esProviderSpecificMetadata meta = new esProviderSpecificMetadata();
meta.AddTypeMap("Id", new esTypeMap("VARCHAR", "System.String"));
meta.AddTypeMap("Notes", new esTypeMap("LONGTEXT", "System.String"));
meta.Catalog = "foreignkeytest";
meta.Source = "group";
meta.Destination = "group";
meta.spInsert = "proc_groupInsert";
meta.spUpdate = "proc_groupUpdate";
meta.spDelete = "proc_groupDelete";
meta.spLoadAll = "proc_groupLoadAll";
meta.spLoadByPrimaryKey = "proc_groupLoadByPrimaryKey";
m_providerMetadataMaps["esMySQL"] = meta;
}
return m_providerMetadataMaps["esMySQL"];
}
示例13: esOracle
private esProviderSpecificMetadata esOracle(string mapName)
{
if(!m_providerMetadataMaps.ContainsKey(mapName))
{
esProviderSpecificMetadata meta = new esProviderSpecificMetadata();
meta.AddTypeMap("EmployeeID", new esTypeMap("NUMBER", "System.Decimal"));
meta.AddTypeMap("LastName", new esTypeMap("VARCHAR2", "System.String"));
meta.AddTypeMap("FirstName", new esTypeMap("VARCHAR2", "System.String"));
meta.AddTypeMap("Supervisor", new esTypeMap("NUMBER", "System.Decimal"));
meta.AddTypeMap("Age", new esTypeMap("NUMBER", "System.Decimal"));
meta["AutoKeyText"] = "seq_Employee";
meta.Catalog = "HIERARCHICAL";
meta.Schema = "HIERARCHICAL";
meta.Source = "Employee";
meta.Destination = "Employee";
meta.spInsert = "esEmployeeInsert";
meta.spUpdate = "esEmployeeUpdate";
meta.spDelete = "esEmployeeDelete";
meta.spLoadAll = "esEmployeeLoadAll";
meta.spLoadByPrimaryKey = "esEmployeeLoadByPK";
m_providerMetadataMaps["esOracle"] = meta;
}
return m_providerMetadataMaps["esOracle"];
}
示例14: esVistaDB4
private esProviderSpecificMetadata esVistaDB4(string mapName)
{
if(!m_providerMetadataMaps.ContainsKey(mapName))
{
esProviderSpecificMetadata meta = new esProviderSpecificMetadata();
meta.AddTypeMap("ProductID", new esTypeMap("Int", "System.Int32"));
meta.AddTypeMap("ProductName", new esTypeMap("VarChar", "System.String"));
meta.AddTypeMap("UnitPrice", new esTypeMap("Money", "System.Decimal"));
meta.AddTypeMap("Discontinued", new esTypeMap("Bit", "System.Boolean"));
meta.Catalog = "ForeignKeyTest.vdb4";
meta.Source = "Product";
meta.Destination = "Product";
meta.spInsert = "proc_ProductInsert";
meta.spUpdate = "proc_ProductUpdate";
meta.spDelete = "proc_ProductDelete";
meta.spLoadAll = "proc_ProductLoadAll";
meta.spLoadByPrimaryKey = "proc_ProductLoadByPrimaryKey";
m_providerMetadataMaps["esVistaDB4"] = meta;
}
return m_providerMetadataMaps["esVistaDB4"];
}
示例15: 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"];
}