Changing entity name/poco class name from table name while creating model from the database -


I want to create an entity model from the existing database but in all the table names there is "_" / underscore in the database while Poko To create a class, I want to remove underscores in the name of institutions / Poko classes.

Thank you, Amit

You have two options,

< Ol>
  • There is a bit of a learning curve, but using code T-4 templates in it generates code generation. Actually you will only be able to exclude _ in the conceptual model.
  • Easy, and a little more painful just to import your models and then use the Model Explorer and rename each unit. You only have to do this once, it will ideologically save the mapping from the physical. A walk can be found through (search for "Change an entity name")

  • Comments

    Popular posts from this blog

    c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

    Calling GetGUIThreadInfo from Outlook VBA -

    Obfuscating Python code? -