Definition at line 11 of file MappingModel.cs.
Deveel.Data.Mapping.MappingModel.MappingModel |
( |
| ) |
|
|
inlinepackage |
Definition at line 15 of file MappingModel.cs.
readonly Dictionary< Type, TypeMapping > typeMappings
readonly List< Relationship > relationships
void Deveel.Data.Mapping.MappingModel.AddRelationship |
( |
Relationship |
relationship | ) |
|
|
inlinepackage |
Definition at line 24 of file MappingModel.cs.
25 if (relationship == null)
26 throw new ArgumentNullException(
"relationship");
28 if (!
IsMapped(relationship.SourceType))
29 throw new ArgumentException(
String.Format(
"Type '{0}' source of the relationship is not mapped.", relationship.SourceType));
30 if (!
IsMapped(relationship.TargetType))
31 throw new ArgumentException(
String.Format(
"Type '{0}' destination of the relationship is not mapped.", relationship.TargetType));
33 var typeMapping =
GetMapping(relationship.SourceType);
34 if (!typeMapping.IsMemberMapped(relationship.SourceMember))
35 throw new ArgumentException(
String.Format(
"Member '{0}' in type '{1}' source of the relationship is not mapped",
36 relationship.SourceMember, relationship.SourceType));
A long string in the system.
readonly List< Relationship > relationships
TypeMapping GetMapping(Type type)
QueryMapping Deveel.Data.Mapping.MappingModel.CreateQueryMapping |
( |
| ) |
|
|
inlinepackage |
TypeMapping Deveel.Data.Mapping.MappingModel.GetMapping |
( |
Type |
type | ) |
|
|
inline |
Definition at line 57 of file MappingModel.cs.
59 throw new ArgumentNullException(
"type");
readonly Dictionary< Type, TypeMapping > typeMappings
Relationship Deveel.Data.Mapping.MappingModel.GetRelationship |
( |
Type |
sourceType, |
|
|
string |
sourceMember |
|
) |
| |
|
inline |
Definition at line 68 of file MappingModel.cs.
69 return relationships.FirstOrDefault(x => x.SourceType == sourceType &&
70 x.SourceMember == sourceMember);
readonly List< Relationship > relationships
bool Deveel.Data.Mapping.MappingModel.IsMapped |
( |
Type |
type | ) |
|
|
inline |
Definition at line 53 of file MappingModel.cs.
readonly Dictionary< Type, TypeMapping > typeMappings
void Deveel.Data.Mapping.MappingModel.Map |
( |
TypeMapping |
mapping | ) |
|
|
inlinepackage |
Definition at line 20 of file MappingModel.cs.
readonly Dictionary< Type, TypeMapping > typeMappings
readonly List<Relationship> Deveel.Data.Mapping.MappingModel.relationships |
|
private |
readonly Dictionary<Type, TypeMapping> Deveel.Data.Mapping.MappingModel.typeMappings |
|
private |
IEnumerable<Relationship> Deveel.Data.Mapping.MappingModel.Relationships |
|
get |
IEnumerable<TypeMapping> Deveel.Data.Mapping.MappingModel.TypeMappings |
|
get |
IEnumerable<Type> Deveel.Data.Mapping.MappingModel.Types |
|
get |
The documentation for this class was generated from the following file:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb-linq/Deveel.Data.Mapping/MappingModel.cs