Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6980853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:04:49+00:00 2026-05-27T18:04:49+00:00

Is it possible to store the metadata information of 2 models in a single

  • 0

Is it possible to store the metadata information of 2 models in a single class?

For example I’m working on Login and Registration model, both has username and password. Usually we create another class that will contain the meta data information: LoginMetadata and RegistrationMetadata. Or put the metadata information in the Login and Registration class.

What I want to do is to create a single UserMetadata class then store the combined metadata information from Login and Registration model in it. In this case I have a single validation rule for username, password, etc. Is that possible?

Regards,
czetsuya

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T18:04:50+00:00Added an answer on May 27, 2026 at 6:04 pm

    It´s not possible to store metadata for multiple classes in one class.

    The MetaDataTypeAttribute is decorated with [AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = false)], so it can only be used on classes and can only be used once. It means that you cannot not define a class as a metadata placeholder for multiple classes.

    Link to MSDN Documentation for MetaDataTypeAttribute.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to store a Class that contains a List inside an array?
Is it possible to store a type name as a C++ variable? For example,
I'm wondering if it's possible to store metadata in PowerPoint files using C#? It
I am building a cache that has to store as much data as possible.
I am working on a system that will store uploaded files. The metadata will
Is it possible to store the reference to a class instance? class Node {
Is it possible to store a NaN in a property list file. I tried:
Is it possible to store soemthing like this in a php string: $variable =
Is it possible to store DIV name into variable when I hover over it?
Is it possible to store the display list data on the video card memory?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.