public ICreateFederationSyntax Federation(string federationName) { var expression = new CreateFederationExpression(); expression.FederationDefinition.Name = federationName; _context.Expressions.Add (expression); return new CreateFederationExpressionBuilder (expression); }
public override string Generate(CreateFederationExpression expression) { //"The CREATE FEDERATION statement must be the only statement in the batch" - MSDN docs return Wrap(string.Format("CREATE FEDERATION {0}", expression.FederationDefinition.ToString())); }
public override string Generate(CreateFederationExpression expression) { throw new NotSupportedException("Currently only Azure databases support data federation."); }
public void Process(CreateFederationExpression expression) { Process(Generator.Generate(expression)); }