/// <summary> /// Returns the name of the index column in an ordered collection. /// </summary> /// <param name="inspector">The model inspector.</param> /// <param name="member">The collection property.</param> /// <returns>The name of the index column.</returns> public string IndexColumn(IModelInspector inspector, PropertyPath member) { if (inspector.IsList(member.LocalMember)) { return("list_index"); } return("item_index"); }
/// <summary> /// Returns the name of the index column in an ordered collection. /// </summary> /// <param name="inspector">The model inspector.</param> /// <param name="member">The collection property.</param> /// <returns>The name of the index column.</returns> public string IndexColumn(IModelInspector inspector, PropertyPath member) { if (inspector.IsList(member.LocalMember)) return "list_index"; return "item_index"; }