Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor to add DebuggerDisplay attributes to Dax.Metadata classes #160

Merged
merged 1 commit into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/Dax.Metadata/CalculationItem.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Diagnostics;

namespace Dax.Metadata
{
[DebuggerDisplay("{ItemName.Name,nq}")]
public class CalculationItem
{
public CalculationItem(CalculationGroup calculationGroup) : this()
Expand Down
2 changes: 2 additions & 0 deletions src/Dax.Metadata/Column.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
using System.Linq;
using Newtonsoft.Json;
using System.Runtime.Serialization;
using System.Diagnostics;

namespace Dax.Metadata
{
[DebuggerDisplay("{Table.TableName.Name,nq}[{ColumnName.Name,nq}]")]
public class Column
{
public Column(Table table) : this()
Expand Down
7 changes: 2 additions & 5 deletions src/Dax.Metadata/Measure.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;

namespace Dax.Metadata
{
[DebuggerDisplay("{MeasureName.Name,nq}")]
public class Measure
{
public Table Table { get; set; }
Expand Down
6 changes: 2 additions & 4 deletions src/Dax.Metadata/Partition.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;

namespace Dax.Metadata
{
[DebuggerDisplay("{PartitionName.Name,nq}")]
public class Partition
{
public enum PartitionState
Expand Down
2 changes: 2 additions & 0 deletions src/Dax.Metadata/Role.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
using System.Collections.Generic;
using Newtonsoft.Json;
using System.Runtime.Serialization;
using System.Diagnostics;

namespace Dax.Metadata
{
[DebuggerDisplay("{RoleName.Name,nq}")]
public class Role
{
[JsonIgnore]
Expand Down
2 changes: 2 additions & 0 deletions src/Dax.Metadata/Table.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
using System.Linq;
using Newtonsoft.Json;
using System.Runtime.Serialization;
using System.Diagnostics;

namespace Dax.Metadata
{
[DebuggerDisplay("{TableName.Name,nq}")]
[JsonObject(IsReference =true)]
public class Table
{
Expand Down
8 changes: 3 additions & 5 deletions src/Dax.Metadata/UserHierarchy.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Diagnostics;

namespace Dax.Metadata
{
[DebuggerDisplay("{HierarchyName.Name,nq}")]
public class UserHierarchy
{
public Table Table { get; set; }
Expand Down