Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. Silverlight business application

Silverlight business application

Scheduled Pinned Locked Moved WPF
questionsharepointdatabaselinqbusiness
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    picasso2
    wrote on last edited by
    #1

    How can I run a store procedure (SQL 2008) from domain services? default method is to simple public IQueryable GetCars() { return this.ObjectContext.Cars; } It does not have to be a SP, I just thought it may be cleaner, basically what I need to run is something like this: Select col1 from DBTables where ltrim(rtrim(col1)) not in (select ltrim(rtrim(col2)) from DBTables where col2 is not null) order by 1 Select col2 from DBTables where ltrim(rtrim(col2)) not in (select ltrim(rtrim(col1)) from DBTables where col1 is not null) order by 1 any help is greatly appreciated

    A 1 Reply Last reply
    0
    • P picasso2

      How can I run a store procedure (SQL 2008) from domain services? default method is to simple public IQueryable GetCars() { return this.ObjectContext.Cars; } It does not have to be a SP, I just thought it may be cleaner, basically what I need to run is something like this: Select col1 from DBTables where ltrim(rtrim(col1)) not in (select ltrim(rtrim(col2)) from DBTables where col2 is not null) order by 1 Select col2 from DBTables where ltrim(rtrim(col2)) not in (select ltrim(rtrim(col1)) from DBTables where col1 is not null) order by 1 any help is greatly appreciated

      A Offline
      A Offline
      Abhinav S
      wrote on last edited by
      #2

      This link could possible help you - Working with Entity Data Model and Executing Stored Procedures[^].

      Apps - Color Analyzer | Arctic | XKCD | Sound Meter | Speed Dial

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups