📄 castle.activerecord.xml
字号:
<member name="M:Castle.ActiveRecord.ActiveRecordBase.FindAllByProperty(System.Type,System.String,System.Object)">
<summary>
Finds records based on a property value
</summary>
<remarks>
Contributed by someone on the forum
http://forum.castleproject.org/posts/list/300.page
</remarks>
<param name="targetType">The target type</param>
<param name="property">A property name (not a column name)</param>
<param name="value">The value to be equals to</param>
<returns></returns>
</member>
<member name="M:Castle.ActiveRecord.ActiveRecordBase.FindAllByProperty(System.Type,System.String,System.String,System.Object)">
<summary>
Finds records based on a property value
</summary>
<param name="targetType">The target type</param>
<param name="orderByColumn">The column name to be ordered ASC</param>
<param name="property">A property name (not a column name)</param>
<param name="value">The value to be equals to</param>
<returns></returns>
</member>
<member name="M:Castle.ActiveRecord.ActiveRecordBase.FindFirst(System.Type,NHibernate.Expression.ICriterion[])">
<summary>
Searches and returns the first row.
</summary>
<param name="targetType">The target type</param>
<param name="criterias">The criteria expression</param>
<returns>A <c>targetType</c> instance or <c>null</c></returns>
</member>
<member name="M:Castle.ActiveRecord.ActiveRecordBase.FindFirst(System.Type,NHibernate.Expression.Order[],NHibernate.Expression.ICriterion[])">
<summary>
Searches and returns the first row.
</summary>
<param name="targetType">The target type</param>
<param name="orders">The sort order - used to determine which record is the first one</param>
<param name="criterias">The criteria expression</param>
<returns>A <c>targetType</c> instance or <c>null</c></returns>
</member>
<member name="M:Castle.ActiveRecord.ActiveRecordBase.FindOne(System.Type,NHibernate.Expression.ICriterion[])">
<summary>
Searches and returns the a row. If more than one is found,
throws <see cref="T:Castle.ActiveRecord.Framework.ActiveRecordException"/>
</summary>
<param name="targetType">The target type</param>
<param name="criterias">The criteria expression</param>
<returns>A <c>targetType</c> instance or <c>null</c></returns>
</member>
<member name="M:Castle.ActiveRecord.ActiveRecordBase.Save(System.Object)">
<summary>
Saves the instance to the database
</summary>
<param name="instance"></param>
</member>
<member name="M:Castle.ActiveRecord.ActiveRecordBase.Create(System.Object)">
<summary>
Creates (Saves) a new instance to the database.
</summary>
<param name="instance"></param>
</member>
<member name="M:Castle.ActiveRecord.ActiveRecordBase.Update(System.Object)">
<summary>
Persists the modification on the instance
state to the database.
</summary>
<param name="instance"></param>
</member>
<member name="M:Castle.ActiveRecord.ActiveRecordBase.Delete(System.Object)">
<summary>
Deletes the instance from the database.
</summary>
<param name="instance"></param>
</member>
<member name="M:Castle.ActiveRecord.ActiveRecordBase.Execute(Castle.ActiveRecord.NHibernateDelegate)">
<summary>
Invokes the specified delegate passing a valid
NHibernate session. Used for custom NHibernate queries.
</summary>
<param name="call">The delegate instance</param>
<returns>Whatever is returned by the delegate invocation</returns>
</member>
<member name="M:Castle.ActiveRecord.ActiveRecordBase.Save">
<summary>
Saves the instance information to the database.
May Create or Update the instance depending
on whether it has a valid ID.
</summary>
</member>
<member name="M:Castle.ActiveRecord.ActiveRecordBase.Create">
<summary>
Creates (Saves) a new instance to the database.
</summary>
</member>
<member name="M:Castle.ActiveRecord.ActiveRecordBase.Update">
<summary>
Persists the modification on the instance
state to the database.
</summary>
</member>
<member name="M:Castle.ActiveRecord.ActiveRecordBase.Delete">
<summary>
Deletes the instance from the database.
</summary>
</member>
<member name="T:Castle.ActiveRecord.ActiveRecordMediator">
<summary>
Allow programmers to use the
ActiveRecord functionality without direct reference
to <see cref="T:Castle.ActiveRecord.ActiveRecordBase"/>
</summary>
</member>
<member name="M:Castle.ActiveRecord.ActiveRecordMediator.Execute(System.Type,Castle.ActiveRecord.NHibernateDelegate,System.Object)">
<summary>
Invokes the specified delegate passing a valid
NHibernate session. Used for custom NHibernate queries.
</summary>
<param name="targetType">The target ActiveRecordType</param>
<param name="call">The delegate instance</param>
<param name="instance">The ActiveRecord instance</param>
<returns>Whatever is returned by the delegate invocation</returns>
</member>
<member name="M:Castle.ActiveRecord.ActiveRecordMediator.FindByPrimaryKey(System.Type,System.Object,System.Boolean)">
<summary>
Finds an object instance by a unique ID
</summary>
<param name="targetType">The AR subclass type</param>
<param name="id">ID value</param>
<param name="throwOnNotFound"><c>true</c> if you want to catch an exception
if the object is not found</param>
<returns></returns>
<exception cref="T:NHibernate.ObjectNotFoundException">if <c>throwOnNotFound</c> is set to
<c>true</c> and the row is not found</exception>
</member>
<member name="M:Castle.ActiveRecord.ActiveRecordMediator.FindByPrimaryKey(System.Type,System.Object)">
<summary>
Finds an object instance by a unique ID
</summary>
<param name="targetType">The AR subclass type</param>
<param name="id">ID value</param>
<returns></returns>
</member>
<member name="M:Castle.ActiveRecord.ActiveRecordMediator.FindAll(System.Type)">
<summary>
Returns all instances found for the specified type.
</summary>
<param name="targetType"></param>
<returns></returns>
</member>
<member name="M:Castle.ActiveRecord.ActiveRecordMediator.SlicedFindAll(System.Type,System.Int32,System.Int32,NHibernate.Expression.Order[],NHibernate.Expression.ICriterion[])">
<summary>
Returns a portion of the query results (sliced)
</summary>
</member>
<member name="M:Castle.ActiveRecord.ActiveRecordMediator.SlicedFindAll(System.Type,System.Int32,System.Int32,NHibernate.Expression.ICriterion[])">
<summary>
Returns a portion of the query results (sliced)
</summary>
</member>
<member name="M:Castle.ActiveRecord.ActiveRecordMediator.FindAll(System.Type,NHibernate.Expression.Order[],NHibernate.Expression.ICriterion[])">
<summary>
Returns all instances found for the specified type
using sort orders and criterias.
</summary>
<param name="targetType"></param>
<param name="orders"></param>
<param name="criterias"></param>
<returns></returns>
</member>
<member name="M:Castle.ActiveRecord.ActiveRecordMediator.FindAll(System.Type,NHibernate.Expression.ICriterion[])">
<summary>
Returns all instances found for the specified type
using criterias.
</summary>
<param name="targetType"></param>
<param name="criterias"></param>
<returns></returns>
</member>
<member name="M:Castle.ActiveRecord.ActiveRecordMediator.Save(System.Object)">
<summary>
Saves the instance to the database
</summary>
<param name="instance"></param>
</member>
<member name="M:Castle.ActiveRecord.ActiveRecordMediator.Create(System.Object)">
<summary>
Creates (Saves) a new instance to the database.
</summary>
<param name="instance"></param>
</member>
<member name="M:Castle.ActiveRecord.ActiveRecordMediator.Update(System.Object)">
<summary>
Persists the modification on the instance
state to the database.
</summary>
<param name="instance"></param>
</member>
<member name="M:Castle.ActiveRecord.ActiveRecordMediator.Delete(System.Object)">
<summary>
Deletes the instance from the database.
</summary>
<param name="instance"></param>
</member>
<member name="M:Castle.ActiveRecord.ActiveRecordMediator.GetSessionFactoryHolder">
<summary>
Testing hock only.
</summary>
</member>
<member name="T:Castle.ActiveRecord.ActiveRecordMediator`1">
<summary>
Allow programmers to use the
ActiveRecord functionality without direct reference
to <see cref="T:Castle.ActiveRecord.ActiveRecordBase"/>
</summary>
</member>
<member name="T:Castle.ActiveRecord.ActiveRecordStarter">
<summary>
Performs the framework initialization.
</summary>
<remarks>
This class is not thread safe.
</remarks>
</member>
<member name="M:Castle.ActiveRecord.ActiveRecordStarter.Initialize(Castle.ActiveRecord.Framework.IConfigurationSource,System.Type[])">
<summary>
Initialize the mappings using the configuration and
the list of types
</summary>
</member>
<member name="M:Castle.ActiveRecord.ActiveRecordStarter.Initialize(System.Reflection.Assembly,Castle.ActiveRecord.Framework.IConfigurationSource)">
<summary>
Initialize the mappings using the configuration and
checking all the types on the specified <c>Assembly</c>
</summary>
</member>
<member name="M:Castle.ActiveRecord.ActiveRecordStarter.Initialize(System.Reflection.Assembly[],Castle.ActiveRecord.Framework.IConfigurationSource)">
<summary>
Initialize the mappings using the configuration and
checking all the types on the specified Assemblies
</summary>
</member>
<member name="M:Castle.ActiveRecord.ActiveRecordStarter.Initialize">
<summary>
Initializes the framework reading the configuration from
the <c>AppDomain</c> and checking all the types on the executing <c>Assembly</c>
</summary>
</member>
<member name="M:Castle.ActiveRecord.ActiveRecordStarter.CreateSchema">
<summary>
Generates and executes the creation scripts for the database.
</summary>
</member>
<member name="M:Castle.ActiveRecord.ActiveRecordStarter.CreateSchemaFromFile(System.String)">
<summary>
Executes the specified script to create/drop/change the database schema
</summary>
</member>
<member name="M:Castle.ActiveRecord.ActiveRecordStarter.CreateSchemaFromFile(System.String,System.Data.IDbConnection)">
<summary>
Executes the specified script to create/drop/change the database schema
against the specified database connection
</summary>
</member>
<member name="M:Castle.ActiveRecord.ActiveRecordStarter.DropSchema">
<summary>
Generates and executes the Drop scripts for the database.
</summary>
</member>
<member name="M:Castle.ActiveRecord.ActiveRecordStarter.GenerateDropScripts(System.String)">
<summary>
Generates and executes the drop scripts for the database.
</summary>
</member>
<member name="M:Castle.ActiveRecord.ActiveRecordStarter.GenerateCreationScripts(System.String)">
<summary>
Generates the creation scripts for the database
</summary>
</member>
<member name="M:Castle.ActiveRecord.ActiveRecordStarter.IsActiveRecordType(System.Type)">
<summary>
Return true if the type has a [ActiveRecord] attribute
</summary>
</member>
<member name="E:Castle.ActiveRecord.ActiveRecordStarter.SessionFactoryHolderCreated">
<summary>
So others frameworks can intercept the
creation and act on the holder instance
</summary>
</member>
<member name="T:Castle.ActiveRecord.ActiveRecordValidationBase">
<summary>
Extends <see cref="T:Castle.ActiveRecord.ActiveRecordBase"/> adding automatic validation support.
<seealso cref="M:Castle.ActiveRecord.ActiveRecordValidationBase.IsValid"/>
</summary>
<example>
<code>
public class Customer : ActiveRecordBase
{
...
[Property, ValidateNotEmpty]
public int Name
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -