你能用MXML定义一个向量吗?
我的课上有矢量属性:
$('.dropdown_field option[value ="'+i+'"]').attr('selected',true);
在我的课上,我想在MXML中使用:
public var columns:Vector.<Number>;
答案 0 :(得分:1)
您需要指定Vector类型:
public interface UnitOfWork<TEntity> : IDisposable
where TEntity : class
{
void Commit();
}
public interface IDeletableRepositoryBase<TEntity> : IDisposable
where TEntity : class
{
void Delete(object id);
void Delete(TEntity entity);
}
public interface IGetRepositoryBase<TEntity> : IDisposable
where TEntity : class
{
IQueryable<TEntity> GetAll();
IQueryable<TEntity> GetAll(object filter);
TEntity GetById(object id);
TEntity GetFullObject(object id);
IQueryable<TEntity> GetPaged(int top = 20, int skip = 0, object orderBy = null, object filter = null);
}
public interface IUpsertRepositoryBase<TEntity> : IDisposable
where TEntity : class
{
void Insert(TEntity entity);
void Update(TEntity entity);
}
public interface IThirdWaveRepositoryBase<TEntity> : IDisposable, IGetRepositoryBase<TEntity>
where TEntity : class
{
}
可以在此documentation
中找到另一个示例