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. Visual Basic
  4. TableAdapter hiding

TableAdapter hiding

Scheduled Pinned Locked Moved Visual Basic
visual-studiodesignhelpquestion
1 Posts 1 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.
  • S Offline
    S Offline
    shreekar
    wrote on last edited by
    #1

    Hi I am using TableAdapters in my middle layer. Now I want to hide them from my UI code. The IDE offers only 2 possible access specifiers - Public and Friend. When I set the access specifier to Friend, the compiler complains that the methods in the table adapter generated code that return a strongly typed data table cannot be exposed. The error is as follows: ********** Error start ************ Error 21 'GetConfigDetails' cannot expose type 'Vigi.DTSysConfigDataTable' outside the project through class 'DTSysConfigTableAdapter'. ********** Error end ************ where GetConfigDetails is the method in the generated code and DTSysConfigTableAdapter is the tableadapter class generated by the IDE. The strongly typed dataset and the class that is calling it both reside in the same project (hence assembly, I assume) I am returning only the class object from the middle tier. Any idea how I can hide the dataset(with tableadapters) from the outside world and not get these types of errors?

    Shreekar

    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