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. Database & SysAdmin
  3. Database
  4. is it safe to use this with sql server and entity framework ?

is it safe to use this with sql server and entity framework ?

Scheduled Pinned Locked Moved Database
databasesql-serversysadminquestion
4 Posts 4 Posters 6 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.
  • D Offline
    D Offline
    desanti
    wrote on last edited by
    #1

    Hello ! I have a sql server database that I use with entity framework. The database have 2 tables : Customers : ID , Name , city Orders : ID , sender , receiver Both sender and receiver are Customers. So I should have 2 relationship for orders with the same table Customers. Is it safe to use this with sql server and entity framework ?

    M L U 3 Replies Last reply
    0
    • D desanti

      Hello ! I have a sql server database that I use with entity framework. The database have 2 tables : Customers : ID , Name , city Orders : ID , sender , receiver Both sender and receiver are Customers. So I should have 2 relationship for orders with the same table Customers. Is it safe to use this with sql server and entity framework ?

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      Yes but your table design sucks try. Customer CustomerID Name City Order OrderID CustomerID Sender Receiver This assumes that the customer only ever lives in 1 city and never moves. Take a look at some of these database structures and see if one will work for you. http://www.databaseanswers.org/data_models/[^]

      Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP

      1 Reply Last reply
      0
      • D desanti

        Hello ! I have a sql server database that I use with entity framework. The database have 2 tables : Customers : ID , Name , city Orders : ID , sender , receiver Both sender and receiver are Customers. So I should have 2 relationship for orders with the same table Customers. Is it safe to use this with sql server and entity framework ?

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        At least look for an example before asking the question.

        Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] "If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.

        1 Reply Last reply
        0
        • D desanti

          Hello ! I have a sql server database that I use with entity framework. The database have 2 tables : Customers : ID , Name , city Orders : ID , sender , receiver Both sender and receiver are Customers. So I should have 2 relationship for orders with the same table Customers. Is it safe to use this with sql server and entity framework ?

          U Offline
          U Offline
          User 14089350
          wrote on last edited by
          #4

          Well, the above part is very much concerned regarding the SQL server and entity framework which is safe or not and for that go to https://errorcode0x.com/fixed-firefox-couldnt-load-xpcom/ and you will able to get the work.

          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