Пример #1
0
        private Database.LinkRequest MakeLink(string tableName, int instanceId, long rowFrom)
        {
            var lr = new Database.LinkRequestTable();

            lr.LinkToOpen           = new Database.TableLink();
            lr.LinkToOpen.TableName = tableName;
            var b = new Database.View.Where.Builder("NativeInstanceId", Operator.Equal, new Expression.MetaExpression(instanceId.ToString(), true));

            lr.LinkToOpen.RowWhere = new System.Collections.Generic.List <Database.View.Where.Builder>();
            lr.LinkToOpen.RowWhere.Add(b);
            lr.SourceTable  = m_Table;
            lr.SourceColumn = this;
            lr.SourceRow    = rowFrom;

            return(lr);
        }
Пример #2
0
 public Where.Builder AddWhere(string column, Operation.Operator op, Operation.Expression.MetaExpression value)
 {
     Where.Builder w = new Where.Builder(column, op, value);
     where.Add(w);
     return(w);
 }