MongoDB.Entities
Namespace with 35 public types
Classes
Coordinates2D
Represents a GeoJsonPoint of GeoJson2DGeographicCoordinates
DatabaseAttribute
Use this attribute to specify the database to store this IEntity in.
DataStreamer
Date
DB
Find`1
Represents a MongoDB Find command for materializing results directly.
TIP: Specify your criteria using .Match() .Sort() .Skip() .Take() .Project() .Option() methods and finally call .Execute()Note: For building queries, use the DB.Fluent* interfaces
Find`2
Represents a MongoDB Find command
TIP: Specify your criteria using .Match() .Sort() .Skip() .Take() .Project() .Option() methods and finally call .Execute()
FuzzyString
Use this type to store strings if you need fuzzy text searching with MongoDB
WARNING: Only strings of up to 250 characters is allowed
GeoNear`1
IgnoreAttribute
Indicates that this property should be ignored when this class is persisted to MongoDB.
Index`1
Represents an index creation command
TIP: Define the keys first with .Key() method and finally call the .Create() method.
InverseSideAttribute
Indicates that this property is the inverse side of a many-to-many relationship
JoinRecord
Represents a parent-child relationship between two entities.
TIP: The ParentID and ChildID switches around for many-to-many relationships depending on the side of the relationship you're accessing.
Many`1
Represents a one-to-many/many-to-many relationship between two Entities.
WARNING: You have to initialize all instances of this class before accessing any of it's members.Initialize from the constructor of the parent entity as follows:this.InitOneToMany(() => Property)this.InitManyToMany(() => Property, x => x.OtherProperty)
Migration
NameAttribute
Use this attribute to specify a custom MongoDB collection name for an IEntity.
One`1
Represents a one-to-one relationship with an IEntity.
OwnerSideAttribute
Indicates that this property is the owner side of a many-to-many relationship
PreserveAttribute
Use this attribute on properties that you want to omit when using SavePreserving() instead of supplying an expression.
TIP: These attribute decorations only effective if you do not specify a preservation expression when calling SavePreserving().
Template
A helper class to build a JSON command from a string with tag replacement
Template`1
A helper class to build a JSON command from a string with tag replacement
Template`2
A helper class to build a JSON command from a string with tag replacement
Transaction
Represents a transaction used to carry out inter-related write operations.
TIP: Remember to always call .Dispose() after use or enclose in a 'Using' statement.IMPORTANT: Use the methods on this transaction to perform operations and not the methods on the DB class.
Update`1
Represents an update command
TIP: Specify a filter first with the .Match(). Then set property values with .Modify() and finally call .Execute() to run the command.
UpdateAndGet`1
Update and retrieve the first document that was updated.
TIP: Specify a filter first with the .Match(). Then set property values with .Modify() and finally call .Execute() to run the command.
UpdateAndGet`2
Update and retrieve the first document that was updated.
TIP: Specify a filter first with the .Match(). Then set property values with .Modify() and finally call .Execute() to run the command.
Enumerations
KeyType
Order
Search
Static Classes
Extensions
Prop
This class provides methods to generate property path strings from lambda expression.
Run
Abstract Classes
FileEntity
Inherit this base class in order to create your own File Entities
ManyBase
Interfaces
IMigration