private XOTableContext this[XContext XContext, XOTable XOTable]
 {
     get
     {
         return _tablesContext.FirstOrDefault(p => p.Context.Equals(XContext) && p.XOTable == XOTable);
     }
 }
        public XOTableContext(XOTable XOTable, XContext XContext)
        {
            _xOTable = XOTable;

            _xContext = XContext;

            _fields = XOTable.Fields.Select(p => new XOFieldContext(this, p)).ToArray();
        }
        internal XOTableContext GetTableContext(XContext XContext, XOTable XOTable)
        {
            XOTableContext tableContext = this[XContext, XOTable];

            if (tableContext == null)
            {
                tableContext = new XOTableContext(XOTable, XContext);

                _tablesContext.Add(tableContext);
            }

            return tableContext;
        }
 public XOTableContext GetAppItemContext(XContext Context)
 {
     return _items.FirstOrDefault(p => p.Context.Equals(Context));
 }
Example #5
0
 public XOTableContext CreateTableContext(XContext context)
 {
     return XoApplication.GetTableContext(context, this);
 }