IMetaDataService metadataService = ServiceHelper.GetService<IMetaDataService>();
// 加载元数据
FormMetadata metadata = metadataService.Load(ctx, "BOS_FileServerFileInfo") as FormMetadata;
// 动态构建数据包对象
DynamicObject dy = new DynamicObject(metadata.BusinessInfo.GetDynamicObjectType());
// 填充数据
FillDynamicObjct(dy);
ISaveService saveService = ServiceHelper.GetService<ISaveService>();
// 调用保存服务
IOperationResult oresult = saveService.Save(ctx, metadata.BusinessInfo, new DynamicObject[] { dy });