Click here to Skip to main content
15,907,326 members
Home / Discussions / C#
   

C#

 
QuestionDetect Network Connection Type Pin
Kevin Marois13-Sep-16 10:29
professionalKevin Marois13-Sep-16 10:29 
AnswerRe: Detect Network Connection Type Pin
rhgarner13-Sep-16 13:17
rhgarner13-Sep-16 13:17 
GeneralRe: Detect Network Connection Type Pin
Kevin Marois13-Sep-16 13:28
professionalKevin Marois13-Sep-16 13:28 
GeneralRe: Detect Network Connection Type Pin
Dave Kreskowiak13-Sep-16 14:53
mveDave Kreskowiak13-Sep-16 14:53 
GeneralRe: Detect Network Connection Type Pin
Kevin Marois13-Sep-16 14:57
professionalKevin Marois13-Sep-16 14:57 
QuestionRe: Detect Network Connection Type Pin
Eddy Vluggen13-Sep-16 21:53
professionalEddy Vluggen13-Sep-16 21:53 
AnswerRe: Detect Network Connection Type Pin
Garth J Lancaster24-Sep-16 21:57
professionalGarth J Lancaster24-Sep-16 21:57 
QuestionConvert JSON Array Objects Into Dotnet Objects Pin
MadDashCoder13-Sep-16 8:43
MadDashCoder13-Sep-16 8:43 
AnswerRe: Convert JSON Array Objects Into Dotnet Objects Pin
Pete O'Hanlon13-Sep-16 21:11
mvePete O'Hanlon13-Sep-16 21:11 
AnswerRe: Convert JSON Array Objects Into Dotnet Objects Pin
F-ES Sitecore13-Sep-16 23:13
professionalF-ES Sitecore13-Sep-16 23:13 
AnswerRe: Convert JSON Array Objects Into Dotnet Objects Pin
Midi_Mick14-Sep-16 0:46
professionalMidi_Mick14-Sep-16 0:46 
GeneralRe: Convert JSON Array Objects Into Dotnet Objects Pin
MadDashCoder14-Sep-16 3:52
MadDashCoder14-Sep-16 3:52 
AnswerRe: Convert JSON Array Objects Into Dotnet Objects Pin
Midi_Mick14-Sep-16 4:24
professionalMidi_Mick14-Sep-16 4:24 
AnswerRe: Convert JSON Array Objects Into Dotnet Objects Pin
Midi_Mick14-Sep-16 4:32
professionalMidi_Mick14-Sep-16 4:32 
GeneralRe: Convert JSON Array Objects Into Dotnet Objects Pin
MadDashCoder14-Sep-16 5:25
MadDashCoder14-Sep-16 5:25 
QuestionEF code first telling me to do the migration for db object which is already is in db Pin
Tridip Bhattacharjee12-Sep-16 22:53
professionalTridip Bhattacharjee12-Sep-16 22:53 
GeneralRe: EF code first telling me to do the migration for db object which is already is in db Pin
Nathan Minier13-Sep-16 1:37
professionalNathan Minier13-Sep-16 1:37 
GeneralRe: EF code first telling me to do the migration for db object which is already is in db Pin
Richard Deeming13-Sep-16 2:27
mveRichard Deeming13-Sep-16 2:27 
GeneralRe: EF code first telling me to do the migration for db object which is already is in db Pin
Tridip Bhattacharjee13-Sep-16 2:32
professionalTridip Bhattacharjee13-Sep-16 2:32 
GeneralRe: EF code first telling me to do the migration for db object which is already is in db Pin
Nathan Minier13-Sep-16 2:46
professionalNathan Minier13-Sep-16 2:46 
GeneralRe: EF code first telling me to do the migration for db object which is already is in db Pin
Tridip Bhattacharjee13-Sep-16 21:45
professionalTridip Bhattacharjee13-Sep-16 21:45 
AnswerRe: EF code first telling me to do the migration for db object which is already is in db Pin
Richard Deeming13-Sep-16 2:32
mveRichard Deeming13-Sep-16 2:32 
You'll need to create the view via a manual migration:
C#
public partial class CreateYourViewMigration : DbMigration
{
    public override void Up()
    {
        const string script = @"CREATE VIEW dbo.YourView As ...";
        var context = new YourContext();
        context.Database.ExecuteSqlCommand(script);
    }

    public override void Down()
    {
        const string script = @"DROP VIEW dbo.YourView;";
        var context = new YourContext();
        context.Database.ExecuteSqlCommand(script);
    }
}

Entity Framework Code First Migrations[^]

If your view is not updateable, and you need to add/edit/delete the entities, then you'll need to use MapToStoredProcedures:
Entity Framework Code First Insert/Update/Delete Stored Procedures (EF6 onwards)[^]



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


QuestionResource file in c# (.resx) Pin
Harpreet05Kaur12-Sep-16 22:03
Harpreet05Kaur12-Sep-16 22:03 
AnswerRe: Resource file in c# (.resx) Pin
OriginalGriff12-Sep-16 22:21
mveOriginalGriff12-Sep-16 22:21 
QuestionWindows Shell - Prevent Folder & File Operations Pin
Kevin Marois12-Sep-16 10:53
professionalKevin Marois12-Sep-16 10:53 

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.