public System.int DataSourceId {get; set;}
myNewEntity.DataSourceId = api.DataSources.GetDataSource("Donations MSSQL").Id;
Entity Class Entity Members DataSources Property