public ICreateFederationSyntax Federation(string federationName)
 {
     var expression = new CreateFederationExpression();
     expression.FederationDefinition.Name = federationName;
     _context.Expressions.Add (expression);
     return new CreateFederationExpressionBuilder (expression);
 }
Ejemplo n.º 2
0
 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()));
 }
Ejemplo n.º 3
0
 public override string Generate(CreateFederationExpression expression)
 {
     throw new NotSupportedException("Currently only Azure databases support data federation.");
 }
Ejemplo n.º 4
0
 public void Process(CreateFederationExpression expression)
 {
     Process(Generator.Generate(expression));
 }