Skip to content

Commit

Permalink
Simpler version.
Browse files Browse the repository at this point in the history
  • Loading branch information
anderson-joyle committed Mar 7, 2024
1 parent b7cb42b commit 4615869
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 10 deletions.
5 changes: 1 addition & 4 deletions src/libraries/Microsoft.PowerFx.Core/Binding/Binder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2882,10 +2882,7 @@ public override void Visit(FirstNameNode node)
}
else if (lookupInfo.Kind == BindKind.ScopeCollection)
{
if (lookupInfo.Data is IExternalDataSource ds)
{
_txb.SetMutable(node, ds.IsWritable);
}
_txb.SetMutable(node, true);
}

Contracts.Assert(lookupInfo.Kind != BindKind.LambdaField);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ internal interface IExternalDataSource : IExternalEntity, IExternalPageableSymbo

bool RequiresAsync { get; }

bool IsWritable { get; }

IExternalDataEntityMetadataProvider DataEntityMetadataProvider { get; }

DataSourceKind Kind { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ public class AccountsEntity : IExternalEntity, IExternalDataSource

public bool IsPageable => true;

public bool IsWritable => true;

DType IExternalEntity.Type => AccountsTypeHelper.GetDType();

IExternalDataEntityMetadataProvider IExternalDataSource.DataEntityMetadataProvider => throw new NotImplementedException();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,6 @@ internal TestDataSource(string name, DType schema, string[] keyColumns = null, I

IDelegationMetadata IExternalDataSource.DelegationMetadata => DelegationMetadata;

public bool IsWritable => throw new NotImplementedException();

public bool CanIncludeExpand(IExpandInfo expandToAdd)
{
throw new NotImplementedException();
Expand Down

0 comments on commit 4615869

Please sign in to comment.