本文整理汇总了C#中ITable类的典型用法代码示例。如果您正苦于以下问题:C# ITable类的具体用法?C# ITable怎么用?C# ITable使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ITable类属于命名空间,在下文中一共展示了ITable类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: GetTableRow
private static IRow GetTableRow(ITable table, DataRow r)
{
var rv = new Row();
r.ItemArray.Select((o, i) => table.Columns[i].BinarySearch(o)).ToList()
.ForEach(idx => rv.Rows.Add(idx));
return rv;
}
开发者ID:VennoFang,项目名称:dblp2csv,代码行数:7,代码来源:ImportDataTable.cs
示例2: joinTabletoFeatureLayer
public bool joinTabletoFeatureLayer(IServerContext mapContext,
ITable externalTable,
IFeatureLayer featureLayer,
string tableJoinField,
string layerJoinField,
esriJoinType joinType)
{
IDisplayTable pDispTable = featureLayer as IDisplayTable;
IFeatureClass pFCLayer = pDispTable.DisplayTable as IFeatureClass;
ITable pTLayer = (ITable)pFCLayer;
string strJnFieldLayer = layerJoinField;
string strJnFieldTable = tableJoinField;
IMemoryRelationshipClassFactory pMemRelFact = (IMemoryRelationshipClassFactory)mapContext.CreateObject("esriGeoDatabase.MemoryRelationshipClassFactory");
IRelationshipClass pRelClass = (IRelationshipClass)pMemRelFact.Open("Join",
(IObjectClass)externalTable, strJnFieldTable,
(IObjectClass)pTLayer, strJnFieldLayer,
"forward", "backward",
esriRelCardinality.esriRelCardinalityOneToOne);
IDisplayRelationshipClass pDispRC = (IDisplayRelationshipClass)featureLayer;
pDispRC.DisplayRelationshipClass(pRelClass, joinType); //esriLeftOuterJoin
IDisplayTable dt = (IDisplayTable)featureLayer;
ITable jointable = dt.DisplayTable;
bool retval = false;
if (jointable is IRelQueryTable)
{
retval = true;
}
return retval;
}
开发者ID:mateo41,项目名称:mapmaker,代码行数:34,代码来源:storet.aspx.cs
示例3: MapAllColumns
private static void MapAllColumns(MappingSet set, ITable table, Entity entity)
{
for(int i = 0; i < table.Columns.Count; i++)
{
set.ChangeMappedColumnFor(entity.ConcreteProperties[i]).To(table.Columns[i]);
}
}
开发者ID:uQr,项目名称:Visual-NHibernate,代码行数:7,代码来源:ModelSetup.cs
示例4: EvaluateAggregate
public ITable EvaluateAggregate(QueryProcessor processor, bool distinct, ITable group, Expression[] args)
{
if (!function.IsAggregate)
throw new InvalidOperationException("The function is not an aggregate.");
try {
// Execute it
object[] funArgs;
if (invokeType == 6) {
funArgs = new object[] { function.Name, processor, distinct, group, args };
}
// The QueryProcessor, Expression[] construct
else if (invokeType == 1) {
funArgs = new object[] { processor, distinct, group, args };
} else {
throw new ApplicationException("Unknown invoke type");
}
return (ITable)method.Invoke(null, funArgs);
} catch (MethodAccessException e) {
throw new ApplicationException(e.Message, e);
} catch (TargetInvocationException e) {
throw new ApplicationException(e.InnerException.Message, e.InnerException);
}
}
开发者ID:ikvm,项目名称:deveelsql,代码行数:25,代码来源:ReflectionFunctionEvaluationContext.cs
示例5: AddElement
public static void AddElement(ITable element,bool addtolist = true)
{
lock (_newElements)
{
if (_newElements.ContainsKey(element.GetType()))
{
if (!_newElements[element.GetType()].Contains(element))
_newElements[element.GetType()].Add(element);
}
else
{
_newElements.Add(element.GetType(), new List<ITable> { element });
}
}
if (addtolist)
{
#region Add value into array
var field = GetCache(element);
if (field == null)
{
Logger.Error("Unable to add record value to the list, static list field wasnt finded");
return;
}
var method = field.FieldType.GetMethod("Add");
if (method == null)
{
Console.WriteLine("Unable to add record value to the list, add method wasnt finded");
return;
}
method.Invoke(field.GetValue(null), new object[] { element });
#endregion
}
}
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:35,代码来源:SaveTask.cs
示例6: CreateSSDLEntityType
private static EntityType CreateSSDLEntityType(ITable table)
{
EntityType entityType = new EntityType()
{
Name = table.TableName,
EntitySetName = table.TableName,
Schema = table.SchemaName,
StoreName = table.TableName,
StoreSchema = table.SchemaName
};
if (table is IView)
{
entityType.StoreType = StoreType.Views;
entityType.DefiningQuery = (table as IView).DefiningQuery;
}
else
entityType.StoreType = StoreType.Tables;
foreach (IColumn column in table.Items)
{
entityType.Properties.Add(CreateSSDLProperty(column, entityType));
}
return entityType;
}
开发者ID:Netring,项目名称:SharpDevelop,代码行数:26,代码来源:SSDLConverter.cs
示例7: SelectFilter
public SelectFilter(
ITable table,
QueryFilter query,
List<SortCriteria> sorts)
: this(table, query, sorts, false)
{
}
开发者ID:nrag,项目名称:yapper,代码行数:7,代码来源:SelectFilter.cs
示例8: dataPrepMultinomialLogisticRegression
public dataPrepMultinomialLogisticRegression(ITable table, string[] dependentField, string[] independentFields, string[] categoricalFields)
{
InTable = table;
DependentFieldNames = dependentField;
IndependentFieldNames = independentFields;
ClassFieldNames = categoricalFields;
}
开发者ID:GeospatialDaryl,项目名称:USFS_RMRS_FunctionalModeling_RasterModeling,代码行数:7,代码来源:dataPrepMultinomialLogisticRegression.cs
示例9: Logic
Logic(ITable table, IDealer dealer, IModuleContainer moduleContainer, List<IPlayer> players)
{
_table = table;
_dealer = dealer;
_players = players;
_moduleContainer = moduleContainer;
}
开发者ID:thebuchanan3,项目名称:Blackjack,代码行数:7,代码来源:Logic.cs
示例10: IsGood
public bool IsGood(IRow row, ITable table)
{
var keystring = table.GetKeystring(row);
var inf = _lookup[keystring];
System.Threading.Thread.Sleep(inf.Duration);
return inf.Result;
}
开发者ID:VennoFang,项目名称:dblp2csv,代码行数:7,代码来源:SimulatedMetric.cs
示例11: dataGeneralConfusionMatirx
public dataGeneralConfusionMatirx(ITable table, string dependentField, string independentField)
{
InTable = table;
DependentFieldNames = new string[]{dependentField};
IndependentFieldNames = new string[]{independentField};
ClassFieldNames = new string[]{dependentField,independentField};
}
开发者ID:GeospatialDaryl,项目名称:USFS_RMRS_FunctionalModeling_RasterModeling,代码行数:7,代码来源:dataGeneralConfusionMatirx.cs
示例12: Write
public override void Write(ITable table)
{
foreach (ILogger logger in _loggers)
{
logger.Write(table: table);
}
}
开发者ID:JeremyKuhne,项目名称:XTask,代码行数:7,代码来源:AggregatedLogger.cs
示例13: Write
public override void Write(ITable table)
{
this.htmlText.Append(@"<table style='border-collapse:collapse' border=0 cellspacing=0 cellpadding=0>");
bool headerRow = table.HasHeader;
foreach (var row in table.Rows)
{
this.htmlText.Append(@"<tr>");
for (int i = 0; i < row.Length; i++)
{
this.htmlText.Append(headerRow ? @"<th" : @"<td");
switch (table.ColumnFormats[i].Justification)
{
case Justification.Centered:
this.htmlText.Append(@" style='text-align:center'>");
break;
case Justification.Right:
this.htmlText.Append(@" style='text-align:right'>");
break;
case Justification.Left:
default:
this.htmlText.Append(@" style='text-align:left'>");
break;
}
this.htmlText.AppendFormat("<span style='font-size:11.0pt;font-family:Calibri,sans-serif;white-space:pre'>{0}</span>", row[i]);
this.htmlText.Append(headerRow ? @"</th>" : @"</td>");
}
headerRow = false;
this.htmlText.Append(@"</tr>");
}
this.htmlText.Append(@"</table>");
}
开发者ID:ramarag,项目名称:XTask,代码行数:34,代码来源:HtmlLogger.cs
示例14: Trigger
/// <summary>
/// Constructor
/// </summary>
/// <param name="Name">Name</param>
/// <param name="Definition">Definition</param>
/// <param name="Type">Type</param>
/// <param name="ParentTable">Parent table</param>
public Trigger(string Name, string Definition, TriggerType Type, ITable ParentTable)
{
this.Name = Name;
this.Definition = Definition;
this.Type = Type;
this.ParentTable = ParentTable;
}
开发者ID:modulexcite,项目名称:Craig-s-Utility-Library,代码行数:14,代码来源:Trigger.cs
示例15: dataPrepCompareClassifications
public dataPrepCompareClassifications(ITable table, string reference, string mapped1, string mapped2)
{
InTable = table;
DependentFieldNames = new string[] { reference };
IndependentFieldNames = new string[] { mapped1, mapped2 };
ClassFieldNames = new string[] { reference, mapped1, mapped2 };
}
开发者ID:GeospatialDaryl,项目名称:USFS_RMRS_FunctionalModeling_RasterModeling,代码行数:7,代码来源:dataPrepCompareClassifications.cs
示例16: RenderConcreteClass
private void RenderConcreteClass(ITable table)
{
_hdrUtil.WriteClassHeader(_output);
_output.autoTabLn("using System;");
_output.autoTabLn("using System.Linq;");
_output.autoTabLn("using " + _script.Settings.DataOptions.DataObjectsNamespace + ".Interfaces;");
_output.autoTabLn("using " + _script.Settings.ServiceLayer.ServiceNamespace + ".Generated;");
_output.autoTabLn("using " + _script.Settings.ServiceLayer.ServiceNamespace + ".Interfaces;");
_output.autoTabLn("");
_output.autoTabLn("namespace " + _script.Settings.ServiceLayer.ServiceNamespace);
_output.autoTabLn("{");
_output.tabLevel++;
_output.autoTabLn("public class " + StringFormatter.CleanUpClassName(table.Name) + "Service : " + StringFormatter.CleanUpClassName(table.Name) + "ServiceBase, I" + StringFormatter.CleanUpClassName(table.Name) + "Service");
_output.autoTabLn("{");
_output.tabLevel++;
_output.autoTabLn("public " + StringFormatter.CleanUpClassName(table.Name) + "Service(I" + StringFormatter.CleanUpClassName(table.Name) + _script.Settings.DataOptions.ClassSuffix.Name + " " + StringFormatter.CamelCasing(StringFormatter.CleanUpClassName(table.Name)) + _script.Settings.DataOptions.ClassSuffix.Name + ")");
_output.tabLevel++;
_output.autoTabLn(": base(" + StringFormatter.CamelCasing(StringFormatter.CleanUpClassName(table.Name)) + _script.Settings.DataOptions.ClassSuffix.Name + ")");
_output.tabLevel--;
_output.autoTabLn("{");
_output.autoTabLn("");
_output.autoTabLn("}");
_output.tabLevel--;
_output.autoTabLn("}");
_output.tabLevel--;
_output.autoTabLn("}");
_context.FileList.Add(" " + StringFormatter.CleanUpClassName(table.Name) + "Service.cs");
SaveOutput(CreateFullPath(_script.Settings.ServiceLayer.ServiceNamespace, StringFormatter.CleanUpClassName(table.Name) + "Service.cs"), SaveActions.DontOverwrite);
}
开发者ID:kahanu,项目名称:CondorXE,代码行数:31,代码来源:ServiceClassesForDbContextServiceLayerObjects.cs
示例17: Column
public Column(ITable Table, IDataReader DataReader)
{
_table = Table;
object val = System.DBNull.Value;
_name = (string)DataReader[ReaderNameField];
_dbType = this.ParseDbType((string)DataReader[ReaderTypeField]);
val = DataReader[ReaderSizeField];
if (val != System.DBNull.Value)
_size = (int)val;
val = DataReader[ReaderDefaultValueField];
if (val != System.DBNull.Value)
_defaultValue = ParseDefaultValue((string)val);
val = DataReader[ReaderIsNullableField];
if (val != System.DBNull.Value)
_isNullable = ParseIsNullable(val);
val = DataReader[ReaderIsPkField];
if (val != System.DBNull.Value)
_isPk = ParseIsPk(val);
val = DataReader[ReaderIsPkAutoGeneratedField];
if (val != System.DBNull.Value)
_isPkAutoGenerated = ParseIsIdent(val);
}
开发者ID:data-avail,项目名称:DataAvail.WinForms,代码行数:35,代码来源:Column.cs
示例18: CqlCommand
internal CqlCommand(Expression expression, ITable table, StatementFactory stmtFactory, PocoData pocoData)
{
_expression = expression;
Table = table;
_statementFactory = stmtFactory;
PocoData = pocoData;
}
开发者ID:mtf30rob,项目名称:csharp-driver,代码行数:7,代码来源:CqlCommand.cs
示例19: MethodDrop
public MethodDrop(ITable table, IMethod method)
: base(method)
{
this.table = table;
this.method = method;
tableMemberDrop = new TableMemberDrop(table, method);
}
开发者ID:DamienHauta,项目名称:Ns2Docs,代码行数:7,代码来源:MethodDrop.cs
示例20: CreateTableSale
//public IEnumerable<ITable> Tables { get; set; }
public void CreateTableSale(ITable table)
{
var sale = MainTask.CreateTableSale(MainTask.Register.AreaId, MainTask.Register.Id, MainTask.UserAccount.Id, table.Id);
MainTask.Navigator.NavigateDirectly(MainTask.SaleView);
var saleController = MainTask.Navigator.GetController(MainTask.SaleView) as SaleViewController;
saleController.UpdateView();
}
开发者ID:njmube,项目名称:POSMicro,代码行数:8,代码来源:TableViewController.cs
注:本文中的ITable类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论