How do I use the SqlResource method in EF Migrations?

c# ef-migrations entity-framework entity-framework-6 sql-server

Question

According to MSDN, this technique Adds a command for running a SQL resource file. It is signed with:

protected internal void SqlResource(
    string sqlResource,
    Assembly resourceAssembly = null,
    bool suppressTransaction = false,
    object anonymousArguments = null
)

both thesqlResource parameter's definition readsThe manifest resource name of the SQL resource file to be executed. Are "SQL resource files" equivalent to regular files?.resx How do I give the name of the resource file and the file inside that resource in this one argument if the resource file is a resource and if so, whether it may include multiple files? Or is a "SQL resource file" a separate kind of file, containing just one SQL script, and I simply give the name of that file for thesqlResource parameter?

1
14
11/24/2016 5:11:25 AM

Accepted Answer

ZZZ_tmp
14
12/3/2016 8:04:42 AM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow