public MapTo ( IDbContextData optionUser ) : void | ||
optionUser | IDbContextData | |
return | void |
internal void MapParameterOptions(IEnumerable <object> options) { var op = new OptionParser(options); if (op.NonOptionParameters.Length > 0) { throw new ArgumentException("There were unexpected options passed with your query: " + op.ObjectListToString(op.NonOptionParameters)); } op.MapTo(this); }
public IDbContext Options(params object[] options) { var op = new OptionParser(options); if (op.NonOptionParametersOrNull != null) { throw new ArgumentException("Only IDbContextData options area allowed to be passed to a DbContext."); } op.MapTo(this); return(this); }