Ejemplo n.º 1
0
 public RecipeFromFilePath(CtorDictionary dataNeeded) : base(dataNeeded
                                                             .AddMyValue("nameTable", "FileContents")
                                                             .AddMyValue("nameColumn", "FileContents")
                                                             .AddMyValue("receiverProperty", "content")
                                                             .AddMyValue("columnNameWithData", "FileContents")
                                                             )
 {
     Name          = nameof(RecipeFromFilePath);
     this.fileName = GetMyDataOrThrow <string>(nameof(fileName));
 }
Ejemplo n.º 2
0
 public ReceiveQueryFromFileSql(CtorDictionary dataNeeded) : base(dataNeeded
                                                                  .AddMyValue("nameTable", "FileContents")
                                                                  .AddMyValue("nameColumn", "FileContents")
                                                                  .AddMyValue("separators", new string[] { "\r\nGO\r\n", "\nGO\n", "\r\nGO \r\n", "\nGO \n" })
                                                                  .AddMyValue("receiverProperty", "sql")
                                                                  .AddMyValue("columnNameWithData", "FileContents")
                                                                  .AddMyValue("connectionType", typeof(SqlConnection).AssemblyQualifiedName)
                                                                  )
 {
     Name                  = nameof(ReceiveQueryFromFileSql);
     this.fileName         = GetMyDataOrThrow <string>(nameof(fileName));
     this.connectionString = GetMyDataOrThrow <string>(nameof(connectionString));
 }