示例#1
0
 public static void SetKeyspaceConfiguration(this IMutableModel model, KeyspaceReplicationConfiguration keyspaceReplicationConfiguration)
 {
     model[CassandraAnnotationNames.KeyspaceConfiguration] = JsonConvert.SerializeObject(keyspaceReplicationConfiguration);
 }
 public static void SetKeyspace(this IMutableModel model, string name, KeyspaceReplicationConfiguration keyspaceReplicationConfiguration)
 {
     model.SetOrRemoveAnnotation($"{CassandraAnnotationNames.Keyspace}{name}", JsonConvert.SerializeObject(keyspaceReplicationConfiguration));
 }