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. C#
  4. some Questions to Linq2Sql

some Questions to Linq2Sql

Scheduled Pinned Locked Moved C#
questioncssdatabasecomhelp
11 Posts 5 Posters 1 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.
  • M Mr PoorEnglish

    Hello! Yesterday I posted an article, which tried exactly to explain my problems with Linq2Sql - Dataclasses. It contained 3 questions, but the simply answer I got were 2 Ratings of "1", so from now on noone will find that article anymore. So I ask you again, please to help me. My questions in short are: - How can I define in the DataClass-Designer an Linq2Sql-Association with deletrule.cascade ? - Is there a more simple way to add Entities directly to a Table<TEntity> (without submitting data to the DB)? - How can I enforce the Datacontext to submit Delete-Commands, when I delete a Child-Entity from a DataGridview (actually it submits an Update, which sets the Child.ParentID to null)? As I said, my questions are asked more detailed in that article[^], and are shipped with a sample-project to make it easy to reproduce my problems.

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

    Well Mr poorenglish an article is supposed to be an informative, instructional contribution from you to CP. If you pose a complex question in an article then you must expect it to be vetoed as a rubish article. If you look at the forum list you will find a forum for LINQ and dotnet 3.5. I suggest you pose the questions in that forum and just possibly you may get an answer.

    Never underestimate the power of human stupidity RAH

    M 1 Reply Last reply
    0
    • M Mr PoorEnglish

      Hello! Yesterday I posted an article, which tried exactly to explain my problems with Linq2Sql - Dataclasses. It contained 3 questions, but the simply answer I got were 2 Ratings of "1", so from now on noone will find that article anymore. So I ask you again, please to help me. My questions in short are: - How can I define in the DataClass-Designer an Linq2Sql-Association with deletrule.cascade ? - Is there a more simple way to add Entities directly to a Table<TEntity> (without submitting data to the DB)? - How can I enforce the Datacontext to submit Delete-Commands, when I delete a Child-Entity from a DataGridview (actually it submits an Update, which sets the Child.ParentID to null)? As I said, my questions are asked more detailed in that article[^], and are shipped with a sample-project to make it easy to reproduce my problems.

      R Offline
      R Offline
      Rajesh R Subramanian
      wrote on last edited by
      #3

      Mr Poor, The purpose of an article is to educate others. You should not write an article to ask questions. The right way would be break down your problems to smaller units and work your way up. Ask questions, pin-pointing the exact problem in an appropriate programming forum and you'll sure be helped. After all your problems are solved, write down an article. Neatly explain the problems that you encountered and the strategy that helped you to over come the problems.

      Cheers, Rajesh R Subramanian.

      It is a crappy thing, but it's life -^ Carlo Pallini

      M 1 Reply Last reply
      0
      • M Mycroft Holmes

        Well Mr poorenglish an article is supposed to be an informative, instructional contribution from you to CP. If you pose a complex question in an article then you must expect it to be vetoed as a rubish article. If you look at the forum list you will find a forum for LINQ and dotnet 3.5. I suggest you pose the questions in that forum and just possibly you may get an answer.

        Never underestimate the power of human stupidity RAH

        M Offline
        M Offline
        Mr PoorEnglish
        wrote on last edited by
        #4

        Hmm - in my opinion the article was informative and instructional too. - It shows, how to set up a SQLServer-Database fromout a real Designer. (IMO that Table-"Designer" of the Database-Explorer cannot seriously be called "Designer"). - It shows, how to avoid superflues Database-requests by first adding new Entities in memory. - It points out, that the Linq2SQL-DataContext creates Requests wich may not reflect the user-Input propperly. Ok, u're not the right address to argue with about my ratings :laugh: And thanx for the tipp with the appropriate forum, I will look, wether I can find it.

        M 1 Reply Last reply
        0
        • R Rajesh R Subramanian

          Mr Poor, The purpose of an article is to educate others. You should not write an article to ask questions. The right way would be break down your problems to smaller units and work your way up. Ask questions, pin-pointing the exact problem in an appropriate programming forum and you'll sure be helped. After all your problems are solved, write down an article. Neatly explain the problems that you encountered and the strategy that helped you to over come the problems.

          Cheers, Rajesh R Subramanian.

          It is a crappy thing, but it's life -^ Carlo Pallini

          M Offline
          M Offline
          Mr PoorEnglish
          wrote on last edited by
          #5

          Hi! I dont agee with u. The article is educating - can't u see that? pls look at my answer to Mycroft. Sorry, that I formulated the statement "Linq2Sql-Dataclasses leak providing basic functionality", sorry, that I've formulated that as a question (truth is: I do not like to believe that myself) But simply decide: "That article ends up with a questionmark - rubbish!" - what I said: I don't agree with that.

          R 1 Reply Last reply
          0
          • M Mr PoorEnglish

            Hmm - in my opinion the article was informative and instructional too. - It shows, how to set up a SQLServer-Database fromout a real Designer. (IMO that Table-"Designer" of the Database-Explorer cannot seriously be called "Designer"). - It shows, how to avoid superflues Database-requests by first adding new Entities in memory. - It points out, that the Linq2SQL-DataContext creates Requests wich may not reflect the user-Input propperly. Ok, u're not the right address to argue with about my ratings :laugh: And thanx for the tipp with the appropriate forum, I will look, wether I can find it.

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

            Sorry - I did not (and still have not) read the article so I only judged the content from your posting here.

            Never underestimate the power of human stupidity RAH

            1 Reply Last reply
            0
            • M Mr PoorEnglish

              Hi! I dont agee with u. The article is educating - can't u see that? pls look at my answer to Mycroft. Sorry, that I formulated the statement "Linq2Sql-Dataclasses leak providing basic functionality", sorry, that I've formulated that as a question (truth is: I do not like to believe that myself) But simply decide: "That article ends up with a questionmark - rubbish!" - what I said: I don't agree with that.

              R Offline
              R Offline
              Rajesh R Subramanian
              wrote on last edited by
              #7

              This is from the original post: Yesterday I posted an article, which tried exactly to explain my problems with Linq2Sql - Dataclasses. It contained 3 questions...

              Mr.PoorEnglish wrote:

              But simply decide: "That article ends up with a questionmark - rubbish!" - what I said: I don't agree with that.

              Nope. I haven't decided yet, but it is better left to the readers and staff, methinks.

              Cheers, Rajesh R Subramanian.

              It is a crappy thing, but it's life -^ Carlo Pallini

              M 1 Reply Last reply
              0
              • R Rajesh R Subramanian

                This is from the original post: Yesterday I posted an article, which tried exactly to explain my problems with Linq2Sql - Dataclasses. It contained 3 questions...

                Mr.PoorEnglish wrote:

                But simply decide: "That article ends up with a questionmark - rubbish!" - what I said: I don't agree with that.

                Nope. I haven't decided yet, but it is better left to the readers and staff, methinks.

                Cheers, Rajesh R Subramanian.

                It is a crappy thing, but it's life -^ Carlo Pallini

                M Offline
                M Offline
                Mr PoorEnglish
                wrote on last edited by
                #8

                what I understand is, that u decided, to forward it to the staff and expect them to remove it - hmm, hmm, and now its a "matter of opinion", wether that makes a big difference or only a small one, isnt it?

                1 Reply Last reply
                0
                • M Mr PoorEnglish

                  Hello! Yesterday I posted an article, which tried exactly to explain my problems with Linq2Sql - Dataclasses. It contained 3 questions, but the simply answer I got were 2 Ratings of "1", so from now on noone will find that article anymore. So I ask you again, please to help me. My questions in short are: - How can I define in the DataClass-Designer an Linq2Sql-Association with deletrule.cascade ? - Is there a more simple way to add Entities directly to a Table<TEntity> (without submitting data to the DB)? - How can I enforce the Datacontext to submit Delete-Commands, when I delete a Child-Entity from a DataGridview (actually it submits an Update, which sets the Child.ParentID to null)? As I said, my questions are asked more detailed in that article[^], and are shipped with a sample-project to make it easy to reproduce my problems.

                  P Offline
                  P Offline
                  Paul Conrad
                  wrote on last edited by
                  #9

                  Mr.PoorEnglish wrote:

                  It contained 3 questions, but the simply answer I got were 2 Ratings of "1", so from now on noone will find that article anymore.

                  Perhaps you need to check spelling, capitalization, and formatting. It is lacking any real informative value for anyone. You even state in the beginning it is more of a question, and in your conclusion, you say you even treat it as a long post, hoping someone will answer your questions for you.

                  "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

                  1 Reply Last reply
                  0
                  • M Mr PoorEnglish

                    Hello! Yesterday I posted an article, which tried exactly to explain my problems with Linq2Sql - Dataclasses. It contained 3 questions, but the simply answer I got were 2 Ratings of "1", so from now on noone will find that article anymore. So I ask you again, please to help me. My questions in short are: - How can I define in the DataClass-Designer an Linq2Sql-Association with deletrule.cascade ? - Is there a more simple way to add Entities directly to a Table<TEntity> (without submitting data to the DB)? - How can I enforce the Datacontext to submit Delete-Commands, when I delete a Child-Entity from a DataGridview (actually it submits an Update, which sets the Child.ParentID to null)? As I said, my questions are asked more detailed in that article[^], and are shipped with a sample-project to make it easy to reproduce my problems.

                    R Offline
                    R Offline
                    Rob Graham
                    wrote on last edited by
                    #10

                    You seem not to understand that an article is not the correct place to "ask questions". The whole purpose of articles is to describe a solution, or provide information, not solicit help or ask for answers. The forums are the correct place to ask those questions, but this particular forum may be a bit to general in topic to be ideal for your questions. As has been pointed out, the linq and .Net3.5 forum would seem an ideal place for the questions. The 1 votes and removal of your article were because it was an inappropriate use of an article.

                    P 1 Reply Last reply
                    0
                    • R Rob Graham

                      You seem not to understand that an article is not the correct place to "ask questions". The whole purpose of articles is to describe a solution, or provide information, not solicit help or ask for answers. The forums are the correct place to ask those questions, but this particular forum may be a bit to general in topic to be ideal for your questions. As has been pointed out, the linq and .Net3.5 forum would seem an ideal place for the questions. The 1 votes and removal of your article were because it was an inappropriate use of an article.

                      P Offline
                      P Offline
                      Paul Conrad
                      wrote on last edited by
                      #11

                      Rob Graham wrote:

                      The whole purpose of articles is to describe a solution, or provide information, not solicit help or ask for answers.

                      It would be understandable if he did the article in the form of: here are questions I had with such-and-such, and here is the solution I came up with.

                      "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

                      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