public override void InitializeReplication(LoginModule module) { List <string> filters = new List <string>(); foreach (Subcontractor contract in module.LoggedInStaff.Contracts) { Console.WriteLine("Subcon Id : " + contract.Id); filters.Add("time_blocks_" + contract.Id + ""); } Replicate(module.GetSettings().TimeblocksDb(), module.GetSettings().TimeblocksDb(), filters); }
public override void InitializeReplication(LoginModule module) { List <string> filters = new List <string>(); foreach (Subcontractor contract in module.LoggedInStaff.Contracts) { filters.Add("work_" + contract.Id + ""); } this.Replicate(module.GetSettings().WorkDb(), module.GetSettings().WorkDb(), filters); }