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. LINQ -- Primary Key , Foriegn Key Association Is very confusing in Many -ti-many relationships ..

LINQ -- Primary Key , Foriegn Key Association Is very confusing in Many -ti-many relationships ..

Scheduled Pinned Locked Moved LINQ
csharplinqhelptutorial
2 Posts 2 Posters 2 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.
  • A Offline
    A Offline
    asp_victim
    wrote on last edited by
    #1

    Hello all I have three tables First 1 -------------------- with These Fileds CREATE TABLE [dbo].[Category]( [CategoryID] [int] IDENTITY(1,1) NOT NULL, [Name] [nvarchar](400) NOT NULL, [Description] [nvarchar](max) NOT NULL, [TemplateID] [int] NOT NULL, [MetaKeywords] [nvarchar](400) NOT NULL, [MetaDescription] [nvarchar](4000) NOT NULL, [MetaTitle] [nvarchar](400) NOT NULL, [SEName] [nvarchar](100) NOT NULL, [ParentCategoryID] [int] NOT NULL, [PictureID] [int] NOT NULL, [PageSize] [int] NOT NULL CONSTRAINT [DF_Nop_Category_PageSize] DEFAULT ((10)), [PriceRanges] [nvarchar](400) NOT NULL CONSTRAINT [DF_Nop_Category_PriceRanges] DEFAULT (''), [ShowOnHomePage] [bit] NOT NULL CONSTRAINT [DF_Nop_Category_ShowOnHomePage] DEFAULT ((0)), [Published] [bit] NOT NULL, [Deleted] [bit] NOT NULL, [DisplayOrder] [int] NOT NULL, [CreatedOn] [datetime] NOT NULL, [UpdatedOn] [datetime] NOT NULL, Table 2 -- CategoryAttribute Fileds CategoryAttributeID CategoryID Name DisplayOrder Table 3 -- CategoryAttributeOptions Fileds CategoryAttributeoptionsID CategoryID Name DisplayOrder How i insert data from categoryattribute table to catgory table How i insert data from categoryattributeoptions table to catgoryattribute table LINQ is very confussing I can understand how to insert data with Foreign keys and primary key Help me

    N 1 Reply Last reply
    0
    • A asp_victim

      Hello all I have three tables First 1 -------------------- with These Fileds CREATE TABLE [dbo].[Category]( [CategoryID] [int] IDENTITY(1,1) NOT NULL, [Name] [nvarchar](400) NOT NULL, [Description] [nvarchar](max) NOT NULL, [TemplateID] [int] NOT NULL, [MetaKeywords] [nvarchar](400) NOT NULL, [MetaDescription] [nvarchar](4000) NOT NULL, [MetaTitle] [nvarchar](400) NOT NULL, [SEName] [nvarchar](100) NOT NULL, [ParentCategoryID] [int] NOT NULL, [PictureID] [int] NOT NULL, [PageSize] [int] NOT NULL CONSTRAINT [DF_Nop_Category_PageSize] DEFAULT ((10)), [PriceRanges] [nvarchar](400) NOT NULL CONSTRAINT [DF_Nop_Category_PriceRanges] DEFAULT (''), [ShowOnHomePage] [bit] NOT NULL CONSTRAINT [DF_Nop_Category_ShowOnHomePage] DEFAULT ((0)), [Published] [bit] NOT NULL, [Deleted] [bit] NOT NULL, [DisplayOrder] [int] NOT NULL, [CreatedOn] [datetime] NOT NULL, [UpdatedOn] [datetime] NOT NULL, Table 2 -- CategoryAttribute Fileds CategoryAttributeID CategoryID Name DisplayOrder Table 3 -- CategoryAttributeOptions Fileds CategoryAttributeoptionsID CategoryID Name DisplayOrder How i insert data from categoryattribute table to catgory table How i insert data from categoryattributeoptions table to catgoryattribute table LINQ is very confussing I can understand how to insert data with Foreign keys and primary key Help me

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      asp_victim wrote:

      I can understand how to insert data with Foreign keys and primary key

      Then what is your problem?


      I know the language. I've read a book. - _Madmatt

      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