Skip to content

Commit

Permalink
Fixed Security.VerificationException.
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-tkachev committed Aug 16, 2012
1 parent c417d4e commit e6de1f8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Source/Data/Linq/ExpressionQuery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public abstract class ExpressionQuery<T> : IOrderedQueryable<T>, IQueryProvider
{
#region Init

protected ExpressionQuery(IDataContextInfo dataContextInfo, Expression expression)
protected void Init(IDataContextInfo dataContextInfo, Expression expression)
{
#if SILVERLIGHT
if (dataContextInfo == null) throw new ArgumentNullException("dataContextInfo");
Expand Down
2 changes: 1 addition & 1 deletion Source/Data/Linq/ExpressionQueryImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ namespace BLToolkit.Data.Linq
class ExpressionQueryImpl<T> : ExpressionQuery<T>, IExpressionQuery
{
public ExpressionQueryImpl(IDataContextInfo dataContext, Expression expression)
: base(dataContext, expression)
{
Init(dataContext, expression);
}

//public new string SqlText
Expand Down
14 changes: 7 additions & 7 deletions Source/Data/Linq/TableT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,37 @@ namespace BLToolkit.Data.Linq
public class Table<T> : ExpressionQuery<T>, ITable
{
public Table(IDataContextInfo dataContextInfo, Expression expression)
: base(dataContextInfo, expression)
{
Init(dataContextInfo, expression);
}

public Table(IDataContextInfo dataContextInfo)
: base(dataContextInfo, null)
{
Init(dataContextInfo, null);
}

#if !SILVERLIGHT

public Table()
: base(null, null)
{
Init(null, null);
}

public Table(Expression expression)
: base(null, expression)
{
Init(null, expression);
}

#endif

public Table(IDataContext dataContext)
: base(dataContext == null ? null : new DataContextInfo(dataContext), null)
{
Init(dataContext == null ? null : new DataContextInfo(dataContext), null);
}

public Table(IDataContext dataContext, Expression expression)
: base(dataContext == null ? null : new DataContextInfo(dataContext), expression)
{
Init(dataContext == null ? null : new DataContextInfo(dataContext), expression);
}

#region Overrides
Expand Down
1 change: 1 addition & 0 deletions Source/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
// Web page that should be running under restricted permissions.
#if !SILVERLIGHT
[assembly: AllowPartiallyTrustedCallers]
//[assembly: SecurityRules(SecurityRuleSet.Level2, SkipVerificationInFullTrust = true)]
#endif

[assembly: CLSCompliant(true)]
Expand Down

0 comments on commit e6de1f8

Please sign in to comment.