dotnet-core/release-notes/5.0/api-diff/netstandard2.1/5.0_System.ComponentModel.DataAnnotations.Schema.md
Anirudh Agnihotry fdaef4427a
Api diff between net5.0 and netcoreapp3.1 & netstandard2.1 (#5610)
* .net shared framework changes

* standalone net 5.0 packages

* netstanard2.1 diff

* improving the directory structure

* adding a readme file

* aspnetcore shared framework changes

* remove wrong process type change diff

* adding comments about apis being to inbox from package
2020-11-18 10:40:01 -08:00

43 lines
1.4 KiB
Markdown

# System.ComponentModel.DataAnnotations.Schema
``` diff
+namespace System.ComponentModel.DataAnnotations.Schema {
+ public class ColumnAttribute : Attribute {
+ public ColumnAttribute();
+ public ColumnAttribute(string name);
+ public string Name { get; }
+ public int Order { get; set; }
+ public string TypeName { get; set; }
+ }
+ public class ComplexTypeAttribute : Attribute {
+ public ComplexTypeAttribute();
+ }
+ public class DatabaseGeneratedAttribute : Attribute {
+ public DatabaseGeneratedAttribute(DatabaseGeneratedOption databaseGeneratedOption);
+ public DatabaseGeneratedOption DatabaseGeneratedOption { get; }
+ }
+ public enum DatabaseGeneratedOption {
+ Computed = 2,
+ Identity = 1,
+ None = 0,
+ }
+ public class ForeignKeyAttribute : Attribute {
+ public ForeignKeyAttribute(string name);
+ public string Name { get; }
+ }
+ public class InversePropertyAttribute : Attribute {
+ public InversePropertyAttribute(string property);
+ public string Property { get; }
+ }
+ public class NotMappedAttribute : Attribute {
+ public NotMappedAttribute();
+ }
+ public class TableAttribute : Attribute {
+ public TableAttribute(string name);
+ public string Name { get; }
+ public string Schema { get; set; }
+ }
+}
```