/// <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; }
/// <summary> /// /// </summary> /// <param name="parent"></param> public FluentColumnList(FluentColumnParent parent) { Parent = parent; _columns = new List <T>(); _query = _columns; SupressChangeNotification = false; }
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(); }
public static FluentSuperColumn GetSuperColumn(this CassandraSuperColumnFamily family, CassandraObject key, FluentColumnParent parent) { var superColumnName = parent.SuperColumn.ColumnName; return GetSuperColumn(family, key, superColumnName); }
/// <summary> /// /// </summary> /// <param name="parent"></param> /// <param name="columns"></param> public FluentColumnList(FluentColumnParent parent, IEnumerable <T> columns) { Parent = parent; _query = columns; SupressChangeNotification = false; }
private void UpdateParent(FluentColumnParent parent) { _parent = parent; }
void IFluentBaseColumn.SetParent(FluentColumnParent parent) { UpdateParent(parent); }
public FluentColumnPath(FluentColumnParent parent, FluentColumn column) : this(parent.ColumnFamily, parent.SuperColumn, column) { }
public static FluentSuperColumn GetSuperColumn(this CassandraSuperColumnFamily family, CassandraObject key, FluentColumnParent parent) { var superColumnName = parent.SuperColumn.ColumnName; return(GetSuperColumn(family, key, superColumnName)); }
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); }