コード例 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="parent"></param>
        /// <param name="columns"></param>
        public FluentColumnList(FluentColumnParent parent, IEnumerable <T> columns)
        {
            Parent  = parent;
            Columns = new List <T>();

            SupressChangeNotification = true;

            // make sure all columns have the same parent
            foreach (var col in columns)
            {
                if (col is ILoadable)
                {
                    ((ILoadable)col).BeginLoad();
                }

                col.SetParent(parent);
                Columns.Add(col);

                if (col is ILoadable)
                {
                    ((ILoadable)col).EndLoad();
                }
            }

            SupressChangeNotification = false;
        }
コード例 #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="parent"></param>
 public FluentColumnList(FluentColumnParent parent)
 {
     Parent   = parent;
     _columns = new List <T>();
     _query   = _columns;
     SupressChangeNotification = false;
 }
コード例 #3
0
        private void UpdateParent(FluentColumnParent parent)
        {
            Family = parent.ColumnFamily as IFluentSuperColumnFamily <CompareWith, CompareSubcolumnWith>;

            var columnParent = GetPath();

            _columns.Parent = columnParent;

            foreach (var col in Columns)
            {
                col.SetParent(columnParent);
            }

            ResetMutationAndAddAllColumns();
        }
コード例 #4
0
		public static FluentSuperColumn GetSuperColumn(this CassandraSuperColumnFamily family, CassandraObject key, FluentColumnParent parent)
		{
			var superColumnName = parent.SuperColumn.ColumnName;
			return GetSuperColumn(family, key, superColumnName);
		}
コード例 #5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="parent"></param>
 /// <param name="columns"></param>
 public FluentColumnList(FluentColumnParent parent, IEnumerable <T> columns)
 {
     Parent = parent;
     _query = columns;
     SupressChangeNotification = false;
 }
コード例 #6
0
 private void UpdateParent(FluentColumnParent parent)
 {
     _parent = parent;
 }
コード例 #7
0
 void IFluentBaseColumn.SetParent(FluentColumnParent parent)
 {
     UpdateParent(parent);
 }
コード例 #8
0
 public FluentColumnPath(FluentColumnParent parent, FluentColumn column)
     : this(parent.ColumnFamily, parent.SuperColumn, column)
 {
 }
コード例 #9
0
        public static FluentSuperColumn GetSuperColumn(this CassandraSuperColumnFamily family, CassandraObject key, FluentColumnParent parent)
        {
            var superColumnName = parent.SuperColumn.ColumnName;

            return(GetSuperColumn(family, key, superColumnName));
        }
コード例 #10
0
 public FluentColumnPath(FluentColumnParent parent, IFluentColumn column)
     : this(parent.ColumnFamily, parent.SuperColumn, column)
 {
 }
        public static void RemoveSuperColumn <CompareWith, CompareSubcolumnWith>(this CassandraSuperColumnFamily <CompareWith, CompareSubcolumnWith> family, BytesType key, FluentColumnParent parent)
            where CompareWith : CassandraType
            where CompareSubcolumnWith : CassandraType
        {
            var superColumnName = (CompareWith)parent.SuperColumn.ColumnName;

            RemoveSuperColumn <CompareWith, CompareSubcolumnWith>(family, key, superColumnName);
        }