protected T FindRow(params int[] keys) { if (this.keyToRow == null) { return(null); } int key = CremaUtility.GenerateHashCode(keys); if (this.keyToRow.ContainsKey(key) == false) { return(null); } return(this.keyToRow[key]); }
protected T FindRow(int key1, int key2, int key3, int key4) { if (this.keyToRow == null) { return(null); } int key = CremaUtility.GenerateHashCode(key1, key2, key3, key4); if (this.keyToRow.ContainsKey(key) == false) { return(null); } return(this.keyToRow[key]); }
protected CremaRow(IColumn[] columns, IRow row) { this.key = CremaUtility.GenerateHashCode(row, columns); for (var i = 0; i < row.Table.Columns.Count; i++) { var item = row.Table.Columns[i]; if (item.Name == __RelationID__) { this.relationID = row.GetValue(item.Name).ToString(); } else if (item.Name == __ParentID__) { this.parentID = row.GetValue(item.Name).ToString(); } } }
protected void SetKey(params int[] keys) { this.key = CremaUtility.GenerateHashCode(keys); }
protected void SetKey(int key1, int key2, int key3, int key4) { this.key = CremaUtility.GenerateHashCode(key1, key2, key3, key4); }
protected void SetKey(int key1) { this.key = CremaUtility.GenerateHashCode(key1); }
public Table1Row Find(string StringKey, int IntKey, Type1 TypeKey, float FloatKey) { return(base.FindRow(CremaUtility.GenerateHashCode(StringKey.ToString(), IntKey.ToString(), TypeKey.ToString(), FloatKey.ToString()))); }