Quantcast
Channel: Entity Framework
Viewing all articles
Browse latest Browse all 10318

Created Issue: '.' is not handled in the [Table] annotation [716]

$
0
0
Code:
[Table("Schema.Comment")]
public class Comment
{
public int Id { get; set; }
public string Text { get; set; }
public string Author { get; set; }
public DateTime Timestamp { get; set; }
public int PostId { get; set; }
}

Actual:
$exception {"The database name 'dbo.Schema.Comment' is invalid. Database names must be of the form [<schema_name>.]<object_name>."} System.Exception {System.ArgumentException}

Expected:
the '.' should interpret the first part "Schema" as the schema and the second part "Comment" as the table name generating a database name Schema.Comment

Viewing all articles
Browse latest Browse all 10318

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>