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. LINQ
  4. Create Custom .dbml file

Create Custom .dbml file

Scheduled Pinned Locked Moved LINQ
help
4 Posts 2 Posters 8 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.
  • R Offline
    R Offline
    reza toorani
    wrote on last edited by
    #1

    Hi I want the table of a datacontext in the project inherit my base table calss.for it purpose,I want create custom the dbml files,which it be like VS2008,I can drag and drop table to the my dbml file and it inhrerits my calss. Please help me for it. Thanks.

    J 1 Reply Last reply
    0
    • R reza toorani

      Hi I want the table of a datacontext in the project inherit my base table calss.for it purpose,I want create custom the dbml files,which it be like VS2008,I can drag and drop table to the my dbml file and it inhrerits my calss. Please help me for it. Thanks.

      J Offline
      J Offline
      Judah Gabriel Himango
      wrote on last edited by
      #2

      Since DataContext already inherits from System.Object, you can't force the inheritance some other way. Perhaps if you describe what you're trying to do, we'll be able to help you.

      Life, family, faith: Give me a visit. From my latest post: "How differently the psalmist saw it! How blessed -- how truly happy with real joy! -- is the man who delights in the Law of the Lord." Judah Himango

      R 1 Reply Last reply
      0
      • J Judah Gabriel Himango

        Since DataContext already inherits from System.Object, you can't force the inheritance some other way. Perhaps if you describe what you're trying to do, we'll be able to help you.

        Life, family, faith: Give me a visit. From my latest post: "How differently the psalmist saw it! How blessed -- how truly happy with real joy! -- is the man who delights in the Law of the Lord." Judah Himango

        R Offline
        R Offline
        reza toorani
        wrote on last edited by
        #3

        I want design data access layer for the medium application,I want use linq to sql for it.I need which genarate code for entities of application.for that i want inherite the class of a datacontext from my class. User interface is important for that. Please help for it or give me a suoltion Thanks Judah.

        J 1 Reply Last reply
        0
        • R reza toorani

          I want design data access layer for the medium application,I want use linq to sql for it.I need which genarate code for entities of application.for that i want inherite the class of a datacontext from my class. User interface is important for that. Please help for it or give me a suoltion Thanks Judah.

          J Offline
          J Offline
          Judah Gabriel Himango
          wrote on last edited by
          #4

          reza toorani wrote:

          I want design data access layer for the medium application,I want use linq to sql for it.

          Ok, that works.

          reza toorani wrote:

          I need which genarate code for entities of application.

          The Visual Studio designer will generate classes for objects stored in your tables, if that's what you mean. If you don't have Visual Studio, the SqlMetal[^] tool inside the .NET framework will do it.

          reza toorani wrote:

          for that i want inherite the class of a datacontext from my class.

          Again, this is not possible. I do not understand why you need to do this.

          reza toorani wrote:

          User interface is important for that.

          User interface for your application? Or for generating the entities?

          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