Click here to Skip to main content
15,884,176 members
Home / Discussions / Database
   

Database

 
QuestionPossible to use Linq to query a column that contains a description and remove the whitespaces? Pin
jkirkerx18-Jan-18 8:40
professionaljkirkerx18-Jan-18 8:40 
AnswerRe: Possible to use Linq to query a column that contains a description and remove the whitespaces? Pin
Jörgen Andersson18-Jan-18 9:17
professionalJörgen Andersson18-Jan-18 9:17 
AnswerRe: Possible to use Linq to query a column that contains a description and remove the whitespaces? Pin
Chris Quinn18-Jan-18 22:13
Chris Quinn18-Jan-18 22:13 
AnswerRe: Possible to use Linq to query a column that contains a description and remove the whitespaces? Pin
Eddy Vluggen19-Jan-18 4:12
professionalEddy Vluggen19-Jan-18 4:12 
AnswerTable of straight text Pin
jkirkerx19-Jan-18 7:30
professionaljkirkerx19-Jan-18 7:30 
AnswerRe: Possible to use Linq to query a column that contains a description and remove the whitespaces? Pin
jschell20-Jan-18 6:06
jschell20-Jan-18 6:06 
QuestionEntity Framework 6 - Set Connection String at Runtime Pin
Kevin Marois12-Jan-18 7:17
professionalKevin Marois12-Jan-18 7:17 
AnswerRe: Entity Framework 6 - Set Connection String at Runtime Pin
Richard Deeming12-Jan-18 8:23
mveRichard Deeming12-Jan-18 8:23 
Add the required constructor overloads to your context:
C#
public partial class MyEntities : DbContext
{
    public MyEntities() : base("name=MyEntities")
    {
    }
    
    public MyEntities(string nameOrConnectionString) : base(nameOrConnectionString)
    {
    }
    
    public MyEntities(DbConnection existingConnection, bool contextOwnsConnection) : base(existingConnection, contextOwnsConnection)
    {
    }

EDIT: If you're using the .tt file to generate the context from the database, you'll probably need to add the extra overloads in a separate file; that's why the class is declared as partial.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


QuestionProblem with Access Pin
JackMisani10-Jan-18 7:51
JackMisani10-Jan-18 7:51 
AnswerRe: Problem with Access Pin
Tim Carmichael12-Jan-18 3:50
Tim Carmichael12-Jan-18 3:50 
GeneralRe: Problem with Access Pin
JackMisani12-Jan-18 4:23
JackMisani12-Jan-18 4:23 
GeneralRe: Problem with Access Pin
Tim Carmichael12-Jan-18 5:13
Tim Carmichael12-Jan-18 5:13 
GeneralRe: Problem with Access Pin
JackMisani16-Jan-18 22:07
JackMisani16-Jan-18 22:07 
GeneralRe: Problem with Access Pin
Tim Carmichael17-Jan-18 2:24
Tim Carmichael17-Jan-18 2:24 
QuestionOLEDB connection to a SQL server database hosted in an availability group (repost) Pin
kmoorevs2-Jan-18 11:38
kmoorevs2-Jan-18 11:38 
AnswerRe: OLEDB connection to a SQL server database hosted in an availability group (repost) Pin
PIEBALDconsult2-Jan-18 14:12
mvePIEBALDconsult2-Jan-18 14:12 
GeneralRe: OLEDB connection to a SQL server database hosted in an availability group (repost) Pin
kmoorevs4-Jan-18 8:33
kmoorevs4-Jan-18 8:33 
AnswerRe: OLEDB connection to a SQL server database hosted in an availability group (repost) Pin
Joe DiNatale4-Jan-18 11:10
Joe DiNatale4-Jan-18 11:10 
GeneralRe: OLEDB connection to a SQL server database hosted in an availability group (repost) Pin
kmoorevs4-Jan-18 11:33
kmoorevs4-Jan-18 11:33 
GeneralRe: OLEDB connection to a SQL server database hosted in an availability group (repost) Pin
S Douglas7-Mar-18 11:35
professionalS Douglas7-Mar-18 11:35 
AnswerRe: OLEDB connection to a SQL server database hosted in an availability group (repost) Pin
S Douglas7-Mar-18 11:31
professionalS Douglas7-Mar-18 11:31 
QuestionMore than interesting... Pin
Kornfeld Eliyahu Peter31-Dec-17 21:05
professionalKornfeld Eliyahu Peter31-Dec-17 21:05 
AnswerRe: More than interesting... Pin
Jörgen Andersson1-Jan-18 3:44
professionalJörgen Andersson1-Jan-18 3:44 
GeneralRe: More than interesting... Pin
Kornfeld Eliyahu Peter1-Jan-18 4:31
professionalKornfeld Eliyahu Peter1-Jan-18 4:31 
GeneralRe: More than interesting... Pin
Jörgen Andersson2-Jan-18 5:28
professionalJörgen Andersson2-Jan-18 5:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.