Example #1
0
        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]);
        }
Example #2
0
        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]);
        }
Example #3
0
        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();
                }
            }
        }
Example #4
0
 protected void SetKey(params int[] keys)
 {
     this.key = CremaUtility.GenerateHashCode(keys);
 }
Example #5
0
 protected void SetKey(int key1, int key2, int key3, int key4)
 {
     this.key = CremaUtility.GenerateHashCode(key1, key2, key3, key4);
 }
Example #6
0
 protected void SetKey(int key1)
 {
     this.key = CremaUtility.GenerateHashCode(key1);
 }
Example #7
0
 public Table1Row Find(string StringKey, int IntKey, Type1 TypeKey, float FloatKey)
 {
     return(base.FindRow(CremaUtility.GenerateHashCode(StringKey.ToString(), IntKey.ToString(), TypeKey.ToString(), FloatKey.ToString())));
 }