Пример #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]);
        }
Пример #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]);
        }
Пример #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();
                }
            }
        }
Пример #4
0
 protected void SetKey(params int[] keys)
 {
     this.key = CremaUtility.GenerateHashCode(keys);
 }
Пример #5
0
 protected void SetKey(int key1, int key2, int key3, int key4)
 {
     this.key = CremaUtility.GenerateHashCode(key1, key2, key3, key4);
 }
Пример #6
0
 protected void SetKey(int key1)
 {
     this.key = CremaUtility.GenerateHashCode(key1);
 }
Пример #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())));
 }