What is the best architecture for such app ?

Each user will have independent block with info.
For example
- picture with info
- timetable
- favorite books
He can show or hide each block.
Some block can be obsolete in the future.
Another block can be added in the future.
First idea is put every info in user table.
public class User
    public int UserId {get;set;}
    public string UserName {get;set;}
    //First block info
    public byte[] Image {get;set;}
    public string Deskription {get;set;}
    public bool IsInfoEnabled {get;set;}
    //Second block info
    public int TimeTableId
    public int TimeTableName
    public bool IsTimeTableNameEnabled {get;set;}
So I get table which will be growing up in width ( i mean columns ).
But I don't like to delete columns from these big table.
That's why I decided to move all content block to separate table.
Second idea :
public class User
    public int UserId {get;set;}
    public string UserName {get;set;}
    public int InfoBlockId {get;set;}
    public int TimeTableBlockId {get;set;}
public class InfoBlock
    public int InfoBlockId {get;set;}
    public byte[] Image {get;set;}
    public string Deskription {get;set;}
    public bool IsInfoEnabled {get;set;}
public class TimeTableBlock
    public int TimeTableBlockId {get;set;}
In second way scalability is better, but I will get more queries through numerous tables.
What is the best way ? If you have your additional idea share it!
My .NET Blog with projects and feedback.
Since May 30, 2014 I am waiting for Microsoft fix
these 2 bug. If you know how to speed them up, please help

As your question is about architecture..
The first question is: Do you want to follow a Code-First or Database-First design.
Then you may choose the appropriate forum. From your post, I guess, it's Code-First. So take your wording as an outline. Thus you need a User class and blocks. As blocks can have different types, we need some polymorphism here. Thus it could be an IBlock.
So that your concrete types derive from it:
Instead of an interface it could be also an abstract base class:

Similar Messages

  • What are the best Voice to Text app's for use in classroom?

    What are the best Voice to Text app's for use in classroom?

    Hi I did download the software you suggested which you mentioned in in our iphone.
    However the This did not happen to my text
    "text it will appear a botton "Talk" and you're going to have a Text-to-Speech."
    I have to hold my finger on the taxt and it says copy and next word is text. so the text needs to behightlighted each time till the end, which is difficult to do. why does the "talk" appear on the bottom?
    What do I need to do for that to appear?
    Thank you in advance for the rplies.

  • What are the best Voice to Text app's for use in business meetings?

    What are the best Voice to Text app's for use in business meetings?

    Hi I did download the software you suggested which you mentioned in in our iphone.
    However the This did not happen to my text
    "text it will appear a botton "Talk" and you're going to have a Text-to-Speech."
    I have to hold my finger on the taxt and it says copy and next word is text. so the text needs to behightlighted each time till the end, which is difficult to do. why does the "talk" appear on the bottom?
    What do I need to do for that to appear?
    Thank you in advance for the rplies.

  • I am looking to start developing apps for the iTunes Store, but I have no previous experience. What is the best way for me to start on this? As in which programs and materials must I need and what I need to know. Thanks!

    I am looking to start developing apps for the iTunes Store, but I have no previous experience. What is the best way for me to start on this? As in which programs and materials must I need and what I need to know. Thanks!

    You will need a Mac, with OS X 10.6+ on it, to be able to develop iOS apps.
    There is some info on these pages :
    developer site : https://developer.apple.com
    developing for iOS 7 : https://developer.apple.com/ios7/
    developer support : https://developer.apple.com/support/
    developer forums : https://devforums.apple.com/index.jspa (you will need to be a registered developer to access them)

  • What is the best program for playing games,dics,3d settings such as "groove setting"

    what is the best program for playing games,dics,3d settings such as "groove setting"?

    Aubry,
    why don't you send your sequences straight to Compressor first, encode your movies as MPEG 2 and AC3 audio and import all assets in DVD studio PRO?
    G.

  • What is the best and easiest print app for the iPad and iPhone?

    What is the best and easiest print app for the iPad?

    Richard-
    The best and easiest is to use the iPad's built-in AirPrint system with an AirPrint-capable printer.  <iOS: AirPrint 101>
    If you do not have an AirPrint-capable printer, all printing Apps are a compromise.  I have an HP non-AirPrint printer connected to my WiFi router.  The free HP App, ePrint Home & Biz works OK with photos.
    Print n Share and PrintCentral each have their own browser, mail, text and photo programs that work well with the printer, but they can only be accessed from within other programs that have the "Open In" option.  (So far, I think GoodReader is the only App I have with that option.)
    You can run a program like Printopia or FingerPrint on your computer that will share its printer as AirPrint over WiFi.  They both are reported to work well.  However your computer must be on and awake any time you want to print.  <Printopia for Macintosh>  <FingerPrint for PC and Mac>
    Fred

  • What is the best free audio recording app for ipod?

    What is the best free audio recording app for ipod?
    Looking for one that will record audio for longer than 30minutes with high quality.
    Thanks.

    Perhaps your husband should search the App Store and sort by price?

  • What is the best program for panning across an illustration for an App i am working on?

    What is the best program for panning across an illustration for an App i am working on?

    What is the best program for panning across an illustration for an App i am working on?

  • What is the best antivirus for MacBook Pro?

    What is the best antivirus for MacBook Pro?

    1. This comment applies to malicious software ("malware") that's installed unwittingly by the victim of a network attack. It does not apply to software, such as keystroke loggers, that may be installed deliberately by an intruder who has hands-on access to the victim's computer. That threat is in a different category, and there's no easy way to defend against it. If you have reason to suspect that you're the target of such an attack, you need expert help.
    If you find this comment too long or too technical, read only sections 5, 6, and 10.
    OS X now implements three layers of built-in protection specifically against malware, not counting runtime protections such as execute disable, sandboxing, system library randomization, and address space layout randomization that may also guard against other kinds of exploits.
    2. All versions of OS X since 10.6.7 have been able to detect known Mac malware in downloaded files, and to block insecure web plugins. This feature is transparent to the user, but internally Apple calls it "XProtect." The malware recognition database is automatically checked for updates once a day; however, you shouldn't rely on it, because the attackers are always at least a day ahead of the defenders.
    The following caveats apply to XProtect:
    It can be bypassed by some third-party networking software, such as BitTorrent clients and Java applets.
    It only applies to software downloaded from the network. Software installed from a CD or other media is not checked.
    3. Starting with OS X 10.7.5, there has been a second layer of built-in malware protection, designated "Gatekeeper" by Apple. By default, applications and Installer packages downloaded from the network will only run if they're digitally signed by a developer with a certificate issued by Apple. Software certified in this way hasn't necessarily been tested by Apple, but you can be reasonably sure that it hasn't been modified by anyone other than the developer. His identity is known to Apple, so he could be held legally responsible if he distributed malware. That may not mean much if the developer lives in a country with a weak legal system (see below.)
    Gatekeeper doesn't depend on a database of known malware. It has, however, the same limitations as XProtect, and in addition the following:
    It can easily be disabled or overridden by the user.
    A malware attacker could get control of a code-signing certificate under false pretenses, or could simply ignore the consequences of distributing codesigned malware.
    An App Store developer could find a way to bypass Apple's oversight, or the oversight could fail due to human error.
    For the reasons given above, App Store products, and other applications recognized by Gatekeeper as signed, are safer than others, but they can't be considered absolutely safe. "Sandboxed" applications may prompt for access to private data, such as your contacts, or for access to the network. Think before granting that access. OS X security is based on user input. Never click through any request for authorization without thinking.
    4. Starting with OS X 10.8.3, a third layer of protection has been added: a "Malware Removal Tool" (MRT). MRT runs automatically in the background when you update the OS. It checks for, and removes, malware that may have evaded the other protections via a Java exploit (see below.) MRT also runs when you install or update the Apple-supplied Java runtime (but not the Oracle runtime.) Like XProtect, MRT is presumably effective against known attacks, but maybe not against unknown attacks. It notifies you if it finds malware, but otherwise there's no user interface to MRT.
    5. XProtect, Gatekeeper, and MRT reduce the risk of malware attack, but they're not absolute protection. The first and best line of defense is always your own intelligence. With the possible exception of Java exploits, all known malware circulating on the Internet that affects a fully-updated installation of OS X 10.6 or later takes the form of so-called "trojan horses," which can only have an effect if the victim is duped into running them. The threat therefore amounts to a battle of wits between you and the malware attacker. If you're smarter than he thinks you are, you'll win.
    That means, in practice, that you never use software that comes from an untrustworthy source, or that does something inherently untrustworthy. How do you know what is trustworthy?
    Any website that prompts you to install a “codec,” “plug-in,” "player," "extractor," or “certificate” that comes from that same site, or an unknown one, is untrustworthy.
    A web operator who tells you that you have a “virus,” or that anything else is wrong with your computer, or that you have won a prize in a contest you never entered, is trying to commit a crime with you as the victim. (Some reputable websites did legitimately warn visitors who were infected with the "DNSChanger" malware. That exception to this rule no longer applies.)
    Pirated copies or "cracks" of commercial software, no matter where they come from, are unsafe.
    Software of any kind downloaded from a BitTorrent or from a Usenet binary newsgroup is unsafe.
    Software that purports to help you do something that's illegal or that infringes copyright, such as saving streamed audio or video for reuse without permission, is unsafe. All YouTube "downloaders" are in this category, though not all are necessarily harmful.
    Software with a corporate brand, such as Adobe Flash Player, must be downloaded directly from the developer’s website. If it comes from any other source, it's unsafe.
    Even signed applications, no matter what the source, should not be trusted if they do something unexpected, such as asking for permission to access your contacts, your location, or the Internet for no obvious reason.
    6. Java on the Web (not to be confused with JavaScript, to which it's not related, despite the similarity of the names) is a weak point in the security of any system. Java is, among other things, a platform for running complex applications in a web page, on the client. That was always a bad idea, and Java's developers have proven themselves incapable of implementing it without also creating a portal for malware to enter. Past Java exploits are the closest thing there has ever been to a Windows-style virus affecting OS X. Merely loading a page with malicious Java content could be harmful.
    Fortunately, client-side Java on the Web is obsolete and mostly extinct. Only a few outmoded sites still use it. Try to hasten the process of extinction by avoiding those sites, if you have a choice. Forget about playing games or other non-essential uses of Java.
    Java is not included in OS X 10.7 and later. Discrete Java installers are distributed by Apple and by Oracle (the developer of Java.) Don't use either one unless you need it. Most people don't. If Java is installed, disable it — not JavaScript — in your browsers.
    Regardless of version, experience has shown that Java on the Web can't be trusted. If you must use a Java applet for a task on a specific site, enable Java only for that site in Safari. Never enable Java for a public website that carries third-party advertising. Use it only on well-known, login-protected, secure websites without ads. In Safari 6 or later, you'll see a lock icon in the address bar with the abbreviation "https" when visiting a secure site.
    Follow the above guidelines, and you’ll be as safe from malware as you can practically be. The rest of this comment concerns what you should not do to protect yourself from malware.
    7. Never install any commercial "anti-virus" or "Internet security" products for the Mac, as they all do more harm than good, if they do any good at all. Any database of known threats is always going to be out of date. Most of the danger is from unknown threats. If you need to be able to detect Windows malware in your files, use one of the free anti-virus products in the Mac App Store — nothing else.
    Why shouldn't you use commercial "anti-virus" products?
    Their design is predicated on the nonexistent threat that malware may be injected at any time, anywhere in the file system. Malware is downloaded from the network; it doesn't materialize from nowhere.
    In order to meet that nonexistent threat, the software modifies or duplicates low-level functions of the operating system, which is a waste of resources and a common cause of instability, bugs, and poor performance.
    By modifying the operating system, the software itself may create weaknesses that could be exploited by malware attackers.
    8. An anti-malware product from the App Store, such as "ClamXav," doesn't have these drawbacks. That doesn't mean it's entirely safe. It may report email messages that have "phishing" links in the body, or Windows malware in attachments, as infected files, and offer to delete or move them. Doing so will corrupt the Mail database. The messages should be deleted from within the Mail application.
    An anti-virus app is not needed, and should not be relied upon, for protection against OS X malware. It's useful only for detecting Windows malware. Windows malware can't harm you directly (unless, of course, you use Windows.) Just don't pass it on to anyone else.
    A Windows malware attachment in email is usually easy to recognize. The file name will often be targeted at people who aren't very bright; for example:
    ♥♥♥♥♥♥♥♥♥♥♥♥♥♥!!!!!!!H0TBABEZ4U!!!!!!!.AVI♥♥♥♥♥♥♥♥♥♥♥♥♥♥.exe
    Anti-virus software may be able to tell you which particular virus or trojan it is, but do you care? In practice, there's seldom a reason to use the software unless a network administrator requires you to do it.
    The ClamXav developer won't try to "upsell" you to a paid version of the product. Other developers may do that. Don't be upsold. For one thing, you should not pay to protect Windows users from the consequences of their choice of computing platform. For another, a paid upgrade from a free app will probably have the disadvantages mentioned in section 7.
    9. It seems to be a common belief that the built-in Application Firewall acts as a barrier to infection, or prevents malware from functioning. It does neither. It blocks inbound connections to certain network services you're running, such as file sharing. It's disabled by default and you should leave it that way if you're behind a router on a private home or office network. Activate it only when you're on an untrusted network, for instance a public Wi-Fi hotspot, where you don't want to provide services. Disable any services you don't use in the Sharing preference pane. All are disabled by default.
    10. As a Mac user you don't have to live in fear that your computer is going to be infected every time you install an application, read email, or visit a web page. But neither should you have the false idea that you will always be safe, no matter what you do. The greatest harm done by security software is precisely its selling point: it makes people feel safe. They may then feel safe enough to take risks from which the software doesn't protect them. Nothing can lessen the need for safe computing practices.

  • What is the best flash for ipad3, What is the best flash for ipad3

    What is the best flash for ipad3.

    No Flash for iPads, iPhones, or iPods
    Here's why there's is no Flash available for iDevices or other mobile devices. Adobe was unable to provide a product that was suitable to the needs of battery powered mobile devices used for Internet browsing. Existing Flash technology used too much memory, ate battery life, and was buggy. Simply put Flash did not work well on mobile devices.
    Apple's Steve Jobs led the escape from Flash dependency when Apple introduced the iPhone, and later introduced the iPad. There was a hue and cry over the omission. Time proved Jobs was right on target.
    So this is why there is no Flash for your iPhone or iPad or iPod nor for most SmartPhones. Flash has been abandoned by many sites in favor of supported technologies such as HTML5 or by providing their own custom app.
    Here is Steve Jobs official comment on his momentous decision to omit Flash from iDevices: Steve Jobs on Flash.
    Here is Adobe's later announcement to cease development of Flash for mobile devices: Adobe on Mobile Flash.
    Now, you are not necessarily out on a limb. There are some apps that can display some Flash, but don't count on there ability to display anything using Flash.
    Apps that can display some Flash from the Web:
    Puffin
    SkyFire
    Photon Flash
    Browse2Go
    iSwifter
    Also, note that many sites that use Flash provide their own app for accessing their material. So check with your favorite sites and find out if "there's an app for that."

  • What is the best skin for new Macbook Air 13"?

    What is the best skin for new Macbook Air 13"?
    I have a new Air and want to protect it from scratches and such.
    Thanks in advance

    Sorry, I don't like "skins". They inhibit the heat transfer necessary to keep your MBA cool. Get a soft or hard case to store it when not in use. I like Speck products.
    Just take care of it. Battle scars make it uniquely yours.

  • What are the best approaches for mapping re-start in OWB?

    What are the best approaches for mapping re-start in OWB?
    We are using OWB repository 10.2.0.1.0 and OWB client 10.2.0.1.31. The Oracle version is 10 G (10.2.0.3.0). OWB is installed on Linux.
    We have number of mappings. We built process flows for mappings as well.
    I like to know, what are the best approches to incorportate re-start options in our process. ie a failure of mapping in process flow.
    How do we re-cycle failed rows?
    Are there any builtin features/best approaches in OWB to implement the above?
    Does runtime audit tables help us to build re-start process?
    If not, do we need to maintain our own tables (custom) to maintain such data?
    How did our forum members handled above situations?
    Any idea ?
    Thanks in advance.
    RI

    Hi RI,
    How many mappings (range) do you have in a process flows?Several hundreds (100-300 mappings).
    If we have three mappings (eg m1, m2, m3) in process flow. What will happen if m2 fails?Suppose mappings connected sequentially (m1 -> m2 -> m3). When m2 fails then processflow is suspended (transition to m3 will not be performed). You should obviate cause of error (modify mapping and redeploy, correct data, etc) and then repeat m2 mapping execution from Workflow monitor - open diagram with processflow, select mapping m2 and click button Expedite, choose option Repeat.
    In re-start, will it run m1 again and m2 son on, or will it re-start at row1 of m2?You can specify restart point. "at row1 of m2" - I don't understand what you mean (all mappings run in Set based mode, so in case of error all table updates will rollback,
    but there are several exception - for example multiple target tables in mapping without corelated commit, or error in post-mapping - you must carefully analyze results of error).
    What will happen if m3 fails?Process is suspended and you can restart execution from m3.
    By having without failover and with max.number of errors=0, you achieve re-cycle failed rows to zero (0).This settings guarantee existence only two return result of mapping - SUCCSES or ERROR.
    What is the impact, if we have large volume of data?In my opinion for large volume Set based mode is the prefered processing mode of data processing.
    With this mode you have full range enterprise features of Oracle database - parallel query, parallel DML, nologging, etc.
    Oleg

  • What is the best resource for Discoverer novice.

    I need direction in this tool. what is the best resource for me to use.

    Hi Ade
    You could do a lot worse than get hold of a copy of the Oracle Discoverer 10g Handbook that I wrote. It will walk you through much of what you need to know. You can find it on amazon.com or via a link from my website: http://learndiscoverer.com/books/books.htm
    Another good resource would be a training class in either the Admin tool or End User tool or both. Oracle Corporation offer excellent training as do many other companies, including mine. Just google Discoverer Training.
    Further resources are the Oracle By Example series on the OTN forum. These are free. You will find the Discoverer lessons here: http://www.oracle.com/technology/obe/obe_bi/discoverer/discoverer_1012/index.html
    Other resources, such as blogs, abound on the web too. Here are some:
    Oracle BI Blog: http://oraclebi.blogspot.com/
    Mark Rittman: http://www.rittmanmead.com/blog/
    My Blog: http://learndiscoverer.blogspot.com/
    Best wishes
    Michael

  • What is the best laptop for Photoshop Elements 10 ?

    I have HP Pavilion g6 Notebook,i5-245M 2.5GHZ, 4 GB mwmory, 64-bit Operating system window 7, Radeon Graphics, Eidtior not working , I get error message ( Unable to continue because of hardware or system error,Sorry,but this error in unercoverable).
    So I want to give this one to my son, and I want to bay new One for me,
    but i do not want to have same Error with my new Laptop,
    So any one know what is the best Laptop for PhotoShop Elements 10 ?
    Thanks for Helping me .

    I would suggest a machine with a multi-core processor and plenty of storage as photo files take up quite a lot of room over time. Many laptops have a screen resolution of 1366 x 768 and whilst elements will run OK some menu functionality will be missing if the display is not at least 800 pixels in height. A resolution of 1600 x 900 would be much better.
    Independent advice is best, such as Which, UK. You can get a trial membership for as little as £1 to access their recommendations.
    http://www.which.co.uk/technology/computing/reviews/laptops/best-buy/verdict/

  • What is the best printer for wireless printing with the iPhone?

    What is the best printer for wireless printing witth the iPhone?

    Roaminggnome has the list......pick on of those TERRIBLE printers and go for it....
    I hope Apple see fit to broaden this list, because, having thrown away several of those brands in my life, I now have a network compatble BROTHER printer that's awesome,
    "There's an app for that," ie the BROTHER, but you can only print pictures and soforth.
    Apple, step up, open up the list of printers we can use!

Maybe you are looking for

  • Mass creation of PO from excel sheet

    Dear all        Kindly let me know the method for Mass creation of PO from excel sheet Regards Chandra mohan

  • Trying to install 10.7 on a mac mini core duo that has a core 2 duo cpu

    I have installed a core 2 duo cpu (T7200) in an earlier Mac Mini core duo machine. Runs fine, the system report shows the Core 2 chip.   When I try to install 10.7 over 10.6.8, however, the installer reports that it cannot install this version of OS

  • Files for archiving

    I want to put my TestStand Project in a software archive. Therefor I have to know which files are neccesary to keep and which are automatically created so don't have to been archived. Is this described in a document?

  • Problem in networking

    Dear all: I am doing my homework. And I had solve the question 2.But in Q3, I spend about two weeks and cannot solve it. And the time is limited, pls. give me a hand. Thanks! The questions are: (Q2) The system has a total of 10 threads. 5 threads are

  • Send Jython HTML Email Error

    Hi, I have downloaded the procedure to send an email in ODI from https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=HOWTO&id=424304.1 Now i'm encountering a problem when i'm trying to use it/work with it. The message in the executi