You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, Thank you for BrightstarDB!
I am trying to use the entity framework but I have trouble creating a certain type of connections (see image). My guess is that I am doing something wrong with the interface of the entity.
Do you have an idea?
Interfaces:
[Entity("ge:LocationDescription")]
public interface ILocation
{
[Identifier("ge:Locations/")]
string Id { get; }
[PropertyType("af-x:hasfacet")]
IIdentifier LocationIdentifier { get; set; }
[PropertyType("af-x:hasfacet")]
IWrittenName Name { get; set; }
}
[Entity("af-r:identifier")]
public interface IIdentifier
{
[Identifier("geid:Identifiers/")]
string Id { get; }
[PropertyType("af-x:hasvalue")]
string Value { get; set; }
}
[Entity("iao:writtenname")]
public interface IWrittenName
{
[Identifier("geid:Names/")]
string Id { get; }
[PropertyType("af-x:hasvalue")]
string Value { get; set; }
}
Instantiation:
var location = databaseContext.Locations.Create();
var identifier = databaseContext.Identifiers.Create();
var writtenName = databaseContext.WrittenNames.Create();
identifier.Value = "E2-07";
writtenName.Value = "Lab 23";
location.LocationIdentifier = identifier;
location.Name = writtenName;
databaseContext.SaveChanges();
Resulting triples:
The text was updated successfully, but these errors were encountered:
Hi, Thank you for BrightstarDB!
I am trying to use the entity framework but I have trouble creating a certain type of connections (see image). My guess is that I am doing something wrong with the interface of the entity.
Do you have an idea?
Interfaces:
Instantiation:
Resulting triples:
The text was updated successfully, but these errors were encountered: